Commit 8c6f0072 authored by hongguangwu's avatar hongguangwu

派单减少或增加办理失败或增加审核失败

parent 92171140
......@@ -2662,7 +2662,7 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T
if (CommonConstants.dingleDigitStrArray[0].equals(dis.getType())
&& CommonConstants.ONE_INT == flag.intValue()){
// 更新预估数据
forecastLibraryService.updateForecastLibaryByDispatch(sf);
forecastLibraryService.updateForecastLibaryByDispatchReduce(sf);
// 更新人员档案和项目档案的社保公积金状态
UpProjectSocialFundVo vo = new UpProjectSocialFundVo();
if (Common.isNotNull(dis.getSocialId())){
......@@ -3066,7 +3066,7 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T
// 办理失败
if (CommonConstants.ONE_INT == flag){
// 派增办理,全部失败 同步预估库数据
forecastLibraryService.updateForecastLibaryByDispatch(sf);
forecastLibraryService.updateForecastLibaryByDispatchReduce(sf);
}
// 2.派减办理成功 处理预估
......
......@@ -1545,6 +1545,7 @@ public class TForecastLibraryServiceImpl extends ServiceImpl<TForecastLibraryMap
TForecastLibrary negateLib = new TForecastLibrary();
BeanUtil.copyProperties(library, negateLib);
negateLib.setId(null);
negateLib.setDataPush(CommonConstants.ZERO_INT);
negateLib.setUnitPensionFee(BigDecimalUtils.safeSubtract( false, zero, library.getUnitPensionFee()));
negateLib.setUnitMedicalFee(BigDecimalUtils.safeSubtract( false, zero, library.getUnitMedicalFee()));
negateLib.setUnitBirthFee(BigDecimalUtils.safeSubtract( false, zero, library.getUnitBirthFee()));
......@@ -1575,6 +1576,7 @@ public class TForecastLibraryServiceImpl extends ServiceImpl<TForecastLibraryMap
TForecastLibrary negateLib = new TForecastLibrary();
BeanUtil.copyProperties(library, negateLib);
negateLib.setId(null);
negateLib.setDataPush(CommonConstants.ZERO_INT);
// 单位公积金
negateLib.setUnitFundSum(BigDecimalUtils.safeSubtract(false, zero, library.getUnitFundSum()));
// 个人公积金
......
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