feat: 加解密处理
This commit is contained in:
parent
ad3f7595bd
commit
beeadfc35c
|
|
@ -804,17 +804,9 @@ public class SalarySysConfServiceImpl extends Service implements SalarySysConfSe
|
|||
if (CollectionUtils.isNotEmpty(addUpDeductions)) {
|
||||
addUpDeductions.forEach(po -> {
|
||||
if (OpenEnum.OFF.getValue().equals(isOpenEncrypt)) {
|
||||
po.setAddUpChildEducation(AESEncryptUtil.closeEncryptSetting(po.getAddUpChildEducation()));
|
||||
po.setAddUpContinuingEducation(AESEncryptUtil.closeEncryptSetting(po.getAddUpContinuingEducation()));
|
||||
po.setAddUpHousingLoanInterest(AESEncryptUtil.closeEncryptSetting(po.getAddUpHousingLoanInterest()));
|
||||
po.setAddUpHousingRent(AESEncryptUtil.closeEncryptSetting(po.getAddUpHousingRent()));
|
||||
po.setAddUpSupportElderly(AESEncryptUtil.closeEncryptSetting(po.getAddUpSupportElderly()));
|
||||
encryptUtil.decrypt(po, AddUpDeduction.class);
|
||||
} else {
|
||||
po.setAddUpChildEducation(AESEncryptUtil.encrypt(po.getAddUpChildEducation()));
|
||||
po.setAddUpContinuingEducation(AESEncryptUtil.encrypt(po.getAddUpContinuingEducation()));
|
||||
po.setAddUpHousingLoanInterest(AESEncryptUtil.encrypt(po.getAddUpHousingLoanInterest()));
|
||||
po.setAddUpHousingRent(AESEncryptUtil.encrypt(po.getAddUpHousingRent()));
|
||||
po.setAddUpSupportElderly(AESEncryptUtil.encrypt(po.getAddUpSupportElderly()));
|
||||
encryptUtil.encrypt(po, AddUpDeduction.class);
|
||||
}
|
||||
});
|
||||
List<List<AddUpDeduction>> partition = Lists.partition(addUpDeductions, 50);
|
||||
|
|
|
|||
Loading…
Reference in New Issue