薪酬系统-福利台账,退差数据编辑、删除后,刷新bill_batch表中统计数据
This commit is contained in:
parent
931b3d8a82
commit
e412be8d5e
|
|
@ -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) {
|
||||
|
|
|
|||
|
|
@ -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());
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue