个人养老金
This commit is contained in:
parent
44fe9203ab
commit
bb76df3718
|
|
@ -1,49 +0,0 @@
|
|||
package com.engine.salary.encrypt.archive;
|
||||
|
||||
import com.engine.salary.encrypt.AESEncryptUtil;
|
||||
import com.engine.salary.entity.salaryarchive.po.SalaryArchiveItemPO;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* hrsa_salary_archive_item: 加解密
|
||||
* 字段:
|
||||
* item_value
|
||||
*/
|
||||
@Deprecated
|
||||
public class SalaryArchiveItemPOEncrypt {
|
||||
public static List<SalaryArchiveItemPO> encryptSalaryArchiveItemPOList(List<SalaryArchiveItemPO> list) {
|
||||
if(list == null || list.size() == 0) {
|
||||
return list;
|
||||
}
|
||||
list.forEach(item -> {
|
||||
item.setItemValue(AESEncryptUtil.encrypt(item.getItemValue()));
|
||||
});
|
||||
return list;
|
||||
}
|
||||
|
||||
public static List<SalaryArchiveItemPO> decryptSalaryArchiveItemPOList(List<SalaryArchiveItemPO> list) {
|
||||
if(list == null || list.size() == 0) {
|
||||
return list;
|
||||
}
|
||||
list.forEach(item -> {
|
||||
item.setItemValue(AESEncryptUtil.decrypt(item.getItemValue()));
|
||||
});
|
||||
return list;
|
||||
}
|
||||
|
||||
public static SalaryArchiveItemPO encryptSalaryArchiveItemPO(SalaryArchiveItemPO item) {
|
||||
if(item == null) {
|
||||
return item; }
|
||||
item.setItemValue(AESEncryptUtil.encrypt(item.getItemValue()));
|
||||
return item;
|
||||
}
|
||||
|
||||
public static SalaryArchiveItemPO decryptSalaryArchiveItemPO(SalaryArchiveItemPO item) {
|
||||
if(item == null) {
|
||||
return item;
|
||||
}
|
||||
item.setItemValue(AESEncryptUtil.decrypt(item.getItemValue()));
|
||||
return item;
|
||||
}
|
||||
}
|
||||
|
|
@ -1,20 +0,0 @@
|
|||
package com.engine.salary.encrypt.archive;
|
||||
|
||||
import com.engine.salary.encrypt.AESEncryptUtil;
|
||||
import com.engine.salary.entity.salaryarchive.dto.SalaryItemAdjustRecordListDTO;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@Deprecated
|
||||
public class SalaryItemAdjustRecordListDTOEncrypt {
|
||||
public static List<SalaryItemAdjustRecordListDTO> decryptSalaryItemAdjustRecordListDTOList(List<SalaryItemAdjustRecordListDTO> list) {
|
||||
if(list == null || list.size() == 0) {
|
||||
return list;
|
||||
}
|
||||
list.forEach(item -> {
|
||||
item.setAdjustBefore(AESEncryptUtil.decrypt(item.getAdjustBefore()));
|
||||
item.setAdjustAfter(AESEncryptUtil.decrypt(item.getAdjustAfter()));
|
||||
});
|
||||
return list;
|
||||
}
|
||||
}
|
||||
|
|
@ -1,78 +0,0 @@
|
|||
package com.engine.salary.encrypt.datacollection;
|
||||
|
||||
import com.engine.salary.encrypt.AESEncryptUtil;
|
||||
import com.engine.salary.entity.datacollection.AddUpDeduction;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* hrsa_add_up_deduction: 数据加解密
|
||||
* 字段:
|
||||
* add_up_child_education
|
||||
* add_up_continuing_education
|
||||
* add_up_housing_loan_interest
|
||||
* add_up_housing_rent
|
||||
* add_up_support_elderly
|
||||
* add_up_illness_medical
|
||||
* add_up_infant_care
|
||||
*/
|
||||
@Deprecated
|
||||
public class AddUpDeductionEncrypt {
|
||||
@Deprecated
|
||||
public static List<AddUpDeduction> encryptAddUpDeductionList(List<AddUpDeduction> list) {
|
||||
list.forEach(item -> {
|
||||
item.setAddUpChildEducation(AESEncryptUtil.encrypt(item.getAddUpChildEducation()));
|
||||
item.setAddUpContinuingEducation(AESEncryptUtil.encrypt(item.getAddUpContinuingEducation()));
|
||||
item.setAddUpHousingLoanInterest(AESEncryptUtil.encrypt(item.getAddUpHousingLoanInterest()));
|
||||
item.setAddUpHousingRent(AESEncryptUtil.encrypt(item.getAddUpHousingRent()));
|
||||
item.setAddUpSupportElderly(AESEncryptUtil.encrypt(item.getAddUpSupportElderly()));
|
||||
item.setAddUpIllnessMedical(AESEncryptUtil.encrypt(item.getAddUpIllnessMedical()));
|
||||
item.setAddUpInfantCare(AESEncryptUtil.encrypt(item.getAddUpInfantCare()));
|
||||
});
|
||||
return list;
|
||||
}
|
||||
|
||||
@Deprecated
|
||||
public static List<AddUpDeduction> decryptAddUpDeductionList(List<AddUpDeduction> list) {
|
||||
list.forEach(item -> {
|
||||
item.setAddUpChildEducation(AESEncryptUtil.decrypt(item.getAddUpChildEducation()));
|
||||
item.setAddUpContinuingEducation(AESEncryptUtil.decrypt(item.getAddUpContinuingEducation()));
|
||||
item.setAddUpHousingLoanInterest(AESEncryptUtil.decrypt(item.getAddUpHousingLoanInterest()));
|
||||
item.setAddUpHousingRent(AESEncryptUtil.decrypt(item.getAddUpHousingRent()));
|
||||
item.setAddUpSupportElderly(AESEncryptUtil.decrypt(item.getAddUpSupportElderly()));
|
||||
item.setAddUpIllnessMedical(AESEncryptUtil.decrypt(item.getAddUpIllnessMedical()));
|
||||
item.setAddUpInfantCare(AESEncryptUtil.decrypt(item.getAddUpInfantCare()));
|
||||
});
|
||||
return list;
|
||||
}
|
||||
|
||||
@Deprecated
|
||||
public static AddUpDeduction encryptAddUpDeduction(AddUpDeduction item) {
|
||||
if(item == null) {
|
||||
return item;
|
||||
}
|
||||
item.setAddUpChildEducation(AESEncryptUtil.encrypt(item.getAddUpChildEducation()));
|
||||
item.setAddUpContinuingEducation(AESEncryptUtil.encrypt(item.getAddUpContinuingEducation()));
|
||||
item.setAddUpHousingLoanInterest(AESEncryptUtil.encrypt(item.getAddUpHousingLoanInterest()));
|
||||
item.setAddUpHousingRent(AESEncryptUtil.encrypt(item.getAddUpHousingRent()));
|
||||
item.setAddUpSupportElderly(AESEncryptUtil.encrypt(item.getAddUpSupportElderly()));
|
||||
item.setAddUpIllnessMedical(AESEncryptUtil.encrypt(item.getAddUpIllnessMedical()));
|
||||
item.setAddUpInfantCare(AESEncryptUtil.encrypt(item.getAddUpInfantCare()));
|
||||
return item;
|
||||
}
|
||||
|
||||
@Deprecated
|
||||
public static AddUpDeduction decryptAddUpDeduction(AddUpDeduction item) {
|
||||
if(item == null) {
|
||||
return item;
|
||||
}
|
||||
item.setAddUpChildEducation(AESEncryptUtil.decrypt(item.getAddUpChildEducation()));
|
||||
item.setAddUpContinuingEducation(AESEncryptUtil.decrypt(item.getAddUpContinuingEducation()));
|
||||
item.setAddUpHousingLoanInterest(AESEncryptUtil.decrypt(item.getAddUpHousingLoanInterest()));
|
||||
item.setAddUpHousingRent(AESEncryptUtil.decrypt(item.getAddUpHousingRent()));
|
||||
item.setAddUpSupportElderly(AESEncryptUtil.decrypt(item.getAddUpSupportElderly()));
|
||||
item.setAddUpIllnessMedical(AESEncryptUtil.decrypt(item.getAddUpIllnessMedical()));
|
||||
item.setAddUpInfantCare(AESEncryptUtil.decrypt(item.getAddUpInfantCare()));
|
||||
return item;
|
||||
}
|
||||
}
|
||||
|
|
@ -1,55 +0,0 @@
|
|||
package com.engine.salary.encrypt.datacollection;
|
||||
|
||||
import com.engine.salary.encrypt.AESEncryptUtil;
|
||||
import com.engine.salary.entity.datacollection.dto.AddUpDeductionRecordDTO;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import java.util.stream.Collectors;
|
||||
|
||||
/**
|
||||
* hrsa_add_up_deduction: 数据加解密
|
||||
* 字段:
|
||||
* add_up_child_education
|
||||
* add_up_continuing_education
|
||||
* add_up_housing_loan_interest
|
||||
* add_up_housing_rent
|
||||
* add_up_support_elderly
|
||||
*/
|
||||
@Deprecated
|
||||
public class AddUpDeductionRecordStrDTOEncrypt {
|
||||
public static List<AddUpDeductionRecordDTO> decryptAddUpDeductionRecordDTO(List<AddUpDeductionRecordDTO> list) {
|
||||
if(list == null || list.size() == 0) {
|
||||
return new ArrayList<>();
|
||||
}
|
||||
list.forEach(item -> {
|
||||
item.setAddUpChildEducation(AESEncryptUtil.decrypt(item.getAddUpChildEducation()));
|
||||
item.setAddUpContinuingEducation(AESEncryptUtil.decrypt(item.getAddUpContinuingEducation()));
|
||||
item.setAddUpHousingLoanInterest(AESEncryptUtil.decrypt(item.getAddUpHousingLoanInterest()));
|
||||
item.setAddUpHousingRent(AESEncryptUtil.decrypt(item.getAddUpHousingRent()));
|
||||
item.setAddUpSupportElderly(AESEncryptUtil.decrypt(item.getAddUpSupportElderly()));
|
||||
item.setAddUpIllnessMedical(AESEncryptUtil.decrypt(item.getAddUpIllnessMedical()));
|
||||
item.setAddUpInfantCare(AESEncryptUtil.decrypt(item.getAddUpInfantCare()));
|
||||
});
|
||||
return list.stream().map(item -> {
|
||||
return AddUpDeductionRecordDTO.builder()
|
||||
.id(item.getId())
|
||||
.employeeId(item.getEmployeeId())
|
||||
.username(item.getUsername())
|
||||
.declareMonth(item.getDeclareMonth())
|
||||
.taxAgentName(item.getTaxAgentName())
|
||||
.taxAgentId(item.getTaxAgentId())
|
||||
.departmentName(item.getDepartmentName())
|
||||
.mobile(item.getMobile())
|
||||
.jobNum(item.getJobNum())
|
||||
.addUpChildEducation(item.getAddUpChildEducation())
|
||||
.addUpContinuingEducation(item.getAddUpContinuingEducation())
|
||||
.addUpHousingLoanInterest(item.getAddUpHousingLoanInterest())
|
||||
.addUpHousingRent(item.getAddUpHousingRent())
|
||||
.addUpSupportElderly(item.getAddUpSupportElderly())
|
||||
.addUpIllnessMedical(item.getAddUpIllnessMedical())
|
||||
.addUpInfantCare(item.getAddUpInfantCare())
|
||||
.build();
|
||||
}).collect(Collectors.toList());
|
||||
}
|
||||
}
|
||||
|
|
@ -1,35 +0,0 @@
|
|||
package com.engine.salary.encrypt.datacollection;
|
||||
|
||||
import com.engine.salary.encrypt.AESEncryptUtil;
|
||||
import com.engine.salary.entity.datacollection.dto.AddUpDeductionDTO;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* hrsa_add_up_deduction: 数据加解密
|
||||
* 字段:
|
||||
* add_up_child_education
|
||||
* add_up_continuing_education
|
||||
* add_up_housing_loan_interest
|
||||
* add_up_housing_rent
|
||||
* add_up_support_elderly
|
||||
*/
|
||||
@Deprecated
|
||||
public class AddUpDeductionStrDTOEncrypt {
|
||||
public static void decryptAddUpDeductionList(List<AddUpDeductionDTO> list) {
|
||||
if (list == null || list.size() == 0) {
|
||||
return;
|
||||
}
|
||||
list.forEach(item -> {
|
||||
item.setAddUpChildEducation(AESEncryptUtil.decrypt(item.getAddUpChildEducation()));
|
||||
item.setAddUpContinuingEducation(AESEncryptUtil.decrypt(item.getAddUpContinuingEducation()));
|
||||
item.setAddUpHousingLoanInterest(AESEncryptUtil.decrypt(item.getAddUpHousingLoanInterest()));
|
||||
item.setAddUpHousingRent(AESEncryptUtil.decrypt(item.getAddUpHousingRent()));
|
||||
item.setAddUpSupportElderly(AESEncryptUtil.decrypt(item.getAddUpSupportElderly()));
|
||||
item.setAddUpIllnessMedical(AESEncryptUtil.decrypt(item.getAddUpIllnessMedical()));
|
||||
item.setAddUpInfantCare(AESEncryptUtil.decrypt(item.getAddUpInfantCare()));
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -1,81 +0,0 @@
|
|||
package com.engine.salary.encrypt.datacollection;
|
||||
|
||||
import com.engine.salary.encrypt.AESEncryptUtil;
|
||||
import com.engine.salary.entity.datacollection.dto.AddUpSituationDTO;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* hrsa_add_up_situation: 加解密
|
||||
* 字段:
|
||||
* add_up_income
|
||||
* add_up_subtraction
|
||||
* add_up_social_security_total
|
||||
* add_up_accumulation_fund_total
|
||||
* add_up_child_education
|
||||
* add_up_continuing_education
|
||||
* add_up_housing_loan_interest
|
||||
* add_up_housing_rent
|
||||
* add_up_support_elderly
|
||||
* add_up_enterprise_and_other
|
||||
* add_up_other_deduction
|
||||
* add_up_tax_exempt_income
|
||||
* add_up_allowed_donation
|
||||
* add_up_advance_tax
|
||||
*/
|
||||
@Deprecated
|
||||
public class AddUpSituationDTOEncrypt {
|
||||
public static List<AddUpSituationDTO> encryptAddUpSituationDTOList(List<AddUpSituationDTO> list) {
|
||||
if (list == null || list.size() == 0) {
|
||||
return list;
|
||||
}
|
||||
list.forEach(item -> {
|
||||
item.setAddUpIncome(AESEncryptUtil.encrypt(item.getAddUpIncome()));
|
||||
item.setAddUpSubtraction(AESEncryptUtil.encrypt(item.getAddUpSubtraction()));
|
||||
item.setAddUpSocialSecurityTotal(AESEncryptUtil.encrypt(item.getAddUpSocialSecurityTotal()));
|
||||
item.setAddUpAccumulationFundTotal(AESEncryptUtil.encrypt(item.getAddUpAccumulationFundTotal()));
|
||||
item.setAddUpChildEducation(AESEncryptUtil.encrypt(item.getAddUpChildEducation()));
|
||||
item.setAddUpContinuingEducation(AESEncryptUtil.encrypt(item.getAddUpContinuingEducation()));
|
||||
item.setAddUpHousingLoanInterest(AESEncryptUtil.encrypt(item.getAddUpHousingLoanInterest()));
|
||||
item.setAddUpHousingRent(AESEncryptUtil.encrypt(item.getAddUpHousingRent()));
|
||||
item.setAddUpSupportElderly(AESEncryptUtil.encrypt(item.getAddUpSupportElderly()));
|
||||
item.setAddUpEnterpriseAndOther(AESEncryptUtil.encrypt(item.getAddUpEnterpriseAndOther()));
|
||||
item.setAddUpTaxExemptIncome(AESEncryptUtil.encrypt(item.getAddUpTaxExemptIncome()));
|
||||
item.setAddUpAllowedDonation(AESEncryptUtil.encrypt(item.getAddUpAllowedDonation()));
|
||||
item.setAddUpAdvanceTax(AESEncryptUtil.encrypt(item.getAddUpAdvanceTax()));
|
||||
|
||||
item.setAddUpIllnessMedical(AESEncryptUtil.encrypt(item.getAddUpIllnessMedical()));
|
||||
item.setAddUpOtherDeduction(AESEncryptUtil.encrypt(item.getAddUpOtherDeduction()));
|
||||
item.setAddUpTaxSavings(AESEncryptUtil.encrypt(item.getAddUpTaxSavings()));
|
||||
item.setAddUpInfantCare(AESEncryptUtil.encrypt(item.getAddUpInfantCare()));
|
||||
});
|
||||
return list;
|
||||
}
|
||||
|
||||
public static List<AddUpSituationDTO> decryptAddUpSituationDTOList(List<AddUpSituationDTO> list) {
|
||||
if (list == null || list.size() == 0) {
|
||||
return list;
|
||||
}
|
||||
list.forEach(item -> {
|
||||
item.setAddUpIncome(AESEncryptUtil.decrypt(item.getAddUpIncome()));
|
||||
item.setAddUpSubtraction(AESEncryptUtil.decrypt(item.getAddUpSubtraction()));
|
||||
item.setAddUpSocialSecurityTotal(AESEncryptUtil.decrypt(item.getAddUpSocialSecurityTotal()));
|
||||
item.setAddUpAccumulationFundTotal(AESEncryptUtil.decrypt(item.getAddUpAccumulationFundTotal()));
|
||||
item.setAddUpChildEducation(AESEncryptUtil.decrypt(item.getAddUpChildEducation()));
|
||||
item.setAddUpContinuingEducation(AESEncryptUtil.decrypt(item.getAddUpContinuingEducation()));
|
||||
item.setAddUpHousingLoanInterest(AESEncryptUtil.decrypt(item.getAddUpHousingLoanInterest()));
|
||||
item.setAddUpHousingRent(AESEncryptUtil.decrypt(item.getAddUpHousingRent()));
|
||||
item.setAddUpSupportElderly(AESEncryptUtil.decrypt(item.getAddUpSupportElderly()));
|
||||
item.setAddUpEnterpriseAndOther(AESEncryptUtil.decrypt(item.getAddUpEnterpriseAndOther()));
|
||||
item.setAddUpTaxExemptIncome(AESEncryptUtil.decrypt(item.getAddUpTaxExemptIncome()));
|
||||
item.setAddUpAllowedDonation(AESEncryptUtil.decrypt(item.getAddUpAllowedDonation()));
|
||||
item.setAddUpAdvanceTax(AESEncryptUtil.decrypt(item.getAddUpAdvanceTax()));
|
||||
|
||||
item.setAddUpIllnessMedical(AESEncryptUtil.decrypt(item.getAddUpIllnessMedical()));
|
||||
item.setAddUpOtherDeduction(AESEncryptUtil.decrypt(item.getAddUpOtherDeduction()));
|
||||
item.setAddUpTaxSavings(AESEncryptUtil.decrypt(item.getAddUpTaxSavings()));
|
||||
item.setAddUpInfantCare(AESEncryptUtil.decrypt(item.getAddUpInfantCare()));
|
||||
});
|
||||
return list;
|
||||
}
|
||||
}
|
||||
|
|
@ -1,132 +0,0 @@
|
|||
package com.engine.salary.encrypt.datacollection;
|
||||
|
||||
import com.engine.salary.encrypt.AESEncryptUtil;
|
||||
import com.engine.salary.entity.datacollection.AddUpSituation;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* hrsa_add_up_situation: 加解密
|
||||
* 字段:
|
||||
* add_up_income
|
||||
* add_up_subtraction
|
||||
* add_up_social_security_total
|
||||
* add_up_accumulation_fund_total
|
||||
* add_up_child_education
|
||||
* add_up_continuing_education
|
||||
* add_up_housing_loan_interest
|
||||
* add_up_housing_rent
|
||||
* add_up_support_elderly
|
||||
* add_up_enterprise_and_other
|
||||
* add_up_other_deduction
|
||||
* add_up_tax_exempt_income
|
||||
* add_up_allowed_donation
|
||||
* add_up_advance_tax
|
||||
*/
|
||||
@Deprecated
|
||||
public class AddUpSituationEncrypt {
|
||||
public static List<AddUpSituation> encryptAddUpSituationList(List<AddUpSituation> list) {
|
||||
if(list == null || list.size() == 0) {
|
||||
return list;
|
||||
}
|
||||
list.forEach(item -> {
|
||||
item.setAddUpIncome(AESEncryptUtil.encrypt(item.getAddUpIncome()));
|
||||
item.setAddUpSubtraction(AESEncryptUtil.encrypt(item.getAddUpSubtraction()));
|
||||
item.setAddUpSocialSecurityTotal(AESEncryptUtil.encrypt(item.getAddUpSocialSecurityTotal()));
|
||||
item.setAddUpAccumulationFundTotal(AESEncryptUtil.encrypt(item.getAddUpAccumulationFundTotal()));
|
||||
item.setAddUpChildEducation(AESEncryptUtil.encrypt(item.getAddUpChildEducation()));
|
||||
item.setAddUpContinuingEducation(AESEncryptUtil.encrypt(item.getAddUpContinuingEducation()));
|
||||
item.setAddUpHousingLoanInterest(AESEncryptUtil.encrypt(item.getAddUpHousingLoanInterest()));
|
||||
item.setAddUpHousingRent(AESEncryptUtil.encrypt(item.getAddUpHousingRent()));
|
||||
item.setAddUpSupportElderly(AESEncryptUtil.encrypt(item.getAddUpSupportElderly()));
|
||||
item.setAddUpEnterpriseAndOther(AESEncryptUtil.encrypt(item.getAddUpEnterpriseAndOther()));
|
||||
item.setAddUpTaxExemptIncome(AESEncryptUtil.encrypt(item.getAddUpTaxExemptIncome()));
|
||||
item.setAddUpAllowedDonation(AESEncryptUtil.encrypt(item.getAddUpAllowedDonation()));
|
||||
item.setAddUpAdvanceTax(AESEncryptUtil.encrypt(item.getAddUpAdvanceTax()));
|
||||
|
||||
item.setAddUpIllnessMedical(AESEncryptUtil.encrypt(item.getAddUpIllnessMedical()));
|
||||
item.setAddUpOtherDeduction(AESEncryptUtil.encrypt(item.getAddUpOtherDeduction()));
|
||||
item.setAddUpTaxSavings(AESEncryptUtil.encrypt(item.getAddUpTaxSavings()));
|
||||
item.setAddUpInfantCare(AESEncryptUtil.encrypt(item.getAddUpInfantCare()));
|
||||
|
||||
});
|
||||
return list;
|
||||
}
|
||||
|
||||
public static List<AddUpSituation> decryptAddUpSituationList(List<AddUpSituation> list) {
|
||||
if(list == null || list.size() == 0) {
|
||||
return list;
|
||||
}
|
||||
list.forEach(item -> {
|
||||
item.setAddUpIncome(AESEncryptUtil.decrypt(item.getAddUpIncome()));
|
||||
item.setAddUpSubtraction(AESEncryptUtil.decrypt(item.getAddUpSubtraction()));
|
||||
item.setAddUpSocialSecurityTotal(AESEncryptUtil.decrypt(item.getAddUpSocialSecurityTotal()));
|
||||
item.setAddUpAccumulationFundTotal(AESEncryptUtil.decrypt(item.getAddUpAccumulationFundTotal()));
|
||||
item.setAddUpChildEducation(AESEncryptUtil.decrypt(item.getAddUpChildEducation()));
|
||||
item.setAddUpContinuingEducation(AESEncryptUtil.decrypt(item.getAddUpContinuingEducation()));
|
||||
item.setAddUpHousingLoanInterest(AESEncryptUtil.decrypt(item.getAddUpHousingLoanInterest()));
|
||||
item.setAddUpHousingRent(AESEncryptUtil.decrypt(item.getAddUpHousingRent()));
|
||||
item.setAddUpSupportElderly(AESEncryptUtil.decrypt(item.getAddUpSupportElderly()));
|
||||
item.setAddUpEnterpriseAndOther(AESEncryptUtil.decrypt(item.getAddUpEnterpriseAndOther()));
|
||||
item.setAddUpTaxExemptIncome(AESEncryptUtil.decrypt(item.getAddUpTaxExemptIncome()));
|
||||
item.setAddUpAllowedDonation(AESEncryptUtil.decrypt(item.getAddUpAllowedDonation()));
|
||||
item.setAddUpAdvanceTax(AESEncryptUtil.decrypt(item.getAddUpAdvanceTax()));
|
||||
|
||||
item.setAddUpIllnessMedical(AESEncryptUtil.decrypt(item.getAddUpIllnessMedical()));
|
||||
item.setAddUpOtherDeduction(AESEncryptUtil.decrypt(item.getAddUpOtherDeduction()));
|
||||
item.setAddUpTaxSavings(AESEncryptUtil.decrypt(item.getAddUpTaxSavings()));
|
||||
item.setAddUpInfantCare(AESEncryptUtil.decrypt(item.getAddUpInfantCare()));
|
||||
});
|
||||
return list;
|
||||
}
|
||||
|
||||
public static AddUpSituation encryptAddUpSituation(AddUpSituation item) {
|
||||
if(item == null) {
|
||||
return item;
|
||||
}
|
||||
item.setAddUpIncome(AESEncryptUtil.encrypt(item.getAddUpIncome()));
|
||||
item.setAddUpSubtraction(AESEncryptUtil.encrypt(item.getAddUpSubtraction()));
|
||||
item.setAddUpSocialSecurityTotal(AESEncryptUtil.encrypt(item.getAddUpSocialSecurityTotal()));
|
||||
item.setAddUpAccumulationFundTotal(AESEncryptUtil.encrypt(item.getAddUpAccumulationFundTotal()));
|
||||
item.setAddUpChildEducation(AESEncryptUtil.encrypt(item.getAddUpChildEducation()));
|
||||
item.setAddUpContinuingEducation(AESEncryptUtil.encrypt(item.getAddUpContinuingEducation()));
|
||||
item.setAddUpHousingLoanInterest(AESEncryptUtil.encrypt(item.getAddUpHousingLoanInterest()));
|
||||
item.setAddUpHousingRent(AESEncryptUtil.encrypt(item.getAddUpHousingRent()));
|
||||
item.setAddUpSupportElderly(AESEncryptUtil.encrypt(item.getAddUpSupportElderly()));
|
||||
item.setAddUpEnterpriseAndOther(AESEncryptUtil.encrypt(item.getAddUpEnterpriseAndOther()));
|
||||
item.setAddUpTaxExemptIncome(AESEncryptUtil.encrypt(item.getAddUpTaxExemptIncome()));
|
||||
item.setAddUpAllowedDonation(AESEncryptUtil.encrypt(item.getAddUpAllowedDonation()));
|
||||
item.setAddUpAdvanceTax(AESEncryptUtil.encrypt(item.getAddUpAdvanceTax()));
|
||||
|
||||
item.setAddUpIllnessMedical(AESEncryptUtil.encrypt(item.getAddUpIllnessMedical()));
|
||||
item.setAddUpOtherDeduction(AESEncryptUtil.encrypt(item.getAddUpOtherDeduction()));
|
||||
item.setAddUpTaxSavings(AESEncryptUtil.encrypt(item.getAddUpTaxSavings()));
|
||||
item.setAddUpInfantCare(AESEncryptUtil.encrypt(item.getAddUpInfantCare()));
|
||||
return item;
|
||||
}
|
||||
|
||||
public static AddUpSituation decryptAddUpSituation(AddUpSituation item) {
|
||||
if(item == null) {
|
||||
return item;
|
||||
}
|
||||
item.setAddUpIncome(AESEncryptUtil.decrypt(item.getAddUpIncome()));
|
||||
item.setAddUpSubtraction(AESEncryptUtil.decrypt(item.getAddUpSubtraction()));
|
||||
item.setAddUpSocialSecurityTotal(AESEncryptUtil.decrypt(item.getAddUpSocialSecurityTotal()));
|
||||
item.setAddUpAccumulationFundTotal(AESEncryptUtil.decrypt(item.getAddUpAccumulationFundTotal()));
|
||||
item.setAddUpChildEducation(AESEncryptUtil.decrypt(item.getAddUpChildEducation()));
|
||||
item.setAddUpContinuingEducation(AESEncryptUtil.decrypt(item.getAddUpContinuingEducation()));
|
||||
item.setAddUpHousingLoanInterest(AESEncryptUtil.decrypt(item.getAddUpHousingLoanInterest()));
|
||||
item.setAddUpHousingRent(AESEncryptUtil.decrypt(item.getAddUpHousingRent()));
|
||||
item.setAddUpSupportElderly(AESEncryptUtil.decrypt(item.getAddUpSupportElderly()));
|
||||
item.setAddUpEnterpriseAndOther(AESEncryptUtil.decrypt(item.getAddUpEnterpriseAndOther()));
|
||||
item.setAddUpTaxExemptIncome(AESEncryptUtil.decrypt(item.getAddUpTaxExemptIncome()));
|
||||
item.setAddUpAllowedDonation(AESEncryptUtil.decrypt(item.getAddUpAllowedDonation()));
|
||||
item.setAddUpAdvanceTax(AESEncryptUtil.decrypt(item.getAddUpAdvanceTax()));
|
||||
|
||||
item.setAddUpIllnessMedical(AESEncryptUtil.encrypt(item.getAddUpIllnessMedical()));
|
||||
item.setAddUpOtherDeduction(AESEncryptUtil.encrypt(item.getAddUpOtherDeduction()));
|
||||
item.setAddUpTaxSavings(AESEncryptUtil.encrypt(item.getAddUpTaxSavings()));
|
||||
item.setAddUpInfantCare(AESEncryptUtil.encrypt(item.getAddUpInfantCare()));
|
||||
return item;
|
||||
}
|
||||
}
|
||||
|
|
@ -1,64 +0,0 @@
|
|||
package com.engine.salary.encrypt.datacollection;
|
||||
|
||||
import com.engine.salary.encrypt.AESEncryptUtil;
|
||||
import com.engine.salary.entity.datacollection.dto.AddUpSituationRecordDTO;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@Deprecated
|
||||
public class AddUpSituationRecordDTOEncrypt {
|
||||
public static List<AddUpSituationRecordDTO> encryptAddUpSituationRecordDTOList(List<AddUpSituationRecordDTO> list) {
|
||||
if(list == null || list.size() == 0) {
|
||||
return list;
|
||||
}
|
||||
list.forEach(item -> {
|
||||
item.setAddUpIncome(AESEncryptUtil.encrypt(item.getAddUpIncome()));
|
||||
item.setAddUpSubtraction(AESEncryptUtil.encrypt(item.getAddUpSubtraction()));
|
||||
item.setAddUpSocialSecurityTotal(AESEncryptUtil.encrypt(item.getAddUpSocialSecurityTotal()));
|
||||
item.setAddUpAccumulationFundTotal(AESEncryptUtil.encrypt(item.getAddUpAccumulationFundTotal()));
|
||||
item.setAddUpChildEducation(AESEncryptUtil.encrypt(item.getAddUpChildEducation()));
|
||||
item.setAddUpContinuingEducation(AESEncryptUtil.encrypt(item.getAddUpContinuingEducation()));
|
||||
item.setAddUpHousingLoanInterest(AESEncryptUtil.encrypt(item.getAddUpHousingLoanInterest()));
|
||||
item.setAddUpHousingRent(AESEncryptUtil.encrypt(item.getAddUpHousingRent()));
|
||||
item.setAddUpSupportElderly(AESEncryptUtil.encrypt(item.getAddUpSupportElderly()));
|
||||
|
||||
item.setAddUpIllnessMedical(AESEncryptUtil.encrypt(item.getAddUpIllnessMedical()));
|
||||
item.setAddUpOtherDeduction(AESEncryptUtil.encrypt(item.getAddUpOtherDeduction()));
|
||||
item.setAddUpTaxSavings(AESEncryptUtil.encrypt(item.getAddUpTaxSavings()));
|
||||
item.setAddUpInfantCare(AESEncryptUtil.encrypt(item.getAddUpInfantCare()));
|
||||
|
||||
item.setAddUpEnterpriseAndOther(AESEncryptUtil.encrypt(item.getAddUpEnterpriseAndOther()));
|
||||
item.setAddUpTaxExemptIncome(AESEncryptUtil.encrypt(item.getAddUpTaxExemptIncome()));
|
||||
item.setAddUpAllowedDonation(AESEncryptUtil.encrypt(item.getAddUpAllowedDonation()));
|
||||
item.setAddUpAdvanceTax(AESEncryptUtil.encrypt(item.getAddUpAdvanceTax()));
|
||||
});
|
||||
return list;
|
||||
}
|
||||
|
||||
public static List<AddUpSituationRecordDTO> decryptAddUpSituationRecordDTOList(List<AddUpSituationRecordDTO> list) {
|
||||
if(list == null || list.size() == 0) {
|
||||
return list;
|
||||
}
|
||||
list.forEach(item -> {
|
||||
item.setAddUpIncome(AESEncryptUtil.decrypt(item.getAddUpIncome()));
|
||||
item.setAddUpSubtraction(AESEncryptUtil.decrypt(item.getAddUpSubtraction()));
|
||||
item.setAddUpSocialSecurityTotal(AESEncryptUtil.decrypt(item.getAddUpSocialSecurityTotal()));
|
||||
item.setAddUpAccumulationFundTotal(AESEncryptUtil.decrypt(item.getAddUpAccumulationFundTotal()));
|
||||
item.setAddUpChildEducation(AESEncryptUtil.decrypt(item.getAddUpChildEducation()));
|
||||
item.setAddUpContinuingEducation(AESEncryptUtil.decrypt(item.getAddUpContinuingEducation()));
|
||||
item.setAddUpHousingLoanInterest(AESEncryptUtil.decrypt(item.getAddUpHousingLoanInterest()));
|
||||
item.setAddUpHousingRent(AESEncryptUtil.decrypt(item.getAddUpHousingRent()));
|
||||
item.setAddUpSupportElderly(AESEncryptUtil.decrypt(item.getAddUpSupportElderly()));
|
||||
item.setAddUpEnterpriseAndOther(AESEncryptUtil.decrypt(item.getAddUpEnterpriseAndOther()));
|
||||
item.setAddUpTaxExemptIncome(AESEncryptUtil.decrypt(item.getAddUpTaxExemptIncome()));
|
||||
item.setAddUpAllowedDonation(AESEncryptUtil.decrypt(item.getAddUpAllowedDonation()));
|
||||
item.setAddUpAdvanceTax(AESEncryptUtil.decrypt(item.getAddUpAdvanceTax()));
|
||||
|
||||
item.setAddUpIllnessMedical(AESEncryptUtil.decrypt(item.getAddUpIllnessMedical()));
|
||||
item.setAddUpOtherDeduction(AESEncryptUtil.decrypt(item.getAddUpOtherDeduction()));
|
||||
item.setAddUpTaxSavings(AESEncryptUtil.decrypt(item.getAddUpTaxSavings()));
|
||||
item.setAddUpInfantCare(AESEncryptUtil.decrypt(item.getAddUpInfantCare()));
|
||||
});
|
||||
return list;
|
||||
}
|
||||
}
|
||||
|
|
@ -1,66 +0,0 @@
|
|||
package com.engine.salary.encrypt.datacollection;
|
||||
|
||||
import com.engine.salary.encrypt.AESEncryptUtil;
|
||||
import com.engine.salary.entity.datacollection.dto.OtherDeductionListDTO;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
|
||||
/**
|
||||
* hrsa_other_deduction: 加解密
|
||||
* 字段:
|
||||
* business_healthy_insurance
|
||||
* tax_delay_endowment_insurance
|
||||
* other_deduction
|
||||
* deduction_allowed_donation
|
||||
*/
|
||||
@Deprecated
|
||||
public class OtherDeductionListDTOEncrypt {
|
||||
public static List<OtherDeductionListDTO> encryptOtherDeductionListDTOList(List<OtherDeductionListDTO> list) {
|
||||
if(list == null || list.size() == 0) {
|
||||
return list;
|
||||
}
|
||||
list.forEach(item -> {
|
||||
item.setBusinessHealthyInsurance(AESEncryptUtil.encrypt(item.getBusinessHealthyInsurance()));
|
||||
item.setTaxDelayEndowmentInsurance(AESEncryptUtil.encrypt(item.getTaxDelayEndowmentInsurance()));
|
||||
item.setOtherDeduction(AESEncryptUtil.encrypt(item.getOtherDeduction()));
|
||||
item.setDeductionAllowedDonation(AESEncryptUtil.encrypt(item.getDeductionAllowedDonation()));
|
||||
});
|
||||
return list;
|
||||
}
|
||||
|
||||
public static List<OtherDeductionListDTO> decryptOtherDeductionListDTOList(List<OtherDeductionListDTO> list) {
|
||||
if(list == null || list.size() == 0) {
|
||||
return list;
|
||||
}
|
||||
list.forEach(item -> {
|
||||
item.setBusinessHealthyInsurance(AESEncryptUtil.decrypt(item.getBusinessHealthyInsurance()));
|
||||
item.setTaxDelayEndowmentInsurance(AESEncryptUtil.decrypt(item.getTaxDelayEndowmentInsurance()));
|
||||
item.setOtherDeduction(AESEncryptUtil.decrypt(item.getOtherDeduction()));
|
||||
item.setDeductionAllowedDonation(AESEncryptUtil.decrypt(item.getDeductionAllowedDonation()));
|
||||
});
|
||||
return list;
|
||||
}
|
||||
|
||||
public static OtherDeductionListDTO encryptOtherDeductionListDTO(OtherDeductionListDTO item) {
|
||||
if(item == null) {
|
||||
return item;
|
||||
}
|
||||
item.setBusinessHealthyInsurance(AESEncryptUtil.encrypt(item.getBusinessHealthyInsurance()));
|
||||
item.setTaxDelayEndowmentInsurance(AESEncryptUtil.encrypt(item.getTaxDelayEndowmentInsurance()));
|
||||
item.setOtherDeduction(AESEncryptUtil.encrypt(item.getOtherDeduction()));
|
||||
item.setDeductionAllowedDonation(AESEncryptUtil.encrypt(item.getDeductionAllowedDonation()));
|
||||
return item;
|
||||
}
|
||||
|
||||
public static OtherDeductionListDTO decryptOtherDeductionListDTO(OtherDeductionListDTO item) {
|
||||
if(item == null) {
|
||||
return item;
|
||||
}
|
||||
item.setBusinessHealthyInsurance(AESEncryptUtil.decrypt(item.getBusinessHealthyInsurance()));
|
||||
item.setTaxDelayEndowmentInsurance(AESEncryptUtil.decrypt(item.getTaxDelayEndowmentInsurance()));
|
||||
item.setOtherDeduction(AESEncryptUtil.decrypt(item.getOtherDeduction()));
|
||||
item.setDeductionAllowedDonation(AESEncryptUtil.decrypt(item.getDeductionAllowedDonation()));
|
||||
return item;
|
||||
}
|
||||
}
|
||||
|
|
@ -1,56 +0,0 @@
|
|||
package com.engine.salary.encrypt.datacollection;
|
||||
|
||||
import com.engine.salary.encrypt.AESEncryptUtil;
|
||||
import com.engine.salary.entity.datacollection.po.OtherDeductionPO;
|
||||
|
||||
import java.util.List;
|
||||
@Deprecated
|
||||
public class OtherDeductionPOEncrypt {
|
||||
public static List<OtherDeductionPO> encryptOtherDeductionPOList(List<OtherDeductionPO> list) {
|
||||
if(list == null || list.size() == 0) {
|
||||
return list;
|
||||
}
|
||||
list.forEach(item -> {
|
||||
item.setBusinessHealthyInsurance(AESEncryptUtil.encrypt(item.getBusinessHealthyInsurance()));
|
||||
item.setTaxDelayEndowmentInsurance(AESEncryptUtil.encrypt(item.getTaxDelayEndowmentInsurance()));
|
||||
item.setOtherDeduction(AESEncryptUtil.encrypt(item.getOtherDeduction()));
|
||||
item.setDeductionAllowedDonation(AESEncryptUtil.encrypt(item.getDeductionAllowedDonation()));
|
||||
});
|
||||
return list;
|
||||
}
|
||||
|
||||
public static List<OtherDeductionPO> decryptOtherDeductionPOList(List<OtherDeductionPO> list) {
|
||||
if(list == null || list.size() == 0) {
|
||||
return list;
|
||||
}
|
||||
list.forEach(item -> {
|
||||
item.setBusinessHealthyInsurance(AESEncryptUtil.decrypt(item.getBusinessHealthyInsurance()));
|
||||
item.setTaxDelayEndowmentInsurance(AESEncryptUtil.decrypt(item.getTaxDelayEndowmentInsurance()));
|
||||
item.setOtherDeduction(AESEncryptUtil.decrypt(item.getOtherDeduction()));
|
||||
item.setDeductionAllowedDonation(AESEncryptUtil.decrypt(item.getDeductionAllowedDonation()));
|
||||
});
|
||||
return list;
|
||||
}
|
||||
|
||||
public static OtherDeductionPO encryptOtherDeductionPO(OtherDeductionPO item) {
|
||||
if(item == null) {
|
||||
return item;
|
||||
}
|
||||
item.setBusinessHealthyInsurance(AESEncryptUtil.encrypt(item.getBusinessHealthyInsurance()));
|
||||
item.setTaxDelayEndowmentInsurance(AESEncryptUtil.encrypt(item.getTaxDelayEndowmentInsurance()));
|
||||
item.setOtherDeduction(AESEncryptUtil.encrypt(item.getOtherDeduction()));
|
||||
item.setDeductionAllowedDonation(AESEncryptUtil.encrypt(item.getDeductionAllowedDonation()));
|
||||
return item;
|
||||
}
|
||||
|
||||
public static OtherDeductionPO decryptOtherDeductionPO(OtherDeductionPO item) {
|
||||
if(item == null) {
|
||||
return item;
|
||||
}
|
||||
item.setBusinessHealthyInsurance(AESEncryptUtil.decrypt(item.getBusinessHealthyInsurance()));
|
||||
item.setTaxDelayEndowmentInsurance(AESEncryptUtil.decrypt(item.getTaxDelayEndowmentInsurance()));
|
||||
item.setOtherDeduction(AESEncryptUtil.decrypt(item.getOtherDeduction()));
|
||||
item.setDeductionAllowedDonation(AESEncryptUtil.decrypt(item.getDeductionAllowedDonation()));
|
||||
return item;
|
||||
}
|
||||
}
|
||||
|
|
@ -1,65 +0,0 @@
|
|||
package com.engine.salary.encrypt.datacollection;
|
||||
|
||||
import com.engine.salary.encrypt.AESEncryptUtil;
|
||||
import com.engine.salary.entity.datacollection.dto.OtherDeductionRecordDTO;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* hrsa_other_deduction: 加解密
|
||||
* 字段:
|
||||
* business_healthy_insurance
|
||||
* tax_delay_endowment_insurance
|
||||
* other_deduction
|
||||
* deduction_allowed_donation
|
||||
*/
|
||||
@Deprecated
|
||||
public class OtherDeductionRecordDTOEncrypt {
|
||||
public static List<OtherDeductionRecordDTO> encryptOtherDeductionRecordDTOList(List<OtherDeductionRecordDTO> list) {
|
||||
if(list == null || list.size() == 0) {
|
||||
return list;
|
||||
}
|
||||
list.forEach(item -> {
|
||||
item.setBusinessHealthyInsurance(AESEncryptUtil.encrypt(item.getBusinessHealthyInsurance()));
|
||||
item.setTaxDelayEndowmentInsurance(AESEncryptUtil.encrypt(item.getTaxDelayEndowmentInsurance()));
|
||||
item.setOtherDeduction(AESEncryptUtil.encrypt(item.getOtherDeduction()));
|
||||
item.setDeductionAllowedDonation(AESEncryptUtil.encrypt(item.getDeductionAllowedDonation()));
|
||||
});
|
||||
return list;
|
||||
}
|
||||
|
||||
public static List<OtherDeductionRecordDTO> decryptOtherDeductionRecordDTOList(List<OtherDeductionRecordDTO> list) {
|
||||
if(list == null || list.size() == 0) {
|
||||
return list;
|
||||
}
|
||||
list.forEach(item -> {
|
||||
item.setBusinessHealthyInsurance(AESEncryptUtil.decrypt(item.getBusinessHealthyInsurance()));
|
||||
item.setTaxDelayEndowmentInsurance(AESEncryptUtil.decrypt(item.getTaxDelayEndowmentInsurance()));
|
||||
item.setOtherDeduction(AESEncryptUtil.decrypt(item.getOtherDeduction()));
|
||||
item.setDeductionAllowedDonation(AESEncryptUtil.decrypt(item.getDeductionAllowedDonation()));
|
||||
});
|
||||
return list;
|
||||
}
|
||||
|
||||
public static OtherDeductionRecordDTO encryptOtherDeductionRecordDTO(OtherDeductionRecordDTO item) {
|
||||
if(item == null) {
|
||||
return item;
|
||||
}
|
||||
item.setBusinessHealthyInsurance(AESEncryptUtil.encrypt(item.getBusinessHealthyInsurance()));
|
||||
item.setTaxDelayEndowmentInsurance(AESEncryptUtil.encrypt(item.getTaxDelayEndowmentInsurance()));
|
||||
item.setOtherDeduction(AESEncryptUtil.encrypt(item.getOtherDeduction()));
|
||||
item.setDeductionAllowedDonation(AESEncryptUtil.encrypt(item.getDeductionAllowedDonation()));
|
||||
return item;
|
||||
}
|
||||
|
||||
public static OtherDeductionRecordDTO decryptOtherDeductionRecordDTO(OtherDeductionRecordDTO item) {
|
||||
if(item == null) {
|
||||
return item;
|
||||
}
|
||||
item.setBusinessHealthyInsurance(AESEncryptUtil.decrypt(item.getBusinessHealthyInsurance()));
|
||||
item.setTaxDelayEndowmentInsurance(AESEncryptUtil.decrypt(item.getTaxDelayEndowmentInsurance()));
|
||||
item.setOtherDeduction(AESEncryptUtil.decrypt(item.getOtherDeduction()));
|
||||
item.setDeductionAllowedDonation(AESEncryptUtil.decrypt(item.getDeductionAllowedDonation()));
|
||||
return item;
|
||||
}
|
||||
}
|
||||
|
|
@ -1,94 +0,0 @@
|
|||
package com.engine.salary.encrypt.datacollection;
|
||||
|
||||
import com.engine.salary.encrypt.AESEncryptUtil;
|
||||
|
||||
import java.lang.reflect.Field;
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
import java.util.stream.Collectors;
|
||||
|
||||
/**
|
||||
* hrsa_special_add_deduction: 加解密
|
||||
* 字段:
|
||||
* children_education
|
||||
* continuing_education
|
||||
* housing_loan_interest
|
||||
* housing_rent
|
||||
* supporting_elder
|
||||
* serious_illness_treatment
|
||||
* infant_care
|
||||
*/
|
||||
@Deprecated
|
||||
public class SpecialAddDeductionEncrypt {
|
||||
private static final List<String> FIELDS = Arrays.asList(
|
||||
"childrenEducation", "continuingEducation", "supportingElder", "housingLoanInterest",
|
||||
"housingRent", "seriousIllnessTreatment", "infantCare");
|
||||
|
||||
public static <T> T encrypt(T obj) {
|
||||
if (obj == null) {
|
||||
return obj;
|
||||
}
|
||||
if(obj instanceof List) {
|
||||
return encrypt(obj);
|
||||
}
|
||||
Class<?> clazz = obj.getClass();
|
||||
Field[] fields = clazz.getDeclaredFields();
|
||||
for (Field field : fields) {
|
||||
field.setAccessible(true);
|
||||
if (FIELDS.contains(field.getName())) {
|
||||
try {
|
||||
Object o = field.get(obj);
|
||||
if (o instanceof String) {
|
||||
Object value = AESEncryptUtil.encrypt((String)o);
|
||||
field.set(obj, value);
|
||||
}
|
||||
} catch (IllegalAccessException e) {
|
||||
//ignore
|
||||
}
|
||||
}
|
||||
}
|
||||
return obj;
|
||||
}
|
||||
|
||||
public static <T> List<T> encrypt(List<T> list) {
|
||||
if (list == null || list.isEmpty()) {
|
||||
return list;
|
||||
}
|
||||
return list.stream().map(SpecialAddDeductionEncrypt::encrypt)
|
||||
.collect(Collectors.toList());
|
||||
}
|
||||
|
||||
public static <T> T decrypt(T obj) {
|
||||
if (obj == null) {
|
||||
return obj;
|
||||
}
|
||||
if(obj instanceof List) {
|
||||
return encrypt(obj);
|
||||
}
|
||||
Class<?> clazz = obj.getClass();
|
||||
Field[] fields = clazz.getDeclaredFields();
|
||||
for (Field field : fields) {
|
||||
field.setAccessible(true);
|
||||
if (FIELDS.contains(field.getName())) {
|
||||
try {
|
||||
Object o = field.get(obj);
|
||||
if (o instanceof String) {
|
||||
Object value = AESEncryptUtil.decrypt((String)o);
|
||||
field.set(obj, value);
|
||||
}
|
||||
} catch (IllegalAccessException e) {
|
||||
//ignore
|
||||
}
|
||||
}
|
||||
}
|
||||
return obj;
|
||||
}
|
||||
|
||||
public static <T> List<T> decrypt(List<T> list) {
|
||||
if (list == null || list.isEmpty()) {
|
||||
return list;
|
||||
}
|
||||
return list.stream().map(SpecialAddDeductionEncrypt::decrypt)
|
||||
.collect(Collectors.toList());
|
||||
}
|
||||
}
|
||||
|
|
@ -1,35 +0,0 @@
|
|||
package com.engine.salary.encrypt.report;
|
||||
|
||||
import com.engine.salary.encrypt.AESEncryptUtil;
|
||||
import com.engine.salary.entity.report.po.SalaryAcctResultReportPO;
|
||||
|
||||
import java.util.Collection;
|
||||
|
||||
/**
|
||||
* 薪资核算报表
|
||||
*/
|
||||
@Deprecated
|
||||
public class SalaryAcctResultReportPOEncrypt {
|
||||
|
||||
public static Collection<SalaryAcctResultReportPO> encryptList(Collection<SalaryAcctResultReportPO> list) {
|
||||
if (list == null || list.size() == 0) {
|
||||
return list;
|
||||
}
|
||||
list.forEach(item -> {
|
||||
item.setEmployeeId(AESEncryptUtil.encrypt(item.getEmployeeId()));
|
||||
item.setSalaryAcctEmpId(AESEncryptUtil.encrypt(item.getSalaryAcctEmpId()));
|
||||
});
|
||||
return list;
|
||||
}
|
||||
|
||||
public static Collection<SalaryAcctResultReportPO> decryptList(Collection<SalaryAcctResultReportPO> list) {
|
||||
if (list == null || list.size() == 0) {
|
||||
return list;
|
||||
}
|
||||
list.forEach(item -> {
|
||||
item.setEmployeeId(AESEncryptUtil.decrypt(item.getEmployeeId()));
|
||||
item.setSalaryAcctEmpId(AESEncryptUtil.decrypt(item.getSalaryAcctEmpId()));
|
||||
});
|
||||
return list;
|
||||
}
|
||||
}
|
||||
|
|
@ -1,67 +0,0 @@
|
|||
package com.engine.salary.encrypt.salaryacct;
|
||||
|
||||
import com.engine.salary.encrypt.AESEncryptUtil;
|
||||
import com.engine.salary.entity.salaryacct.po.ExcelAcctResultPO;
|
||||
|
||||
import java.util.Collection;
|
||||
import java.util.List;
|
||||
|
||||
@Deprecated
|
||||
public class ExcelAcctResultPOEncrypt {
|
||||
|
||||
public static Collection<ExcelAcctResultPO> encryptList(Collection<ExcelAcctResultPO> list) {
|
||||
if(list == null || list.size() == 0) {
|
||||
return list;
|
||||
}
|
||||
list.forEach(item -> {
|
||||
item.setResultValue(AESEncryptUtil.encrypt(item.getResultValue()));
|
||||
});
|
||||
return list;
|
||||
}
|
||||
|
||||
public static Collection<ExcelAcctResultPO> decryptList(Collection<ExcelAcctResultPO> list) {
|
||||
if(list == null || list.size() == 0) {
|
||||
return list;
|
||||
}
|
||||
list.forEach(item -> {
|
||||
item.setResultValue(AESEncryptUtil.decrypt(item.getResultValue()));
|
||||
});
|
||||
return list;
|
||||
}
|
||||
|
||||
public static List<ExcelAcctResultPO> encryptList(List<ExcelAcctResultPO> list) {
|
||||
if(list == null || list.size() == 0) {
|
||||
return list;
|
||||
}
|
||||
list.forEach(item -> {
|
||||
item.setResultValue(AESEncryptUtil.encrypt(item.getResultValue()));
|
||||
});
|
||||
return list;
|
||||
}
|
||||
|
||||
public static List<ExcelAcctResultPO> decryptList(List<ExcelAcctResultPO> list) {
|
||||
if(list == null || list.size() == 0) {
|
||||
return list;
|
||||
}
|
||||
list.forEach(item -> {
|
||||
item.setResultValue(AESEncryptUtil.decrypt(item.getResultValue()));
|
||||
});
|
||||
return list;
|
||||
}
|
||||
|
||||
public static ExcelAcctResultPO encryptItem(ExcelAcctResultPO item) {
|
||||
if(item == null) {
|
||||
return item;
|
||||
}
|
||||
item.setResultValue(AESEncryptUtil.encrypt(item.getResultValue()));
|
||||
return item;
|
||||
}
|
||||
|
||||
public static ExcelAcctResultPO decryptItem(ExcelAcctResultPO item) {
|
||||
if(item == null) {
|
||||
return item;
|
||||
}
|
||||
item.setResultValue(AESEncryptUtil.decrypt(item.getResultValue()));
|
||||
return item;
|
||||
}
|
||||
}
|
||||
|
|
@ -1,52 +0,0 @@
|
|||
package com.engine.salary.encrypt.salaryacct;
|
||||
|
||||
import com.engine.salary.encrypt.AESEncryptUtil;
|
||||
import com.engine.salary.entity.salaryacct.po.SalaryAcctResultPO;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@Deprecated
|
||||
public class SalaryAcctResultPOEncrypt {
|
||||
|
||||
@Deprecated
|
||||
public static List<SalaryAcctResultPO> encryptList(List<SalaryAcctResultPO> list) {
|
||||
if(list == null || list.size() == 0) {
|
||||
return list;
|
||||
}
|
||||
list.forEach(item -> {
|
||||
item.setResultValue(AESEncryptUtil.encrypt(item.getResultValue()));
|
||||
item.setOriginResultValue(AESEncryptUtil.encrypt(item.getOriginResultValue()));
|
||||
});
|
||||
return list;
|
||||
}
|
||||
|
||||
@Deprecated
|
||||
public static List<SalaryAcctResultPO> decryptList(List<SalaryAcctResultPO> list) {
|
||||
if(list == null || list.size() == 0) {
|
||||
return list;
|
||||
}
|
||||
list.forEach(item -> {
|
||||
item.setResultValue(AESEncryptUtil.decrypt(item.getResultValue()));
|
||||
item.setOriginResultValue(AESEncryptUtil.decrypt(item.getOriginResultValue()));
|
||||
});
|
||||
return list;
|
||||
}
|
||||
|
||||
@Deprecated
|
||||
public static SalaryAcctResultPO encryptItem(SalaryAcctResultPO item) {
|
||||
if(item == null) {
|
||||
return item;
|
||||
}
|
||||
item.setResultValue(AESEncryptUtil.encrypt(item.getResultValue()));
|
||||
return item;
|
||||
}
|
||||
|
||||
@Deprecated
|
||||
public static SalaryAcctResultPO decryptItem(SalaryAcctResultPO item) {
|
||||
if(item == null) {
|
||||
return item;
|
||||
}
|
||||
item.setResultValue(AESEncryptUtil.decrypt(item.getResultValue()));
|
||||
return item;
|
||||
}
|
||||
}
|
||||
|
|
@ -1,112 +0,0 @@
|
|||
package com.engine.salary.encrypt.siaccount;
|
||||
|
||||
import com.engine.salary.encrypt.AESEncryptUtil;
|
||||
import com.engine.salary.entity.siaccount.po.ExcelInsuranceDetailPO;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* hrsa_excel_bill_detail: 加解密
|
||||
* 字段:
|
||||
* social_payment_base_string
|
||||
* fund_payment_base_string
|
||||
* other_payment_base_string
|
||||
* social_per_json
|
||||
* social_per_sum
|
||||
* fund_per_json
|
||||
* fund_per_sum
|
||||
* other_per_json
|
||||
* other_per_sum
|
||||
* per_sum
|
||||
* social_com_json
|
||||
* social_com_sum
|
||||
* fund_com_json
|
||||
* fund_com_sum
|
||||
* other_com_json
|
||||
* other_com_sum
|
||||
* com_sum
|
||||
* social_sum
|
||||
* fund_sum
|
||||
* other_sum
|
||||
* total
|
||||
*/
|
||||
@Deprecated
|
||||
public class ExcelInsuranceDetailPOEncrypt {
|
||||
public static List<ExcelInsuranceDetailPO> encryptInsuranceAccountDetailPOList(List<ExcelInsuranceDetailPO> list) {
|
||||
if(list == null || list.size() == 0) {
|
||||
return list;
|
||||
}
|
||||
list.forEach(item -> {
|
||||
item.setSocialPaymentBaseString(AESEncryptUtil.encrypt(item.getSocialPaymentBaseString()));
|
||||
item.setFundPaymentBaseString(AESEncryptUtil.encrypt(item.getFundPaymentBaseString()));
|
||||
item.setOtherPaymentBaseString(AESEncryptUtil.encrypt(item.getOtherPaymentBaseString()));
|
||||
item.setSocialPerJson(AESEncryptUtil.encrypt(item.getSocialPerJson()));
|
||||
item.setSocialPerSum(AESEncryptUtil.encrypt(item.getSocialPerSum()));
|
||||
item.setFundPerJson(AESEncryptUtil.encrypt(item.getFundPerJson()));
|
||||
item.setFundPerSum(AESEncryptUtil.encrypt(item.getFundPerSum()));
|
||||
item.setOtherPerJson(AESEncryptUtil.encrypt(item.getOtherPerJson()));
|
||||
item.setOtherPerSum(AESEncryptUtil.encrypt(item.getOtherPerSum()));
|
||||
item.setPerSum(AESEncryptUtil.encrypt(item.getPerSum()));
|
||||
item.setSocialComJson(AESEncryptUtil.encrypt(item.getSocialComJson()));
|
||||
item.setSocialComSum(AESEncryptUtil.encrypt(item.getSocialComSum()));
|
||||
item.setComSum(AESEncryptUtil.encrypt(item.getComSum()));
|
||||
item.setSocialSum(AESEncryptUtil.encrypt(item.getSocialSum()));
|
||||
item.setFundSum(AESEncryptUtil.encrypt(item.getFundSum()));
|
||||
item.setOtherSum(AESEncryptUtil.encrypt(item.getOtherSum()));
|
||||
item.setTotal(AESEncryptUtil.encrypt(item.getTotal()));
|
||||
});
|
||||
return list;
|
||||
}
|
||||
|
||||
public static List<ExcelInsuranceDetailPO> decryptInsuranceAccountDetailPOList(List<ExcelInsuranceDetailPO> list) {
|
||||
if(list == null || list.size() == 0) {
|
||||
return list;
|
||||
}
|
||||
list.forEach(item -> {
|
||||
item.setSocialPaymentBaseString(AESEncryptUtil.decrypt(item.getSocialPaymentBaseString()));
|
||||
item.setFundPaymentBaseString(AESEncryptUtil.decrypt(item.getFundPaymentBaseString()));
|
||||
item.setOtherPaymentBaseString(AESEncryptUtil.decrypt(item.getOtherPaymentBaseString()));
|
||||
item.setSocialPerJson(AESEncryptUtil.decrypt(item.getSocialPerJson()));
|
||||
item.setSocialPerSum(AESEncryptUtil.decrypt(item.getSocialPerSum()));
|
||||
item.setFundPerJson(AESEncryptUtil.decrypt(item.getFundPerJson()));
|
||||
item.setFundPerSum(AESEncryptUtil.decrypt(item.getFundPerSum()));
|
||||
item.setOtherPerJson(AESEncryptUtil.decrypt(item.getOtherPerJson()));
|
||||
item.setOtherPerSum(AESEncryptUtil.decrypt(item.getOtherPerSum()));
|
||||
item.setPerSum(AESEncryptUtil.decrypt(item.getPerSum()));
|
||||
item.setSocialComJson(AESEncryptUtil.decrypt(item.getSocialComJson()));
|
||||
item.setSocialComSum(AESEncryptUtil.decrypt(item.getSocialComSum()));
|
||||
item.setComSum(AESEncryptUtil.decrypt(item.getComSum()));
|
||||
item.setSocialSum(AESEncryptUtil.decrypt(item.getSocialSum()));
|
||||
item.setFundSum(AESEncryptUtil.decrypt(item.getFundSum()));
|
||||
item.setOtherSum(AESEncryptUtil.decrypt(item.getOtherSum()));
|
||||
item.setTotal(AESEncryptUtil.decrypt(item.getTotal()));
|
||||
});
|
||||
return list;
|
||||
}
|
||||
|
||||
public static ExcelInsuranceDetailPO decryptItem(ExcelInsuranceDetailPO item) {
|
||||
if(item == null) {
|
||||
return item;
|
||||
}
|
||||
item.setSocialPaymentBaseString(AESEncryptUtil.decrypt(item.getSocialPaymentBaseString()));
|
||||
item.setFundPaymentBaseString(AESEncryptUtil.decrypt(item.getFundPaymentBaseString()));
|
||||
item.setOtherPaymentBaseString(AESEncryptUtil.decrypt(item.getOtherPaymentBaseString()));
|
||||
item.setSocialPerJson(AESEncryptUtil.decrypt(item.getSocialPerJson()));
|
||||
item.setSocialPerSum(AESEncryptUtil.decrypt(item.getSocialPerSum()));
|
||||
item.setFundPerJson(AESEncryptUtil.decrypt(item.getFundPerJson()));
|
||||
item.setFundPerSum(AESEncryptUtil.decrypt(item.getFundPerSum()));
|
||||
item.setOtherPerJson(AESEncryptUtil.decrypt(item.getOtherPerJson()));
|
||||
item.setOtherPerSum(AESEncryptUtil.decrypt(item.getOtherPerSum()));
|
||||
item.setPerSum(AESEncryptUtil.decrypt(item.getPerSum()));
|
||||
item.setSocialComJson(AESEncryptUtil.decrypt(item.getSocialComJson()));
|
||||
item.setSocialComSum(AESEncryptUtil.decrypt(item.getSocialComSum()));
|
||||
item.setComSum(AESEncryptUtil.decrypt(item.getComSum()));
|
||||
item.setSocialSum(AESEncryptUtil.decrypt(item.getSocialSum()));
|
||||
item.setFundSum(AESEncryptUtil.decrypt(item.getFundSum()));
|
||||
item.setOtherSum(AESEncryptUtil.decrypt(item.getOtherSum()));
|
||||
item.setTotal(AESEncryptUtil.decrypt(item.getTotal()));
|
||||
return item;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
|
@ -1,136 +0,0 @@
|
|||
package com.engine.salary.encrypt.siaccount;
|
||||
|
||||
import com.engine.salary.encrypt.AESEncryptUtil;
|
||||
import com.engine.salary.entity.siaccount.po.InsuranceAccountDetailPO;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* hrsa_bill_detail: 加解密
|
||||
* 字段:
|
||||
* social_payment_base_string
|
||||
* fund_payment_base_string
|
||||
* other_payment_base_string
|
||||
* social_per_json
|
||||
* social_per_sum
|
||||
* fund_per_json
|
||||
* fund_per_sum
|
||||
* other_per_json
|
||||
* other_per_sum
|
||||
* per_sum
|
||||
* social_com_json
|
||||
* social_com_sum
|
||||
* fund_com_json
|
||||
* fund_com_sum
|
||||
* other_com_json
|
||||
* other_com_sum
|
||||
* com_sum
|
||||
* social_sum
|
||||
* fund_sum
|
||||
* other_sum
|
||||
* total
|
||||
*/
|
||||
@Deprecated
|
||||
public class InsuranceAccountDetailPOEncrypt {
|
||||
public static List<InsuranceAccountDetailPO> encryptInsuranceAccountDetailPOList(List<InsuranceAccountDetailPO> list) {
|
||||
if(list == null || list.size() == 0) {
|
||||
return list;
|
||||
}
|
||||
list.forEach(item -> {
|
||||
item.setSocialPaymentBaseString(AESEncryptUtil.encrypt(item.getSocialPaymentBaseString()));
|
||||
item.setFundPaymentBaseString(AESEncryptUtil.encrypt(item.getFundPaymentBaseString()));
|
||||
item.setOtherPaymentBaseString(AESEncryptUtil.encrypt(item.getOtherPaymentBaseString()));
|
||||
item.setSocialPerJson(AESEncryptUtil.encrypt(item.getSocialPerJson()));
|
||||
item.setSocialPerSum(AESEncryptUtil.encrypt(item.getSocialPerSum()));
|
||||
item.setFundPerJson(AESEncryptUtil.encrypt(item.getFundPerJson()));
|
||||
item.setFundPerSum(AESEncryptUtil.encrypt(item.getFundPerSum()));
|
||||
item.setOtherPerJson(AESEncryptUtil.encrypt(item.getOtherPerJson()));
|
||||
item.setOtherPerSum(AESEncryptUtil.encrypt(item.getOtherPerSum()));
|
||||
item.setPerSum(AESEncryptUtil.encrypt(item.getPerSum()));
|
||||
item.setSocialComJson(AESEncryptUtil.encrypt(item.getSocialComJson()));
|
||||
item.setSocialComSum(AESEncryptUtil.encrypt(item.getSocialComSum()));
|
||||
item.setComSum(AESEncryptUtil.encrypt(item.getComSum()));
|
||||
item.setSocialSum(AESEncryptUtil.encrypt(item.getSocialSum()));
|
||||
item.setFundSum(AESEncryptUtil.encrypt(item.getFundSum()));
|
||||
item.setOtherSum(AESEncryptUtil.encrypt(item.getOtherSum()));
|
||||
item.setTotal(AESEncryptUtil.encrypt(item.getTotal()));
|
||||
});
|
||||
return list;
|
||||
}
|
||||
|
||||
public static List<InsuranceAccountDetailPO> decryptInsuranceAccountDetailPOList(List<InsuranceAccountDetailPO> list) {
|
||||
if(list == null || list.size() == 0) {
|
||||
return list;
|
||||
}
|
||||
list.forEach(item -> {
|
||||
item.setSocialPaymentBaseString(AESEncryptUtil.decrypt(item.getSocialPaymentBaseString()));
|
||||
item.setFundPaymentBaseString(AESEncryptUtil.decrypt(item.getFundPaymentBaseString()));
|
||||
item.setOtherPaymentBaseString(AESEncryptUtil.decrypt(item.getOtherPaymentBaseString()));
|
||||
item.setSocialPerJson(AESEncryptUtil.decrypt(item.getSocialPerJson()));
|
||||
item.setSocialPerSum(AESEncryptUtil.decrypt(item.getSocialPerSum()));
|
||||
item.setFundPerJson(AESEncryptUtil.decrypt(item.getFundPerJson()));
|
||||
item.setFundPerSum(AESEncryptUtil.decrypt(item.getFundPerSum()));
|
||||
item.setOtherPerJson(AESEncryptUtil.decrypt(item.getOtherPerJson()));
|
||||
item.setOtherPerSum(AESEncryptUtil.decrypt(item.getOtherPerSum()));
|
||||
item.setPerSum(AESEncryptUtil.decrypt(item.getPerSum()));
|
||||
item.setSocialComJson(AESEncryptUtil.decrypt(item.getSocialComJson()));
|
||||
item.setSocialComSum(AESEncryptUtil.decrypt(item.getSocialComSum()));
|
||||
item.setComSum(AESEncryptUtil.decrypt(item.getComSum()));
|
||||
item.setSocialSum(AESEncryptUtil.decrypt(item.getSocialSum()));
|
||||
item.setFundSum(AESEncryptUtil.decrypt(item.getFundSum()));
|
||||
item.setOtherSum(AESEncryptUtil.decrypt(item.getOtherSum()));
|
||||
item.setTotal(AESEncryptUtil.decrypt(item.getTotal()));
|
||||
});
|
||||
return list;
|
||||
}
|
||||
|
||||
public static InsuranceAccountDetailPO decryptItem(InsuranceAccountDetailPO item) {
|
||||
if(item == null) {
|
||||
return item;
|
||||
}
|
||||
item.setSocialPaymentBaseString(AESEncryptUtil.decrypt(item.getSocialPaymentBaseString()));
|
||||
item.setFundPaymentBaseString(AESEncryptUtil.decrypt(item.getFundPaymentBaseString()));
|
||||
item.setOtherPaymentBaseString(AESEncryptUtil.decrypt(item.getOtherPaymentBaseString()));
|
||||
item.setSocialPerJson(AESEncryptUtil.decrypt(item.getSocialPerJson()));
|
||||
item.setSocialPerSum(AESEncryptUtil.decrypt(item.getSocialPerSum()));
|
||||
item.setFundPerJson(AESEncryptUtil.decrypt(item.getFundPerJson()));
|
||||
item.setFundPerSum(AESEncryptUtil.decrypt(item.getFundPerSum()));
|
||||
item.setOtherPerJson(AESEncryptUtil.decrypt(item.getOtherPerJson()));
|
||||
item.setOtherPerSum(AESEncryptUtil.decrypt(item.getOtherPerSum()));
|
||||
item.setPerSum(AESEncryptUtil.decrypt(item.getPerSum()));
|
||||
item.setSocialComJson(AESEncryptUtil.decrypt(item.getSocialComJson()));
|
||||
item.setSocialComSum(AESEncryptUtil.decrypt(item.getSocialComSum()));
|
||||
item.setComSum(AESEncryptUtil.decrypt(item.getComSum()));
|
||||
item.setSocialSum(AESEncryptUtil.decrypt(item.getSocialSum()));
|
||||
item.setFundSum(AESEncryptUtil.decrypt(item.getFundSum()));
|
||||
item.setOtherSum(AESEncryptUtil.decrypt(item.getOtherSum()));
|
||||
item.setTotal(AESEncryptUtil.decrypt(item.getTotal()));
|
||||
return item;
|
||||
}
|
||||
|
||||
public static InsuranceAccountDetailPO encryptItem(InsuranceAccountDetailPO item) {
|
||||
if(item == null) {
|
||||
return item;
|
||||
}
|
||||
item.setSocialPaymentBaseString(AESEncryptUtil.encrypt(item.getSocialPaymentBaseString()));
|
||||
item.setFundPaymentBaseString(AESEncryptUtil.encrypt(item.getFundPaymentBaseString()));
|
||||
item.setOtherPaymentBaseString(AESEncryptUtil.encrypt(item.getOtherPaymentBaseString()));
|
||||
item.setSocialPerJson(AESEncryptUtil.encrypt(item.getSocialPerJson()));
|
||||
item.setSocialPerSum(AESEncryptUtil.encrypt(item.getSocialPerSum()));
|
||||
item.setFundPerJson(AESEncryptUtil.encrypt(item.getFundPerJson()));
|
||||
item.setFundPerSum(AESEncryptUtil.encrypt(item.getFundPerSum()));
|
||||
item.setOtherPerJson(AESEncryptUtil.encrypt(item.getOtherPerJson()));
|
||||
item.setOtherPerSum(AESEncryptUtil.encrypt(item.getOtherPerSum()));
|
||||
item.setPerSum(AESEncryptUtil.encrypt(item.getPerSum()));
|
||||
item.setSocialComJson(AESEncryptUtil.encrypt(item.getSocialComJson()));
|
||||
item.setSocialComSum(AESEncryptUtil.encrypt(item.getSocialComSum()));
|
||||
item.setComSum(AESEncryptUtil.encrypt(item.getComSum()));
|
||||
item.setSocialSum(AESEncryptUtil.encrypt(item.getSocialSum()));
|
||||
item.setFundSum(AESEncryptUtil.encrypt(item.getFundSum()));
|
||||
item.setOtherSum(AESEncryptUtil.encrypt(item.getOtherSum()));
|
||||
item.setTotal(AESEncryptUtil.encrypt(item.getTotal()));
|
||||
return item;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
|
@ -1,86 +0,0 @@
|
|||
package com.engine.salary.encrypt.siaccount;
|
||||
|
||||
import com.engine.salary.encrypt.AESEncryptUtil;
|
||||
import com.engine.salary.entity.siaccount.po.InsuranceAccountDetailTempPO;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* hrsa_bill_detail: 加解密
|
||||
* 字段:
|
||||
* social_payment_base_string
|
||||
* fund_payment_base_string
|
||||
* other_payment_base_string
|
||||
* social_per_json
|
||||
* social_per_sum
|
||||
* fund_per_json
|
||||
* fund_per_sum
|
||||
* other_per_json
|
||||
* other_per_sum
|
||||
* per_sum
|
||||
* social_com_json
|
||||
* social_com_sum
|
||||
* fund_com_json
|
||||
* fund_com_sum
|
||||
* other_com_json
|
||||
* other_com_sum
|
||||
* com_sum
|
||||
* social_sum
|
||||
* fund_sum
|
||||
* other_sum
|
||||
* total
|
||||
*/
|
||||
@Deprecated
|
||||
public class InsuranceAccountDetailTempPOEncrypt {
|
||||
public static List<InsuranceAccountDetailTempPO> encryptInsuranceAccountDetailTempPOList(List<InsuranceAccountDetailTempPO> list) {
|
||||
if(list == null || list.size() == 0) {
|
||||
return list;
|
||||
}
|
||||
list.forEach(item -> {
|
||||
item.setSocialPaymentBaseString(AESEncryptUtil.encrypt(item.getSocialPaymentBaseString()));
|
||||
item.setFundPaymentBaseString(AESEncryptUtil.encrypt(item.getFundPaymentBaseString()));
|
||||
item.setOtherPaymentBaseString(AESEncryptUtil.encrypt(item.getOtherPaymentBaseString()));
|
||||
item.setSocialPerJson(AESEncryptUtil.encrypt(item.getSocialPerJson()));
|
||||
item.setSocialPerSum(AESEncryptUtil.encrypt(item.getSocialPerSum()));
|
||||
item.setFundPerJson(AESEncryptUtil.encrypt(item.getFundPerJson()));
|
||||
item.setFundPerSum(AESEncryptUtil.encrypt(item.getFundPerSum()));
|
||||
item.setOtherPerJson(AESEncryptUtil.encrypt(item.getOtherPerJson()));
|
||||
item.setOtherPerSum(AESEncryptUtil.encrypt(item.getOtherPerSum()));
|
||||
item.setPerSum(AESEncryptUtil.encrypt(item.getPerSum()));
|
||||
item.setSocialComJson(AESEncryptUtil.encrypt(item.getSocialComJson()));
|
||||
item.setSocialComSum(AESEncryptUtil.encrypt(item.getSocialComSum()));
|
||||
item.setComSum(AESEncryptUtil.encrypt(item.getComSum()));
|
||||
item.setSocialSum(AESEncryptUtil.encrypt(item.getSocialSum()));
|
||||
item.setFundSum(AESEncryptUtil.encrypt(item.getFundSum()));
|
||||
item.setOtherSum(AESEncryptUtil.encrypt(item.getOtherSum()));
|
||||
item.setTotal(AESEncryptUtil.encrypt(item.getTotal()));
|
||||
});
|
||||
return list;
|
||||
}
|
||||
|
||||
public static List<InsuranceAccountDetailTempPO> decryptInsuranceAccountDetailTempPOList(List<InsuranceAccountDetailTempPO> list) {
|
||||
if(list == null || list.size() == 0) {
|
||||
return list;
|
||||
}
|
||||
list.forEach(item -> {
|
||||
item.setSocialPaymentBaseString(AESEncryptUtil.decrypt(item.getSocialPaymentBaseString()));
|
||||
item.setFundPaymentBaseString(AESEncryptUtil.decrypt(item.getFundPaymentBaseString()));
|
||||
item.setOtherPaymentBaseString(AESEncryptUtil.decrypt(item.getOtherPaymentBaseString()));
|
||||
item.setSocialPerJson(AESEncryptUtil.decrypt(item.getSocialPerJson()));
|
||||
item.setSocialPerSum(AESEncryptUtil.decrypt(item.getSocialPerSum()));
|
||||
item.setFundPerJson(AESEncryptUtil.decrypt(item.getFundPerJson()));
|
||||
item.setFundPerSum(AESEncryptUtil.decrypt(item.getFundPerSum()));
|
||||
item.setOtherPerJson(AESEncryptUtil.decrypt(item.getOtherPerJson()));
|
||||
item.setOtherPerSum(AESEncryptUtil.decrypt(item.getOtherPerSum()));
|
||||
item.setPerSum(AESEncryptUtil.decrypt(item.getPerSum()));
|
||||
item.setSocialComJson(AESEncryptUtil.decrypt(item.getSocialComJson()));
|
||||
item.setSocialComSum(AESEncryptUtil.decrypt(item.getSocialComSum()));
|
||||
item.setComSum(AESEncryptUtil.decrypt(item.getComSum()));
|
||||
item.setSocialSum(AESEncryptUtil.decrypt(item.getSocialSum()));
|
||||
item.setFundSum(AESEncryptUtil.decrypt(item.getFundSum()));
|
||||
item.setOtherSum(AESEncryptUtil.decrypt(item.getOtherSum()));
|
||||
item.setTotal(AESEncryptUtil.decrypt(item.getTotal()));
|
||||
});
|
||||
return list;
|
||||
}
|
||||
}
|
||||
|
|
@ -1,61 +0,0 @@
|
|||
package com.engine.salary.encrypt.siaccount;
|
||||
|
||||
import com.engine.salary.encrypt.AESEncryptUtil;
|
||||
import com.engine.salary.entity.siaccount.po.InsuranceAccountBatchPO;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* hrsa_bill_batch 加解密
|
||||
* 字段:
|
||||
* other_pay
|
||||
* social_pay
|
||||
* fund_pay
|
||||
*/
|
||||
@Deprecated
|
||||
public class SiAccountEncrypt {
|
||||
@Deprecated
|
||||
public static List<InsuranceAccountBatchPO> encryptInsuranceAccountBatchList(List<InsuranceAccountBatchPO> list) {
|
||||
list.forEach(item -> {
|
||||
item.setOtherPay(AESEncryptUtil.encrypt(item.getOtherPay()));
|
||||
item.setSocialPay(AESEncryptUtil.encrypt(item.getSocialPay()));
|
||||
item.setFundPay(AESEncryptUtil.encrypt(item.getFundPay()));
|
||||
});
|
||||
return list;
|
||||
}
|
||||
|
||||
@Deprecated
|
||||
public static List<InsuranceAccountBatchPO> decryptInsuranceAccountBatchList(List<InsuranceAccountBatchPO> list) {
|
||||
if(list == null || list.size() == 0) {
|
||||
return list;
|
||||
}
|
||||
list.forEach(item -> {
|
||||
item.setOtherPay(AESEncryptUtil.decrypt(item.getOtherPay()));
|
||||
item.setSocialPay(AESEncryptUtil.decrypt(item.getSocialPay()));
|
||||
item.setFundPay(AESEncryptUtil.decrypt(item.getFundPay()));
|
||||
});
|
||||
return list;
|
||||
}
|
||||
|
||||
@Deprecated
|
||||
public static InsuranceAccountBatchPO encryptInsuranceAccountBatch(InsuranceAccountBatchPO item) {
|
||||
if(item == null) {
|
||||
return item;
|
||||
}
|
||||
item.setOtherPay(AESEncryptUtil.encrypt(item.getOtherPay()));
|
||||
item.setSocialPay(AESEncryptUtil.encrypt(item.getSocialPay()));
|
||||
item.setFundPay(AESEncryptUtil.encrypt(item.getFundPay()));
|
||||
return item;
|
||||
}
|
||||
|
||||
@Deprecated
|
||||
public static InsuranceAccountBatchPO decryptInsuranceAccountBatch(InsuranceAccountBatchPO item) {
|
||||
if(item == null) {
|
||||
return item;
|
||||
}
|
||||
item.setOtherPay(AESEncryptUtil.decrypt(item.getOtherPay()));
|
||||
item.setSocialPay(AESEncryptUtil.decrypt(item.getSocialPay()));
|
||||
item.setFundPay(AESEncryptUtil.decrypt(item.getFundPay()));
|
||||
return item;
|
||||
}
|
||||
}
|
||||
|
|
@ -1,45 +0,0 @@
|
|||
package com.engine.salary.encrypt.siarchives;
|
||||
|
||||
import com.engine.salary.encrypt.AESEncryptUtil;
|
||||
import com.engine.salary.entity.siarchives.po.InsuranceArchivesFundSchemePO;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@Deprecated
|
||||
public class InsuranceArchivesFundSchemePOEncrypt {
|
||||
public static List<InsuranceArchivesFundSchemePO> encryptList(List<InsuranceArchivesFundSchemePO> list) {
|
||||
if(list == null || list.size() == 0) {
|
||||
return list;
|
||||
}
|
||||
list.forEach(item -> {
|
||||
item.setFundPaymentBaseString(AESEncryptUtil.encrypt(item.getFundPaymentBaseString()));
|
||||
});
|
||||
return list;
|
||||
}
|
||||
|
||||
public static List<InsuranceArchivesFundSchemePO> decryptList(List<InsuranceArchivesFundSchemePO> list) {
|
||||
if(list == null || list.size() == 0) {
|
||||
return list;
|
||||
}
|
||||
list.forEach(item -> {
|
||||
item.setFundPaymentBaseString(AESEncryptUtil.decrypt(item.getFundPaymentBaseString()));
|
||||
});
|
||||
return list;
|
||||
}
|
||||
|
||||
public static InsuranceArchivesFundSchemePO encryptItem(InsuranceArchivesFundSchemePO item) {
|
||||
if(item == null) {
|
||||
return item;
|
||||
}
|
||||
item.setFundPaymentBaseString(AESEncryptUtil.encrypt(item.getFundPaymentBaseString()));
|
||||
return item;
|
||||
}
|
||||
|
||||
public static InsuranceArchivesFundSchemePO decryptItem(InsuranceArchivesFundSchemePO item) {
|
||||
if(item == null) {
|
||||
return item;
|
||||
}
|
||||
item.setFundPaymentBaseString(AESEncryptUtil.decrypt(item.getFundPaymentBaseString()));
|
||||
return item;
|
||||
}
|
||||
}
|
||||
|
|
@ -1,45 +0,0 @@
|
|||
package com.engine.salary.encrypt.siarchives;
|
||||
|
||||
import com.engine.salary.encrypt.AESEncryptUtil;
|
||||
import com.engine.salary.entity.siarchives.po.InsuranceArchivesOtherSchemePO;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@Deprecated
|
||||
public class InsuranceArchivesOtherSchemePOEncrypt {
|
||||
public static List<InsuranceArchivesOtherSchemePO> encryptList(List<InsuranceArchivesOtherSchemePO> list) {
|
||||
if(list == null || list.size() == 0) {
|
||||
return list;
|
||||
}
|
||||
list.forEach(item -> {
|
||||
item.setOtherPaymentBaseString(AESEncryptUtil.encrypt(item.getOtherPaymentBaseString()));
|
||||
});
|
||||
return list;
|
||||
}
|
||||
|
||||
public static List<InsuranceArchivesOtherSchemePO> decryptList(List<InsuranceArchivesOtherSchemePO> list) {
|
||||
if(list == null || list.size() == 0) {
|
||||
return list;
|
||||
}
|
||||
list.forEach(item -> {
|
||||
item.setOtherPaymentBaseString(AESEncryptUtil.decrypt(item.getOtherPaymentBaseString()));
|
||||
});
|
||||
return list;
|
||||
}
|
||||
|
||||
public static InsuranceArchivesOtherSchemePO encryptItem(InsuranceArchivesOtherSchemePO item) {
|
||||
if(item == null) {
|
||||
return item;
|
||||
}
|
||||
item.setOtherPaymentBaseString(AESEncryptUtil.encrypt(item.getOtherPaymentBaseString()));
|
||||
return item;
|
||||
}
|
||||
|
||||
public static InsuranceArchivesOtherSchemePO decryptItem(InsuranceArchivesOtherSchemePO item) {
|
||||
if(item == null) {
|
||||
return item;
|
||||
}
|
||||
item.setOtherPaymentBaseString(AESEncryptUtil.decrypt(item.getOtherPaymentBaseString()));
|
||||
return item;
|
||||
}
|
||||
}
|
||||
|
|
@ -1,45 +0,0 @@
|
|||
package com.engine.salary.encrypt.siarchives;
|
||||
|
||||
import com.engine.salary.encrypt.AESEncryptUtil;
|
||||
import com.engine.salary.entity.siarchives.po.InsuranceArchivesSocialSchemePO;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@Deprecated
|
||||
public class InsuranceArchivesSocialSchemePOEncrypt {
|
||||
public static List<InsuranceArchivesSocialSchemePO> encryptList(List<InsuranceArchivesSocialSchemePO> list) {
|
||||
if(list == null || list.size() == 0) {
|
||||
return list;
|
||||
}
|
||||
list.forEach(item -> {
|
||||
item.setSocialPaymentBaseString(AESEncryptUtil.encrypt(item.getSocialPaymentBaseString()));
|
||||
});
|
||||
return list;
|
||||
}
|
||||
|
||||
public static List<InsuranceArchivesSocialSchemePO> decryptList(List<InsuranceArchivesSocialSchemePO> list) {
|
||||
if(list == null || list.size() == 0) {
|
||||
return list;
|
||||
}
|
||||
list.forEach(item -> {
|
||||
item.setSocialPaymentBaseString(AESEncryptUtil.decrypt(item.getSocialPaymentBaseString()));
|
||||
});
|
||||
return list;
|
||||
}
|
||||
|
||||
public static InsuranceArchivesSocialSchemePO encryptItem(InsuranceArchivesSocialSchemePO item) {
|
||||
if(item == null) {
|
||||
return item;
|
||||
}
|
||||
item.setSocialPaymentBaseString(AESEncryptUtil.encrypt(item.getSocialPaymentBaseString()));
|
||||
return item;
|
||||
}
|
||||
|
||||
public static InsuranceArchivesSocialSchemePO decryptItem(InsuranceArchivesSocialSchemePO item) {
|
||||
if(item == null) {
|
||||
return item;
|
||||
}
|
||||
item.setSocialPaymentBaseString(AESEncryptUtil.decrypt(item.getSocialPaymentBaseString()));
|
||||
return item;
|
||||
}
|
||||
}
|
||||
|
|
@ -1,86 +0,0 @@
|
|||
package com.engine.salary.encrypt.siexport;
|
||||
|
||||
import com.engine.salary.encrypt.AESEncryptUtil;
|
||||
import com.engine.salary.entity.siexport.po.AccountExportPO;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* hrsa_bill_detail: 加解密
|
||||
* 字段:
|
||||
* social_payment_base_string
|
||||
* fund_payment_base_string
|
||||
* other_payment_base_string
|
||||
* social_per_json
|
||||
* social_per_sum
|
||||
* fund_per_json
|
||||
* fund_per_sum
|
||||
* other_per_json
|
||||
* other_per_sum
|
||||
* per_sum
|
||||
* social_com_json
|
||||
* social_com_sum
|
||||
* fund_com_json
|
||||
* fund_com_sum
|
||||
* other_com_json
|
||||
* other_com_sum
|
||||
* com_sum
|
||||
* social_sum
|
||||
* fund_sum
|
||||
* other_sum
|
||||
* total
|
||||
*/
|
||||
@Deprecated
|
||||
public class AccountExportPOEncrypt {
|
||||
public static List<AccountExportPO> encryptAccountExportPOList(List<AccountExportPO> list) {
|
||||
if(list == null || list.size() == 0) {
|
||||
return list;
|
||||
}
|
||||
list.forEach(item -> {
|
||||
item.setSocialPaymentBaseString(AESEncryptUtil.encrypt(item.getSocialPaymentBaseString()));
|
||||
item.setFundPaymentBaseString(AESEncryptUtil.encrypt(item.getFundPaymentBaseString()));
|
||||
item.setOtherPaymentBaseString(AESEncryptUtil.encrypt(item.getOtherPaymentBaseString()));
|
||||
item.setSocialPerJson(AESEncryptUtil.encrypt(item.getSocialPerJson()));
|
||||
item.setSocialPerSum(AESEncryptUtil.encrypt(item.getSocialPerSum()));
|
||||
item.setFundPerJson(AESEncryptUtil.encrypt(item.getFundPerJson()));
|
||||
item.setFundPerSum(AESEncryptUtil.encrypt(item.getFundPerSum()));
|
||||
item.setOtherPerJson(AESEncryptUtil.encrypt(item.getOtherPerJson()));
|
||||
item.setOtherPerSum(AESEncryptUtil.encrypt(item.getOtherPerSum()));
|
||||
item.setPerSum(AESEncryptUtil.encrypt(item.getPerSum()));
|
||||
item.setSocialComJson(AESEncryptUtil.encrypt(item.getSocialComJson()));
|
||||
item.setSocialComSum(AESEncryptUtil.encrypt(item.getSocialComSum()));
|
||||
item.setComSum(AESEncryptUtil.encrypt(item.getComSum()));
|
||||
item.setSocialSum(AESEncryptUtil.encrypt(item.getSocialSum()));
|
||||
item.setFundSum(AESEncryptUtil.encrypt(item.getFundSum()));
|
||||
item.setOtherSum(AESEncryptUtil.encrypt(item.getOtherSum()));
|
||||
item.setTotal(AESEncryptUtil.encrypt(item.getTotal()));
|
||||
});
|
||||
return list;
|
||||
}
|
||||
|
||||
public static List<AccountExportPO> decryptAccountExportPOList(List<AccountExportPO> list) {
|
||||
if(list == null || list.size() == 0) {
|
||||
return list;
|
||||
}
|
||||
list.forEach(item -> {
|
||||
item.setSocialPaymentBaseString(AESEncryptUtil.decrypt(item.getSocialPaymentBaseString()));
|
||||
item.setFundPaymentBaseString(AESEncryptUtil.decrypt(item.getFundPaymentBaseString()));
|
||||
item.setOtherPaymentBaseString(AESEncryptUtil.decrypt(item.getOtherPaymentBaseString()));
|
||||
item.setSocialPerJson(AESEncryptUtil.decrypt(item.getSocialPerJson()));
|
||||
item.setSocialPerSum(AESEncryptUtil.decrypt(item.getSocialPerSum()));
|
||||
item.setFundPerJson(AESEncryptUtil.decrypt(item.getFundPerJson()));
|
||||
item.setFundPerSum(AESEncryptUtil.decrypt(item.getFundPerSum()));
|
||||
item.setOtherPerJson(AESEncryptUtil.decrypt(item.getOtherPerJson()));
|
||||
item.setOtherPerSum(AESEncryptUtil.decrypt(item.getOtherPerSum()));
|
||||
item.setPerSum(AESEncryptUtil.decrypt(item.getPerSum()));
|
||||
item.setSocialComJson(AESEncryptUtil.decrypt(item.getSocialComJson()));
|
||||
item.setSocialComSum(AESEncryptUtil.decrypt(item.getSocialComSum()));
|
||||
item.setComSum(AESEncryptUtil.decrypt(item.getComSum()));
|
||||
item.setSocialSum(AESEncryptUtil.decrypt(item.getSocialSum()));
|
||||
item.setFundSum(AESEncryptUtil.decrypt(item.getFundSum()));
|
||||
item.setOtherSum(AESEncryptUtil.decrypt(item.getOtherSum()));
|
||||
item.setTotal(AESEncryptUtil.decrypt(item.getTotal()));
|
||||
});
|
||||
return list;
|
||||
}
|
||||
}
|
||||
|
|
@ -1,86 +0,0 @@
|
|||
package com.engine.salary.encrypt.siexport;
|
||||
|
||||
import com.engine.salary.encrypt.AESEncryptUtil;
|
||||
import com.engine.salary.entity.siexport.po.ExcelAccountExportPO;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* hrsa_excel_bill_detail: 加解密
|
||||
* 字段:
|
||||
* social_payment_base_string
|
||||
* fund_payment_base_string
|
||||
* other_payment_base_string
|
||||
* social_per_json
|
||||
* social_per_sum
|
||||
* fund_per_json
|
||||
* fund_per_sum
|
||||
* other_per_json
|
||||
* other_per_sum
|
||||
* per_sum
|
||||
* social_com_json
|
||||
* social_com_sum
|
||||
* fund_com_json
|
||||
* fund_com_sum
|
||||
* other_com_json
|
||||
* other_com_sum
|
||||
* com_sum
|
||||
* social_sum
|
||||
* fund_sum
|
||||
* other_sum
|
||||
* total
|
||||
*/
|
||||
@Deprecated
|
||||
public class ExcelAccountExportPOEncrypt {
|
||||
public static List<ExcelAccountExportPO> encryptExcelAccountExportPOList(List<ExcelAccountExportPO> list) {
|
||||
if(list == null || list.size() == 0) {
|
||||
return list;
|
||||
}
|
||||
list.forEach(item -> {
|
||||
item.setSocialPaymentBaseString(AESEncryptUtil.encrypt(item.getSocialPaymentBaseString()));
|
||||
item.setFundPaymentBaseString(AESEncryptUtil.encrypt(item.getFundPaymentBaseString()));
|
||||
item.setOtherPaymentBaseString(AESEncryptUtil.encrypt(item.getOtherPaymentBaseString()));
|
||||
item.setSocialPerJson(AESEncryptUtil.encrypt(item.getSocialPerJson()));
|
||||
item.setSocialPerSum(AESEncryptUtil.encrypt(item.getSocialPerSum()));
|
||||
item.setFundPerJson(AESEncryptUtil.encrypt(item.getFundPerJson()));
|
||||
item.setFundPerSum(AESEncryptUtil.encrypt(item.getFundPerSum()));
|
||||
item.setOtherPerJson(AESEncryptUtil.encrypt(item.getOtherPerJson()));
|
||||
item.setOtherPerSum(AESEncryptUtil.encrypt(item.getOtherPerSum()));
|
||||
item.setPerSum(AESEncryptUtil.encrypt(item.getPerSum()));
|
||||
item.setSocialComJson(AESEncryptUtil.encrypt(item.getSocialComJson()));
|
||||
item.setSocialComSum(AESEncryptUtil.encrypt(item.getSocialComSum()));
|
||||
item.setComSum(AESEncryptUtil.encrypt(item.getComSum()));
|
||||
item.setSocialSum(AESEncryptUtil.encrypt(item.getSocialSum()));
|
||||
item.setFundSum(AESEncryptUtil.encrypt(item.getFundSum()));
|
||||
item.setOtherSum(AESEncryptUtil.encrypt(item.getOtherSum()));
|
||||
item.setTotal(AESEncryptUtil.encrypt(item.getTotal()));
|
||||
});
|
||||
return list;
|
||||
}
|
||||
|
||||
public static List<ExcelAccountExportPO> decryptExcelAccountExportPOList(List<ExcelAccountExportPO> list) {
|
||||
if(list == null || list.size() == 0) {
|
||||
return list;
|
||||
}
|
||||
list.forEach(item -> {
|
||||
item.setSocialPaymentBaseString(AESEncryptUtil.decrypt(item.getSocialPaymentBaseString()));
|
||||
item.setFundPaymentBaseString(AESEncryptUtil.decrypt(item.getFundPaymentBaseString()));
|
||||
item.setOtherPaymentBaseString(AESEncryptUtil.decrypt(item.getOtherPaymentBaseString()));
|
||||
item.setSocialPerJson(AESEncryptUtil.decrypt(item.getSocialPerJson()));
|
||||
item.setSocialPerSum(AESEncryptUtil.decrypt(item.getSocialPerSum()));
|
||||
item.setFundPerJson(AESEncryptUtil.decrypt(item.getFundPerJson()));
|
||||
item.setFundPerSum(AESEncryptUtil.decrypt(item.getFundPerSum()));
|
||||
item.setOtherPerJson(AESEncryptUtil.decrypt(item.getOtherPerJson()));
|
||||
item.setOtherPerSum(AESEncryptUtil.decrypt(item.getOtherPerSum()));
|
||||
item.setPerSum(AESEncryptUtil.decrypt(item.getPerSum()));
|
||||
item.setSocialComJson(AESEncryptUtil.decrypt(item.getSocialComJson()));
|
||||
item.setSocialComSum(AESEncryptUtil.decrypt(item.getSocialComSum()));
|
||||
item.setComSum(AESEncryptUtil.decrypt(item.getComSum()));
|
||||
item.setSocialSum(AESEncryptUtil.decrypt(item.getSocialSum()));
|
||||
item.setFundSum(AESEncryptUtil.decrypt(item.getFundSum()));
|
||||
item.setOtherSum(AESEncryptUtil.decrypt(item.getOtherSum()));
|
||||
item.setTotal(AESEncryptUtil.decrypt(item.getTotal()));
|
||||
});
|
||||
return list;
|
||||
}
|
||||
}
|
||||
|
|
@ -1,54 +0,0 @@
|
|||
package com.engine.salary.encrypt.sischeme;
|
||||
|
||||
import com.engine.salary.encrypt.AESEncryptUtil;
|
||||
import com.engine.salary.entity.sischeme.po.InsuranceSchemeDetailPO;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@Deprecated
|
||||
public class InsuranceSchemeDetailPOEncrypt {
|
||||
public static List<InsuranceSchemeDetailPO> encryptList(List<InsuranceSchemeDetailPO> list) {
|
||||
if(list == null || list.size() == 0) {
|
||||
return list;
|
||||
}
|
||||
list.forEach(item -> {
|
||||
item.setLowerLimit(AESEncryptUtil.encrypt(item.getLowerLimit()));
|
||||
item.setFixedCost(AESEncryptUtil.encrypt(item.getFixedCost()));
|
||||
item.setUpperLimit(AESEncryptUtil.encrypt(item.getUpperLimit()));
|
||||
});
|
||||
return list;
|
||||
}
|
||||
|
||||
public static List<InsuranceSchemeDetailPO> decryptList(List<InsuranceSchemeDetailPO> list) {
|
||||
|
||||
if(list == null || list.size() == 0) {
|
||||
return list;
|
||||
}
|
||||
list.forEach(item -> {
|
||||
item.setLowerLimit(AESEncryptUtil.decrypt(item.getLowerLimit()));
|
||||
item.setFixedCost(AESEncryptUtil.decrypt(item.getFixedCost()));
|
||||
item.setUpperLimit(AESEncryptUtil.decrypt(item.getUpperLimit()));
|
||||
});
|
||||
return list;
|
||||
}
|
||||
|
||||
public static InsuranceSchemeDetailPO encryptItem(InsuranceSchemeDetailPO item) {
|
||||
if(item == null) {
|
||||
return item;
|
||||
}
|
||||
item.setLowerLimit(AESEncryptUtil.encrypt(item.getLowerLimit()));
|
||||
item.setFixedCost(AESEncryptUtil.encrypt(item.getFixedCost()));
|
||||
item.setUpperLimit(AESEncryptUtil.encrypt(item.getUpperLimit()));
|
||||
return item;
|
||||
}
|
||||
|
||||
public static InsuranceSchemeDetailPO decryptItem(InsuranceSchemeDetailPO item) {
|
||||
if(item == null) {
|
||||
return item;
|
||||
}
|
||||
item.setLowerLimit(AESEncryptUtil.decrypt(item.getLowerLimit()));
|
||||
item.setFixedCost(AESEncryptUtil.decrypt(item.getFixedCost()));
|
||||
item.setUpperLimit(AESEncryptUtil.decrypt(item.getUpperLimit()));
|
||||
return item;
|
||||
}
|
||||
}
|
||||
|
|
@ -1,36 +0,0 @@
|
|||
package com.engine.salary.encrypt.taxdeclaration;
|
||||
|
||||
import com.engine.salary.encrypt.AESEncryptUtil;
|
||||
import com.engine.salary.entity.taxdeclaration.po.TaxDeclarationDetailPO;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* hrsa_tax_declaration_detail: 加解密
|
||||
* 字段:
|
||||
* field_value
|
||||
*/
|
||||
|
||||
@Deprecated
|
||||
public class TaxDeclarationDetailEncrypt {
|
||||
public static List<TaxDeclarationDetailPO> encryptTaxDeclarationDetailList(List<TaxDeclarationDetailPO> list) {
|
||||
if(list == null || list.size() == 0) {
|
||||
return list;
|
||||
}
|
||||
list.forEach(item -> {
|
||||
item.setFieldValue(AESEncryptUtil.encrypt(item.getFieldValue()));
|
||||
});
|
||||
return list;
|
||||
}
|
||||
|
||||
public static List<TaxDeclarationDetailPO> decryptTaxDeclarationDetailList(List<TaxDeclarationDetailPO> list) {
|
||||
if(list == null || list.size() == 0) {
|
||||
return list;
|
||||
}
|
||||
list.forEach(item -> {
|
||||
item.setFieldValue(AESEncryptUtil.decrypt(item.getFieldValue()));
|
||||
});
|
||||
return list;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -1,54 +0,0 @@
|
|||
package com.engine.salary.encrypt.taxdeclaration;
|
||||
|
||||
import com.engine.salary.encrypt.AESEncryptUtil;
|
||||
import com.engine.salary.entity.taxdeclaration.po.TaxDeclarationDetailPO;
|
||||
|
||||
import java.util.Collection;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* hrsa_tax_declaration_detail: 加解密
|
||||
* 字段:
|
||||
* field_value
|
||||
*/
|
||||
@Deprecated
|
||||
public class TaxDeclarationDetailPOEncrypt {
|
||||
public static List<TaxDeclarationDetailPO> encryptTaxDeclarationDetailPOList(List<TaxDeclarationDetailPO> list) {
|
||||
if(list == null || list.size() == 0) {
|
||||
return list;
|
||||
}
|
||||
list.forEach(item -> {
|
||||
item.setFieldValue(AESEncryptUtil.encrypt(item.getFieldValue()));
|
||||
});
|
||||
return list;
|
||||
}
|
||||
|
||||
public static Collection<TaxDeclarationDetailPO> encryptTaxDeclarationDetailPOList(Collection<TaxDeclarationDetailPO> list) {
|
||||
if(list == null || list.size() == 0) {
|
||||
return list;
|
||||
}
|
||||
list.forEach(item -> {
|
||||
item.setFieldValue(AESEncryptUtil.encrypt(item.getFieldValue()));
|
||||
});
|
||||
return list;
|
||||
}
|
||||
|
||||
public static List<TaxDeclarationDetailPO> decryptTaxDeclarationDetailPOList(List<TaxDeclarationDetailPO> list) {
|
||||
if(list == null || list.size() == 0) {
|
||||
return list;
|
||||
}
|
||||
list.forEach(item -> {
|
||||
item.setFieldValue(AESEncryptUtil.decrypt(item.getFieldValue()));
|
||||
});
|
||||
return list;
|
||||
}
|
||||
|
||||
|
||||
public static TaxDeclarationDetailPO encryptTaxDeclarationDetailPOItem(TaxDeclarationDetailPO item) {
|
||||
if(item == null) {
|
||||
return item;
|
||||
}
|
||||
item.setFieldValue(AESEncryptUtil.decrypt(item.getFieldValue()));
|
||||
return item;
|
||||
}
|
||||
}
|
||||
|
|
@ -585,7 +585,14 @@ public class OtherDeductionServiceImpl extends Service implements OtherDeduction
|
|||
}
|
||||
}
|
||||
ArrayList<OtherDeductionPO> updateList = new ArrayList<>();
|
||||
OtherDeductionPO build = OtherDeductionPO.builder().id(otherDeductionParam.getId()).businessHealthyInsurance(otherDeductionParam.getBusinessHealthyInsurance()).taxDelayEndowmentInsurance(otherDeductionParam.getTaxDelayEndowmentInsurance()).otherDeduction(otherDeductionParam.getOtherDeduction()).deductionAllowedDonation(otherDeductionParam.getDeductionAllowedDonation()).build();
|
||||
OtherDeductionPO build = OtherDeductionPO.builder()
|
||||
.id(otherDeductionParam.getId())
|
||||
.businessHealthyInsurance(otherDeductionParam.getBusinessHealthyInsurance())
|
||||
.taxDelayEndowmentInsurance(otherDeductionParam.getTaxDelayEndowmentInsurance())
|
||||
.otherDeduction(otherDeductionParam.getOtherDeduction())
|
||||
.deductionAllowedDonation(otherDeductionParam.getDeductionAllowedDonation())
|
||||
.privatePension(otherDeductionParam.getPrivatePension())
|
||||
.build();
|
||||
updateList.add(build);
|
||||
OtherDeductionBiz.batchUpdate(updateList);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -5,7 +5,6 @@ import com.engine.core.impl.Service;
|
|||
import com.engine.salary.cache.SalaryCacheKey;
|
||||
import com.engine.salary.common.LocalDateRange;
|
||||
import com.engine.salary.encrypt.EncryptUtil;
|
||||
import com.engine.salary.encrypt.salaryacct.SalaryAcctResultPOEncrypt;
|
||||
import com.engine.salary.entity.datacollection.DataCollectionEmployee;
|
||||
import com.engine.salary.entity.datacollection.dto.AttendQuoteFieldListDTO;
|
||||
import com.engine.salary.entity.report.bo.SalaryAcctResultReportBO;
|
||||
|
|
@ -864,7 +863,8 @@ public class SalaryAcctResultServiceImpl extends Service implements SalaryAcctRe
|
|||
if (CollectionUtils.isEmpty(salaryAcctRecordIds) || CollectionUtils.isEmpty(salaryItemIds) ) {
|
||||
return Collections.emptyList();
|
||||
}
|
||||
return SalaryAcctResultPOEncrypt.decryptList(getSalaryAcctResultMapper().listSome(SalaryAcctResultPO.builder().salaryAcctRecordIds(salaryAcctRecordIds).salaryItemIds(salaryItemIds).build()));
|
||||
List<SalaryAcctResultPO> list = getSalaryAcctResultMapper().listSome(SalaryAcctResultPO.builder().salaryAcctRecordIds(salaryAcctRecordIds).salaryItemIds(salaryItemIds).build());
|
||||
return encryptUtil.decryptList(list,SalaryAcctResultPO.class);
|
||||
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -850,11 +850,13 @@ public class SalarySysConfServiceImpl extends Service implements SalarySysConfSe
|
|||
po.setTaxDelayEndowmentInsurance(AESEncryptUtil.closeEncryptSetting(po.getTaxDelayEndowmentInsurance()));
|
||||
po.setOtherDeduction(AESEncryptUtil.closeEncryptSetting(po.getOtherDeduction()));
|
||||
po.setDeductionAllowedDonation(AESEncryptUtil.closeEncryptSetting(po.getDeductionAllowedDonation()));
|
||||
po.setPrivatePension(AESEncryptUtil.closeEncryptSetting(po.getPrivatePension()));
|
||||
} else {
|
||||
po.setBusinessHealthyInsurance(AESEncryptUtil.encrypt(po.getBusinessHealthyInsurance()));
|
||||
po.setTaxDelayEndowmentInsurance(AESEncryptUtil.encrypt(po.getTaxDelayEndowmentInsurance()));
|
||||
po.setOtherDeduction(AESEncryptUtil.encrypt(po.getOtherDeduction()));
|
||||
po.setDeductionAllowedDonation(AESEncryptUtil.encrypt(po.getDeductionAllowedDonation()));
|
||||
po.setPrivatePension(AESEncryptUtil.encrypt(po.getPrivatePension()));
|
||||
}
|
||||
});
|
||||
List<List<OtherDeductionPO>> partition = Lists.partition(otherDeductionPos, 50);
|
||||
|
|
|
|||
Loading…
Reference in New Issue