|
@ -29,7 +29,9 @@ import com.qs.serve.modules.seeyon.entity.XltApticlaim; |
|
|
import com.qs.serve.modules.seeyon.entity.XltPaymentRecord; |
|
|
import com.qs.serve.modules.seeyon.entity.XltPaymentRecord; |
|
|
import com.qs.serve.modules.seeyon.service.XiaoLuTonService; |
|
|
import com.qs.serve.modules.seeyon.service.XiaoLuTonService; |
|
|
import com.qs.serve.modules.sys.entity.SysSyncLog; |
|
|
import com.qs.serve.modules.sys.entity.SysSyncLog; |
|
|
|
|
|
import com.qs.serve.modules.sys.entity.SysTableTemp; |
|
|
import com.qs.serve.modules.sys.entity.SysUser; |
|
|
import com.qs.serve.modules.sys.entity.SysUser; |
|
|
|
|
|
import com.qs.serve.modules.sys.mapper.SysTableTempMapper; |
|
|
import com.qs.serve.modules.sys.mapper.SysUserCodeMathMapper; |
|
|
import com.qs.serve.modules.sys.mapper.SysUserCodeMathMapper; |
|
|
import com.qs.serve.modules.sys.service.SysSyncLogService; |
|
|
import com.qs.serve.modules.sys.service.SysSyncLogService; |
|
|
import com.qs.serve.modules.sys.service.SysUserService; |
|
|
import com.qs.serve.modules.sys.service.SysUserService; |
|
@ -46,6 +48,7 @@ import com.qs.serve.modules.tzc.common.TzPolicyItemStatus; |
|
|
import com.qs.serve.modules.tzc.entity.TzcPolicyGoodsSync; |
|
|
import com.qs.serve.modules.tzc.entity.TzcPolicyGoodsSync; |
|
|
import com.qs.serve.modules.tzc.entity.TzcPolicyItem; |
|
|
import com.qs.serve.modules.tzc.entity.TzcPolicyItem; |
|
|
import com.qs.serve.modules.tzc.entity.TzcPolicyItemLog; |
|
|
import com.qs.serve.modules.tzc.entity.TzcPolicyItemLog; |
|
|
|
|
|
import com.qs.serve.modules.tzc.mapper.TzcPolicyItemMapper; |
|
|
import com.qs.serve.modules.tzc.service.TzcPolicyGoodsSyncService; |
|
|
import com.qs.serve.modules.tzc.service.TzcPolicyGoodsSyncService; |
|
|
import com.qs.serve.modules.tzc.service.TzcPolicyItemLogService; |
|
|
import com.qs.serve.modules.tzc.service.TzcPolicyItemLogService; |
|
|
import com.qs.serve.modules.tzc.service.TzcPolicyItemService; |
|
|
import com.qs.serve.modules.tzc.service.TzcPolicyItemService; |
|
@ -80,6 +83,7 @@ public class PortalOfCostApplication { |
|
|
|
|
|
|
|
|
private SysUserCodeMathMapper userCodeMathMapper; |
|
|
private SysUserCodeMathMapper userCodeMathMapper; |
|
|
private final SysSyncLogService sysSyncLogService; |
|
|
private final SysSyncLogService sysSyncLogService; |
|
|
|
|
|
private SysTableTempMapper sysTableTempMapper; |
|
|
|
|
|
|
|
|
private TbsActivityService activityService; |
|
|
private TbsActivityService activityService; |
|
|
private TbsActivityCenterService activityCenterService; |
|
|
private TbsActivityCenterService activityCenterService; |
|
@ -100,6 +104,7 @@ public class PortalOfCostApplication { |
|
|
private TbsBudgetLogService budgetLogService; |
|
|
private TbsBudgetLogService budgetLogService; |
|
|
private TbsBudgetApplicationService budgetApplicationService; |
|
|
private TbsBudgetApplicationService budgetApplicationService; |
|
|
private TbsBudgetMapper tbsBudgetMapper; |
|
|
private TbsBudgetMapper tbsBudgetMapper; |
|
|
|
|
|
private TzcPolicyItemMapper tzcPolicyItemMapper; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private GoodsSkuService goodsSkuService; |
|
|
private GoodsSkuService goodsSkuService; |
|
@ -311,6 +316,14 @@ public class PortalOfCostApplication { |
|
|
if(costApplyService.count(checkLqw)>0L){ |
|
|
if(costApplyService.count(checkLqw)>0L){ |
|
|
Assert.throwEx("记录已存在"); |
|
|
Assert.throwEx("记录已存在"); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
LambdaQueryWrapper<TbsBudgetLog> tbsLogLqw = new LambdaQueryWrapper<>(); |
|
|
|
|
|
tbsLogLqw.eq(TbsBudgetLog::getPolicyItemId,policyItem.getId()); |
|
|
|
|
|
tbsLogLqw.eq(TbsBudgetLog::getOptType,BudgetLogOptFlag.State_11.getCode()); |
|
|
|
|
|
TbsBudgetLog oriPolicyBudgetLog = budgetLogService.getOne(tbsLogLqw,false); |
|
|
|
|
|
if(oriPolicyBudgetLog==null){ |
|
|
|
|
|
Assert.throwEx("政策预算数据异常:"+policyItem.getPolicyItemCode()); |
|
|
|
|
|
} |
|
|
//构建费用申请
|
|
|
//构建费用申请
|
|
|
TbsCostApply costApply = new TbsCostApply(); |
|
|
TbsCostApply costApply = new TbsCostApply(); |
|
|
//2024年1月23日,添加
|
|
|
//2024年1月23日,添加
|
|
@ -367,7 +380,6 @@ public class PortalOfCostApplication { |
|
|
activityCenter.setCenterAmount(totalAmount); |
|
|
activityCenter.setCenterAmount(totalAmount); |
|
|
activityCenter.setCenterRate(OneHundred); |
|
|
activityCenter.setCenterRate(OneHundred); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
activityCenter.setCenterType(policyItem.getCenterType()); |
|
|
activityCenter.setCenterType(policyItem.getCenterType()); |
|
|
activityCenter.setCenterId(policyItem.getCenterId()); |
|
|
activityCenter.setCenterId(policyItem.getCenterId()); |
|
|
activityCenter.setCenterName(policyItem.getCenterName()); |
|
|
activityCenter.setCenterName(policyItem.getCenterName()); |
|
@ -459,16 +471,8 @@ public class PortalOfCostApplication { |
|
|
}); |
|
|
}); |
|
|
activityCenterGoodsService.saveBatch(activityCenterGoodsList); |
|
|
activityCenterGoodsService.saveBatch(activityCenterGoodsList); |
|
|
|
|
|
|
|
|
// 活动申请扣除预算,这里需要进行保存
|
|
|
|
|
|
|
|
|
|
|
|
LambdaQueryWrapper<TbsBudgetLog> tbsLogLqw = new LambdaQueryWrapper<>(); |
|
|
//活动申请扣除预算,这里需要进行保存
|
|
|
tbsLogLqw.eq(TbsBudgetLog::getPolicyItemId,policyItem.getId()); |
|
|
|
|
|
tbsLogLqw.eq(TbsBudgetLog::getOptType,BudgetLogOptFlag.State_11.getCode()); |
|
|
|
|
|
tbsLogLqw.isNull(TbsBudgetLog::getCostApplyId); |
|
|
|
|
|
TbsBudgetLog oriPolicyBudgetLog = budgetLogService.getOne(tbsLogLqw); |
|
|
|
|
|
if(oriPolicyBudgetLog==null){ |
|
|
|
|
|
Assert.throwEx("政策预算数据异常"); |
|
|
|
|
|
} |
|
|
|
|
|
TbsBudgetLog dropPolicyBudgetLog = new TbsBudgetLog(); |
|
|
TbsBudgetLog dropPolicyBudgetLog = new TbsBudgetLog(); |
|
|
CopierUtil.copy(oriPolicyBudgetLog,dropPolicyBudgetLog); |
|
|
CopierUtil.copy(oriPolicyBudgetLog,dropPolicyBudgetLog); |
|
|
dropPolicyBudgetLog.setId(null); |
|
|
dropPolicyBudgetLog.setId(null); |
|
@ -480,13 +484,13 @@ public class PortalOfCostApplication { |
|
|
dropPolicyBudgetLog.setAmount(totalAmount); |
|
|
dropPolicyBudgetLog.setAmount(totalAmount); |
|
|
//拓展关联
|
|
|
//拓展关联
|
|
|
dropPolicyBudgetLog.setCreateCostId(costApply.getId()); |
|
|
dropPolicyBudgetLog.setCreateCostId(costApply.getId()); |
|
|
|
|
|
dropPolicyBudgetLog.setCreatePolicyItemId(policyItem.getId()); |
|
|
dropPolicyBudgetLog.setRemark("政策生成费用"); |
|
|
dropPolicyBudgetLog.setRemark("政策生成费用"); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
List<TbsBudgetLog> budgetLogList = new ArrayList<>(); |
|
|
List<TbsBudgetLog> budgetLogList = new ArrayList<>(); |
|
|
List<TbsBudgetCostItem> costItemList = new ArrayList<>(); |
|
|
List<TbsBudgetCostItem> costItemList = new ArrayList<>(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
for (TbsActivityCenterGoods centerGoodItem : activityCenterGoodsList) { |
|
|
for (TbsActivityCenterGoods centerGoodItem : activityCenterGoodsList) { |
|
|
TbsBudgetCostItem costItem = centerGoodItem.toBudgetCostItem(); |
|
|
TbsBudgetCostItem costItem = centerGoodItem.toBudgetCostItem(); |
|
|
costItem.setBudgetId(dropPolicyBudgetLog.getBudgetId()); |
|
|
costItem.setBudgetId(dropPolicyBudgetLog.getBudgetId()); |
|
@ -498,6 +502,7 @@ public class PortalOfCostApplication { |
|
|
|
|
|
|
|
|
TbsBudgetLog budgetLog = TbsBudgetLogBuildUtil.buildTbsBudgetLog(BudgetLogOptFlag.State_1,user, costApply, costItem, currBudget,centerGoodItem.getCenterGoodsAmount(),activity); |
|
|
TbsBudgetLog budgetLog = TbsBudgetLogBuildUtil.buildTbsBudgetLog(BudgetLogOptFlag.State_1,user, costApply, costItem, currBudget,centerGoodItem.getCenterGoodsAmount(),activity); |
|
|
budgetLog.setCreateCostId(costApply.getId()); |
|
|
budgetLog.setCreateCostId(costApply.getId()); |
|
|
|
|
|
budgetLog.setCreatePolicyItemId(policyItem.getId()); |
|
|
budgetLog.setRemark("政策生成费用"); |
|
|
budgetLog.setRemark("政策生成费用"); |
|
|
budgetLogList.add(budgetLog); |
|
|
budgetLogList.add(budgetLog); |
|
|
costItemList.add(costItem); |
|
|
costItemList.add(costItem); |
|
@ -511,11 +516,11 @@ public class PortalOfCostApplication { |
|
|
TzcPolicyItemLog policyItemLog = TzcPolicyItemLog.toNewObject(policyItem,totalAmount); |
|
|
TzcPolicyItemLog policyItemLog = TzcPolicyItemLog.toNewObject(policyItem,totalAmount); |
|
|
policyItemLogService.save(policyItemLog); |
|
|
policyItemLogService.save(policyItemLog); |
|
|
|
|
|
|
|
|
//TODO DEV 更新项使用情况
|
|
|
BigDecimal usedAmt = tzcPolicyItemMapper.sumPolicyItemTranAmt(policyItem.getId()); |
|
|
// TzcPolicyItem policyItemParam = new TzcPolicyItem();
|
|
|
TzcPolicyItem policyItemParam = new TzcPolicyItem(); |
|
|
// policyItemParam.setId(policyItem.getId());
|
|
|
policyItemParam.setId(policyItem.getId()); |
|
|
// policyItemParam.setUsedAmount(policyItem.getUsedAmount().add(totalAmount));
|
|
|
policyItemParam.setUsedAmount(usedAmt.add(totalAmount)); |
|
|
// policyItemServiceService.updateById(policyItemParam);
|
|
|
policyItemServiceService.updateById(policyItemParam); |
|
|
|
|
|
|
|
|
//保存核销申请
|
|
|
//保存核销申请
|
|
|
VtbVerification verification = new VtbVerification(); |
|
|
VtbVerification verification = new VtbVerification(); |
|
@ -557,38 +562,6 @@ public class PortalOfCostApplication { |
|
|
verificationSubject.setCountSession(0); |
|
|
verificationSubject.setCountSession(0); |
|
|
verificationSubjectService.save(verificationSubject); |
|
|
verificationSubjectService.save(verificationSubject); |
|
|
|
|
|
|
|
|
//保存支付
|
|
|
|
|
|
// PayPayment payPayment = new PayPayment();
|
|
|
|
|
|
// payPayment.setPayType(PaymentType.PAYMENT);
|
|
|
|
|
|
// payPayment.setPayCode("PM"+ StringUtils.genShortId());
|
|
|
|
|
|
// payPayment.setSupplierId(supplierId);
|
|
|
|
|
|
// payPayment.setSupplierCode(supplier.getCode());
|
|
|
|
|
|
// payPayment.setSupplierName(supplier.getName());
|
|
|
|
|
|
// payPayment.setPayAmount(totalAmount);
|
|
|
|
|
|
// payPayment.setUserId(user.getId());
|
|
|
|
|
|
// payPayment.setUserCode(user.getCode());
|
|
|
|
|
|
// payPayment.setUserName(user.getName());
|
|
|
|
|
|
// payPayment.setPayTime(nowTime);
|
|
|
|
|
|
// payPayment.setErpCode(erpCode);
|
|
|
|
|
|
// payPayment.setBillNumber(billNumber);
|
|
|
|
|
|
// paymentService.save(payPayment);
|
|
|
|
|
|
//
|
|
|
|
|
|
// PayPaymentItem paymentItem = new PayPaymentItem();
|
|
|
|
|
|
// paymentItem.setPaymentId(payPayment.getId());
|
|
|
|
|
|
// paymentItem.setPayType(PaymentType.PAYMENT);
|
|
|
|
|
|
// paymentItem.setSupplierId(supplierId);
|
|
|
|
|
|
// paymentItem.setItemPayAmount(totalAmount);
|
|
|
|
|
|
// paymentItem.setVerificationId(verification.getId());
|
|
|
|
|
|
// paymentItem.setVerificationSubjectId(verificationSubject.getId());
|
|
|
|
|
|
// paymentItem.setCostApplyId(costApply.getId());
|
|
|
|
|
|
// paymentItem.setActivityId(activity.getId());
|
|
|
|
|
|
// paymentItem.setActivityCode(activity.getActivityCode());
|
|
|
|
|
|
// paymentItem.setSubjectId(subject.getId());
|
|
|
|
|
|
// paymentItem.setSubjectCode(subject.getSubjectCode());
|
|
|
|
|
|
// paymentItem.setSubjectName(subject.getSubjectName());
|
|
|
|
|
|
// paymentItemService.save(paymentItem);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -1087,23 +1060,23 @@ public class PortalOfCostApplication { |
|
|
verificationService.save(verification); |
|
|
verificationService.save(verification); |
|
|
|
|
|
|
|
|
//协议类的要直接支付
|
|
|
//协议类的要直接支付
|
|
|
// PayPayment payPayment = new PayPayment();
|
|
|
PayPayment payPayment = new PayPayment(); |
|
|
// payPayment.setPayType(PaymentType.PAYMENT);
|
|
|
payPayment.setPayType(PaymentType.PAYMENT); |
|
|
// payPayment.setPayCode("PM" + StringUtils.genShortId());
|
|
|
payPayment.setPayCode("PM" + StringUtils.genShortId()); |
|
|
// payPayment.setSupplierId(Long.parseLong(supplier.getId()));
|
|
|
payPayment.setSupplierId(Long.parseLong(supplier.getId())); |
|
|
// payPayment.setSupplierCode(supplier.getCode());
|
|
|
payPayment.setSupplierCode(supplier.getCode()); |
|
|
// payPayment.setSupplierName(supplier.getName());
|
|
|
payPayment.setSupplierName(supplier.getName()); |
|
|
// payPayment.setPayAmount(totalAmount);
|
|
|
payPayment.setPayAmount(totalAmount); |
|
|
// payPayment.setCostApplyId(costApply.getId());
|
|
|
payPayment.setCostApplyId(costApply.getId()); |
|
|
// payPayment.setUserId(user.getId());
|
|
|
payPayment.setUserId(user.getId()); |
|
|
// payPayment.setUserCode(user.getCode());
|
|
|
payPayment.setUserCode(user.getCode()); |
|
|
// payPayment.setUserName(user.getName());
|
|
|
payPayment.setUserName(user.getName()); |
|
|
// payPayment.setPayTime(nowTime);
|
|
|
payPayment.setPayTime(nowTime); |
|
|
// payPayment.setErpCode(createBo.getDispatchCode());
|
|
|
payPayment.setErpCode(createBo.getDispatchCode()); |
|
|
// payPayment.setBillNumber(createBo.getBillNumber());
|
|
|
payPayment.setBillNumber(createBo.getBillNumber()); |
|
|
// payPayment.setCreateBy(user.getName());
|
|
|
payPayment.setCreateBy(user.getName()); |
|
|
// payPayment.setCreateTime(LocalDateTime.now());
|
|
|
payPayment.setCreateTime(LocalDateTime.now()); |
|
|
// paymentService.save(payPayment);
|
|
|
paymentService.save(payPayment); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//保存核销费用结果
|
|
|
//保存核销费用结果
|
|
@ -1144,31 +1117,31 @@ public class PortalOfCostApplication { |
|
|
verificationSubject.setCountPerson(0); |
|
|
verificationSubject.setCountPerson(0); |
|
|
verificationSubject.setCountSession(0); |
|
|
verificationSubject.setCountSession(0); |
|
|
|
|
|
|
|
|
// PayPaymentItem paymentItem = new PayPaymentItem();
|
|
|
PayPaymentItem paymentItem = new PayPaymentItem(); |
|
|
// paymentItem.setPaymentId(payPayment.getId());
|
|
|
paymentItem.setPaymentId(payPayment.getId()); |
|
|
// paymentItem.setPayType(PaymentType.PAYMENT);
|
|
|
paymentItem.setPayType(PaymentType.PAYMENT); |
|
|
// paymentItem.setSupplierId(Long.parseLong(supplier.getId()));
|
|
|
paymentItem.setSupplierId(Long.parseLong(supplier.getId())); |
|
|
// paymentItem.setItemPayAmount(totalAmount);
|
|
|
paymentItem.setItemPayAmount(totalAmount); |
|
|
// paymentItem.setPayTime(nowTime);
|
|
|
paymentItem.setPayTime(nowTime); |
|
|
// paymentItem.setVerificationId(verification.getId());
|
|
|
paymentItem.setVerificationId(verification.getId()); |
|
|
// paymentItem.setVerificationCode(verification.getVerificationCode());
|
|
|
paymentItem.setVerificationCode(verification.getVerificationCode()); |
|
|
// paymentItem.setVerificationMainCode(verification.getVerificationCode());
|
|
|
paymentItem.setVerificationMainCode(verification.getVerificationCode()); |
|
|
// paymentItem.setVerificationSubjectId(verificationSubject.getId());
|
|
|
paymentItem.setVerificationSubjectId(verificationSubject.getId()); |
|
|
// paymentItem.setCostApplyId(costApply.getId());
|
|
|
paymentItem.setCostApplyId(costApply.getId()); |
|
|
// paymentItem.setActivityId(activity.getId());
|
|
|
paymentItem.setActivityId(activity.getId()); |
|
|
// paymentItem.setActivityCode(activity.getActivityCode());
|
|
|
paymentItem.setActivityCode(activity.getActivityCode()); |
|
|
// paymentItem.setSubjectId(subject.getId());
|
|
|
paymentItem.setSubjectId(subject.getId()); |
|
|
// paymentItem.setSubjectCode(subject.getSubjectCode());
|
|
|
paymentItem.setSubjectCode(subject.getSubjectCode()); |
|
|
// paymentItem.setSubjectName(subject.getSubjectName());
|
|
|
paymentItem.setSubjectName(subject.getSubjectName()); |
|
|
// paymentItem.setCreateBy(user.getName());
|
|
|
paymentItem.setCreateBy(user.getName()); |
|
|
// paymentItem.setCreateTime(LocalDateTime.now());
|
|
|
paymentItem.setCreateTime(LocalDateTime.now()); |
|
|
|
|
|
|
|
|
//保存和更新项
|
|
|
//保存和更新项
|
|
|
TbsActivitySubject activitySubject = new TbsActivitySubject(); |
|
|
TbsActivitySubject activitySubject = new TbsActivitySubject(); |
|
|
activitySubject.setId(subject.getId()); |
|
|
activitySubject.setId(subject.getId()); |
|
|
activitySubject.setUsedAmount(totalPay); |
|
|
activitySubject.setUsedAmount(totalPay); |
|
|
activitySubjectService.updateById(subject); |
|
|
activitySubjectService.updateById(subject); |
|
|
// paymentItemService.save(paymentItem);
|
|
|
paymentItemService.save(paymentItem); |
|
|
verificationSubjectService.save(verificationSubject); |
|
|
verificationSubjectService.save(verificationSubject); |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
@ -1227,20 +1200,27 @@ public class PortalOfCostApplication { |
|
|
* 修复数据方法,修复后可删除 |
|
|
* 修复数据方法,修复后可删除 |
|
|
*/ |
|
|
*/ |
|
|
public void repairCaCost(){ |
|
|
public void repairCaCost(){ |
|
|
|
|
|
Assert.throwEx("DEV"); |
|
|
LambdaQueryWrapper<SysSyncLog> lqw = new LambdaQueryWrapper<>(); |
|
|
LambdaQueryWrapper<SysSyncLog> lqw = new LambdaQueryWrapper<>(); |
|
|
lqw.eq(SysSyncLog::getFromPlat,"一站式费用ByDong"); |
|
|
lqw.eq(SysSyncLog::getFromPlat,"一站式费用ByDong"); |
|
|
//只处理成功的
|
|
|
//只处理成功的
|
|
|
lqw.eq(SysSyncLog::getSuccessStatus,1); |
|
|
lqw.eq(SysSyncLog::getSuccessStatus,1); |
|
|
lqw.eq(SysSyncLog::getId,13731L); |
|
|
lqw.in(SysSyncLog::getId,13506L,13542L,13674L,8323L,12510L,12585L,12642L,12645L,12660L,12708L,13298L); |
|
|
List<SysSyncLog> syncLogList = sysSyncLogService.list(lqw); |
|
|
List<SysSyncLog> syncLogList = sysSyncLogService.list(lqw); |
|
|
for (SysSyncLog syncLog : syncLogList) { |
|
|
for (SysSyncLog syncLog : syncLogList) { |
|
|
ProcessCreatePolicyCostBo applyBo = JsonUtil.jsonToPojo(syncLog.getRequestJson(),ProcessCreatePolicyCostBo.class); |
|
|
ProcessCreatePolicyCostBo applyBo = JsonUtil.jsonToPojo(syncLog.getRequestJson(),ProcessCreatePolicyCostBo.class); |
|
|
String title = applyBo.getCostTheme(); |
|
|
String title = applyBo.getCostTheme(); |
|
|
|
|
|
|
|
|
LambdaQueryWrapper<TbsCostApply> costLqw = new LambdaQueryWrapper<>(); |
|
|
LambdaQueryWrapper<TbsCostApply> costLqw = new LambdaQueryWrapper<>(); |
|
|
costLqw.eq(TbsCostApply::getChargeTheme,title); |
|
|
costLqw.eq(TbsCostApply::getChargeTheme,title); |
|
|
TbsCostApply costApply = costApplyService.getOne(costLqw); |
|
|
List<TbsCostApply> costApplyList = costApplyService.list(costLqw); |
|
|
if(costApply!=null){ |
|
|
|
|
|
|
|
|
SysTableTemp sysTableTemp = new SysTableTemp(); |
|
|
|
|
|
sysTableTemp.setTableName("sys_sync_log"); |
|
|
|
|
|
sysTableTemp.setTableId(syncLog.getId()+""); |
|
|
|
|
|
sysTableTemp.setOptionTitle("修复CA数据"); |
|
|
|
|
|
|
|
|
|
|
|
for (int i = 0; i < costApplyList.size(); i++) { |
|
|
|
|
|
TbsCostApply costApply = costApplyList.get(i); |
|
|
costApplyService.removeById(costApply.getId()); |
|
|
costApplyService.removeById(costApply.getId()); |
|
|
QueryWrapper costqw = new QueryWrapper(); |
|
|
QueryWrapper costqw = new QueryWrapper(); |
|
|
costqw.eq("cost_apply_id",costApply.getId()); |
|
|
costqw.eq("cost_apply_id",costApply.getId()); |
|
@ -1251,14 +1231,16 @@ public class PortalOfCostApplication { |
|
|
activityCenterGoodsService.remove(costqw); |
|
|
activityCenterGoodsService.remove(costqw); |
|
|
budgetLogService.remove(costqw); |
|
|
budgetLogService.remove(costqw); |
|
|
costItemService.remove(costqw); |
|
|
costItemService.remove(costqw); |
|
|
//policyItemLogService
|
|
|
|
|
|
//policyItemServiceService
|
|
|
|
|
|
verificationService.remove(costqw); |
|
|
verificationService.remove(costqw); |
|
|
|
|
|
verificationSubjectService.remove(costqw); |
|
|
|
|
|
} |
|
|
|
|
|
try { |
|
|
this.createCostProcessByPolicy(applyBo); |
|
|
this.createCostProcessByPolicy(applyBo); |
|
|
break; |
|
|
sysTableTemp.setDealState(1); |
|
|
|
|
|
} catch (Exception e) { |
|
|
|
|
|
sysTableTemp.setResultMsg(e.getMessage()); |
|
|
} |
|
|
} |
|
|
|
|
|
sysTableTempMapper.insert(sysTableTemp); |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|