薪酬系统-福利台账,退差数据编辑、删除后,刷新bill_batch表中统计数据

This commit is contained in:
sy 2022-11-24 14:19:58 +08:00
parent 931b3d8a82
commit e412be8d5e
2 changed files with 9 additions and 0 deletions

View File

@ -2343,6 +2343,9 @@ public class SIAccountServiceImpl extends Service implements SIAccountService {
InsuranceAccountDetailPOEncrypt.encryptItem(insuranceAccountDetailPO);
getInsuranceAccountDetailMapper().updateById(insuranceAccountDetailPO);
//刷新_bill_batch表中的统计信息
refreshBillBatch(insuranceAccountDetailPO.getPaymentOrganization(), insuranceAccountDetailPO.getBillMonth());
}
public void accountFundByData(InsuranceAccountDetailPO insuranceAccountDetailPO, EditAccountDetailParam baseParam) {

View File

@ -117,10 +117,16 @@ public class SIRecessionServiceImpl extends Service implements SIRecessionServic
if (CollectionUtils.isEmpty(ids)) {
throw new SalaryRunTimeException(SalaryI18nUtil.getI18nLabel(84026, "参数错误"));
}
InsuranceAccountDetailPO refreshTargetPO = getInsuranceAccountDetailMapper().getById(((List<Long>) ids).get(0));
//根据id删除
List<List<Long>> partition = Lists.partition((List<Long>) ids, 100);
partition.forEach(getInsuranceAccountDetailMapper()::batchDelAccountDetailsByIds);
//刷新bill_batch表中统计信息
getSIAccountService(user).refreshBillBatch(refreshTargetPO.getPaymentOrganization(), refreshTargetPO.getBillMonth());
}