Commit f87abd56 authored by huyuchen's avatar huyuchen

huych-插入优化,防止数据影响

parent 8f364267
......@@ -565,7 +565,7 @@ public class TEmployeeInsurancePreServiceImpl extends ServiceImpl<TEmployeeInsur
.eq(TInsurancePreDetail::getRegisterId, registrationPreVo.getExitInsuranceInfoList()
.get(0).getRegisterId()));
//批量新增
preDetailService.saveBatch(registrationPreVo.getExitInsuranceInfoList());
preDetailService.saveOrUpdateBatch(registrationPreVo.getExitInsuranceInfoList());
//批量删除商险待购买列表中的待确认、待派单、派单失败、投保退回的数据
baseMapper.delete(Wrappers.<TEmployeeInsurancePre>query().lambda().in(
TEmployeeInsurancePre::getProcessStatus,CommonConstants.insuranceAutoProcessStatus)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment