Browse Source

试运行阶段自动创建后续流程修改

master
gjh 2 weeks ago
parent
commit
8725ef729e
  1. 7
      huzhou/src/main/java/com/easy/admin/modules/huzhou/service/impl/HuzhouPlaninfofileServiceImpl.java

7
huzhou/src/main/java/com/easy/admin/modules/huzhou/service/impl/HuzhouPlaninfofileServiceImpl.java

@ -155,13 +155,16 @@ public class HuzhouPlaninfofileServiceImpl extends ServiceImpl<HuzhouPlaninfofil
taskName=StrUtil.trim(taskName);
// 校验参数
checkVariable(contractMoneyFieldsValue, contractList, planinfo, taskName);
String projectId = planinfoService.getById(planinfoid).getProjectId();
HuzhouProjectinfo huzhouProjectinfo = projectinfoService.getById(projectId);
// 提交试运行阶段的时候自动创建 计划
if("试运行阶段".equals(taskName)){
LambdaQueryWrapper<HuzhouPlaninfo> queryWrapper = new LambdaQueryWrapper<>();
queryWrapper.eq(HuzhouPlaninfo::getProjectId,planinfo.getProjectId());
queryWrapper.eq(HuzhouPlaninfo::getTaskName,"试运行阶段");
HuzhouPlaninfo source = planinfoMapper.selectOne(queryWrapper);
if (source != null && source.getIsfinish().equals("0")) {
if (source != null && huzhouProjectinfo.getAdminDivision().equals("市本级") ) {
HuzhouPlaninfo target = new HuzhouPlaninfo();
BeanUtils.copyProperties(source,target,"id","actualStartTime","actualEndTime");
target.setTaskName("提交终验申请");
@ -176,8 +179,6 @@ public class HuzhouPlaninfofileServiceImpl extends ServiceImpl<HuzhouPlaninfofil
planinfoMapper.insert(target);
}
}
String projectId = planinfoService.getById(planinfoid).getProjectId();
HuzhouProjectinfo huzhouProjectinfo = projectinfoService.getById(projectId);
String superLeader = "";
String adminDivision="";

Loading…
Cancel
Save