薪酬系统-福利台账,补差相关加解密替换为新方法
This commit is contained in:
parent
0787fb4d05
commit
cf08bbd842
|
|
@ -450,7 +450,7 @@ public class SIAccountServiceImpl extends Service implements SIAccountService {
|
|||
List<InsuranceAccountDetailPO> list = getInsuranceAccountDetailMapper().list(queryParam);
|
||||
PageInfo<InsuranceAccountDetailPO> pageInfo = new PageInfo<>(list, InsuranceAccountDetailPO.class);
|
||||
List<InsuranceAccountDetailPO> insuranceAccountDetailPOS = pageInfo.getList();
|
||||
InsuranceAccountDetailPOEncrypt.decryptInsuranceAccountDetailPOList(insuranceAccountDetailPOS);
|
||||
encryptUtil.decryptList(insuranceAccountDetailPOS, InsuranceAccountDetailPO.class);
|
||||
//数据组装
|
||||
List<Map<String, Object>> records = getService(user).buildCommonRecords(insuranceAccountDetailPOS, employeeId);
|
||||
PageInfo<Map<String, Object>> pageInfos = new PageInfo<>(records);
|
||||
|
|
@ -2732,7 +2732,7 @@ public class SIAccountServiceImpl extends Service implements SIAccountService {
|
|||
} else {
|
||||
//更新数据情况
|
||||
//拼装待更新数据
|
||||
InsuranceAccountDetailPOEncrypt.decryptInsuranceAccountDetailPOList(list);
|
||||
encryptUtil.decryptList(list, InsuranceAccountDetailPO.class);
|
||||
updateInsuranceAccountDetailList.add(handleInsuranceAccountDetail(list.get(0), map));
|
||||
}
|
||||
|
||||
|
|
@ -2750,7 +2750,7 @@ public class SIAccountServiceImpl extends Service implements SIAccountService {
|
|||
if (updateInsuranceAccountDetailList.size() > 0) {
|
||||
paymentOrganization = updateInsuranceAccountDetailList.get(0).getPaymentOrganization();
|
||||
//将待更新列表加密
|
||||
InsuranceAccountDetailPOEncrypt.encryptInsuranceAccountDetailPOList(updateInsuranceAccountDetailList);
|
||||
encryptUtil.encryptList(updateInsuranceAccountDetailList, InsuranceAccountDetailPO.class);
|
||||
//更新
|
||||
for(InsuranceAccountDetailPO po : updateInsuranceAccountDetailList) {
|
||||
getSiAccountBiz(user).updateByEmployeeIdAndBillMonth(po);
|
||||
|
|
@ -2759,7 +2759,7 @@ public class SIAccountServiceImpl extends Service implements SIAccountService {
|
|||
if (createInsuranceAccountDetailList.size() > 0) {
|
||||
paymentOrganization = createInsuranceAccountDetailList.get(0).getPaymentOrganization();
|
||||
//将待新增列表加密
|
||||
InsuranceAccountDetailPOEncrypt.encryptInsuranceAccountDetailPOList(createInsuranceAccountDetailList);
|
||||
encryptUtil.encryptList(createInsuranceAccountDetailList, InsuranceAccountDetailPO.class);
|
||||
//新增
|
||||
List<List<InsuranceAccountDetailPO>> createPartition = Lists.partition((List<InsuranceAccountDetailPO>) createInsuranceAccountDetailList, 20);
|
||||
createPartition.forEach(getInsuranceAccountDetailMapper()::batchSaveAccountDetails);
|
||||
|
|
|
|||
Loading…
Reference in New Issue