|
|
@ -346,8 +346,28 @@ public class PortalOfCostApplication { |
|
|
|
Assert.throwEx("政策预算不足,可用余额:"+surplusAmt); |
|
|
|
} |
|
|
|
|
|
|
|
//移除历史记录
|
|
|
|
List<TbsCostApply> histCostApplyList = costApplyService.list(new LambdaQueryWrapper<TbsCostApply>() |
|
|
|
.eq(TbsCostApply::getRecId,createBo.getRecId())); |
|
|
|
for (TbsCostApply costApply : histCostApplyList) { |
|
|
|
costApplyService.removeById(costApply.getId()); |
|
|
|
QueryWrapper costqw = new QueryWrapper(); |
|
|
|
costqw.eq("cost_apply_id",costApply.getId()); |
|
|
|
activityService.remove(costqw); |
|
|
|
activitySubjectService.remove(costqw); |
|
|
|
activityCenterService.remove(costqw); |
|
|
|
activityGoodsService.remove(costqw); |
|
|
|
activityCenterGoodsService.remove(costqw); |
|
|
|
budgetLogService.remove(costqw); |
|
|
|
costItemService.remove(costqw); |
|
|
|
verificationService.remove(costqw); |
|
|
|
verificationSubjectService.remove(costqw); |
|
|
|
} |
|
|
|
|
|
|
|
//构建费用申请
|
|
|
|
TbsCostApply costApply = new TbsCostApply(); |
|
|
|
//标记唯一
|
|
|
|
costApply.setRecId(createBo.getRecId()); |
|
|
|
costApply.setBillNumber(billNumber); |
|
|
|
costApply.setCode(costApplyCode); |
|
|
|
costApply.setChargeTheme(costTheme); |
|
|
|