|
|
@@ -359,6 +359,7 @@ public class ITopInstSettleServiceImpl extends ServiceImpl<TopInstSettleMapper,
|
|
|
entity.setCheckStatus(1);
|
|
|
entity.setCreateBy(bo.getLoginName());
|
|
|
entity.setCreateUserId(bo.getLoginId());
|
|
|
+ entity.setProjectId(getProjectId(bo.getBusinessId()));
|
|
|
//供应商默认结算成本模板
|
|
|
TopCostInstTp costInstTp = topCostInstTpService
|
|
|
.getOne(new LambdaQueryWrapper<TopCostInstTp>()
|
|
|
@@ -388,6 +389,14 @@ public class ITopInstSettleServiceImpl extends ServiceImpl<TopInstSettleMapper,
|
|
|
return true;
|
|
|
}
|
|
|
|
|
|
+ private Long getProjectId(Long businessId){
|
|
|
+ TopCourseBusiness courseBusiness = topCourseBusinessService.getById(businessId);
|
|
|
+ if (ObjectUtils.isNull(courseBusiness)){
|
|
|
+ throw new CustomException("业务层次查询有误");
|
|
|
+ }
|
|
|
+ return courseBusiness.getProjectId();
|
|
|
+ }
|
|
|
+
|
|
|
private void createCheckLog(String settleSn,Long loginId,String loginName){
|
|
|
//获取审核和支付流程
|
|
|
List<TopOldOrderCheck> list = topOldOrderCheckService
|
|
|
@@ -457,6 +466,7 @@ public class ITopInstSettleServiceImpl extends ServiceImpl<TopInstSettleMapper,
|
|
|
entity.setCheckStatus(1);
|
|
|
entity.setCreateBy(bo.getLoginName());
|
|
|
entity.setCreateUserId(bo.getLoginId());
|
|
|
+ entity.setProjectId(getProjectId(bo.getBusinessId()));
|
|
|
//供应商默认结算成本模板
|
|
|
TopCostInstTp costInstTp = topCostInstTpService
|
|
|
.getOne(new LambdaQueryWrapper<TopCostInstTp>()
|
|
|
@@ -633,6 +643,7 @@ public class ITopInstSettleServiceImpl extends ServiceImpl<TopInstSettleMapper,
|
|
|
updateSettleCheck(bo.getSettleId(),bo.getLoginId(),bo.getLoginName());
|
|
|
TopInstSettle entity = BeanUtil.toBean(bo, TopInstSettle.class);
|
|
|
entity.setStatus(bo.getStatus());
|
|
|
+ entity.setProjectId(getProjectId(bo.getBusinessId()));
|
|
|
entity.setUpdateTime(DateUtils.getNowTime());
|
|
|
updateById(entity);
|
|
|
if (bo.getStatus() == 1){
|
|
|
@@ -650,6 +661,7 @@ public class ITopInstSettleServiceImpl extends ServiceImpl<TopInstSettleMapper,
|
|
|
TopInstSettle entity = BeanUtil.toBean(bo, TopInstSettle.class);
|
|
|
entity.setStatus(bo.getStatus());
|
|
|
entity.setUpdateTime(DateUtils.getNowTime());
|
|
|
+ entity.setProjectId(getProjectId(bo.getBusinessId()));
|
|
|
updateById(entity);
|
|
|
//删除重新添加结算订单信息
|
|
|
topInstSettleRelationService.remove(new LambdaQueryWrapper<TopInstSettleRelaiton>()
|