Commit eb419745 authored by fangxinjiang's avatar fangxinjiang

优化-fxj

parent 2e4b86a0
...@@ -1045,12 +1045,14 @@ public class TEmployeeInsurancePreServiceImpl extends ServiceImpl<TEmployeeInsur ...@@ -1045,12 +1045,14 @@ public class TEmployeeInsurancePreServiceImpl extends ServiceImpl<TEmployeeInsur
} }
// 已完成状态不需要更新 // 已完成状态不需要更新
if (null != insurancePre && CommonConstants.SIX_STRING.equals(insurancePre.getProcessStatus())) { if (null == insurancePre || CommonConstants.SIX_STRING.equals(insurancePre.getProcessStatus())) {
return false; return false;
} }
LambdaUpdateWrapper<TEmployeeInsurancePre> updateWrapper = new LambdaUpdateWrapper<>(); LambdaUpdateWrapper<TEmployeeInsurancePre> updateWrapper = new LambdaUpdateWrapper<>();
updateWrapper.eq(TEmployeeInsurancePre::getRegisterId, preVo.getRegisterId()); updateWrapper.eq(TEmployeeInsurancePre::getRegisterId, preVo.getRegisterId());
updateWrapper.ne(TEmployeeInsurancePre::getIsLeave, CommonConstants.ZERO_STRING);
updateWrapper.ne(TEmployeeInsurancePre::getIsRefuse, CommonConstants.ZERO_STRING);
updateWrapper.ne(TEmployeeInsurancePre::getProcessStatus, CommonConstants.SIX_STRING); updateWrapper.ne(TEmployeeInsurancePre::getProcessStatus, CommonConstants.SIX_STRING);
updateWrapper.set(TEmployeeInsurancePre::getIsRefuse, CommonConstants.ZERO_STRING); updateWrapper.set(TEmployeeInsurancePre::getIsRefuse, CommonConstants.ZERO_STRING);
return this.update(updateWrapper); return this.update(updateWrapper);
......
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