|
|
@ -72,12 +72,17 @@ public class TbsCostChangeInfoServiceImpl extends ServiceImpl<TbsCostChangeInfoM |
|
|
|
checkBuild.eq(TbsCostChangeInfo::getSourceId,orgId); |
|
|
|
checkBuild.eq(TbsCostChangeInfo::getExtendId,newId); |
|
|
|
Long count = this.count(checkBuild); |
|
|
|
TbsCostApply newApply = costApplyService.getById(newId); |
|
|
|
if(count>0){ |
|
|
|
//未提交则进行删除
|
|
|
|
if(newApply.getChargeState().equals(0)){ |
|
|
|
this.remove(checkBuild); |
|
|
|
}else { |
|
|
|
return; |
|
|
|
} |
|
|
|
} |
|
|
|
List<TbsCostChangeInfo> changeInfoList = new ArrayList<>(); |
|
|
|
TbsCostApply oldApply = costApplyService.getById(orgId); |
|
|
|
TbsCostApply newApply = costApplyService.getById(newId); |
|
|
|
if(!oldApply.getChargeTheme().equals(newApply.getChargeTheme())){ |
|
|
|
changeInfoList.add(TbsCostChangeInfo.toNewObject("档案标题更变",newApply.getChargeTheme())); |
|
|
|
} |
|
|
@ -90,7 +95,7 @@ public class TbsCostChangeInfoServiceImpl extends ServiceImpl<TbsCostChangeInfoM |
|
|
|
for (TbsActivity newAct : newActivityList) { |
|
|
|
if(orgAct.getActivityCode().equals(newAct.getActivityCode())){ |
|
|
|
orgMatchNewAct = true; |
|
|
|
if(orgAct.getActTitle().equals(newAct.getActTitle())){ |
|
|
|
if(!orgAct.getActTitle().equals(newAct.getActTitle())){ |
|
|
|
changeInfoList.add(TbsCostChangeInfo.toNewObject("活动活动简述及目的更变",newAct.getActTitle())); |
|
|
|
} |
|
|
|
if(!orgAct.getActStartDate().equals(newAct.getActStartDate())||!orgAct.getActEndDate().equals(newAct.getActEndDate())){ |
|
|
|