Commit 8924a3e7 authored by yaobaizheng's avatar yaobaizheng

合伙招商后台

parent 9e2b1305
package com.ruoyi.system.service.impl; package com.ruoyi.system.service.impl;
import java.util.Date;
import java.util.List; import java.util.List;
import com.ruoyi.common.exception.GlobalException;
import com.ruoyi.common.exception.ServiceException;
import com.ruoyi.common.utils.DateUtils; import com.ruoyi.common.utils.DateUtils;
import com.ruoyi.system.VO.ChangeStatusVO; import com.ruoyi.system.VO.ChangeStatusVO;
import com.ruoyi.system.VO.ProjectInfoVO; import com.ruoyi.system.VO.ProjectInfoVO;
...@@ -17,6 +21,10 @@ import com.ruoyi.system.mapper.PartnerProjectInfoMapper; ...@@ -17,6 +21,10 @@ import com.ruoyi.system.mapper.PartnerProjectInfoMapper;
import com.ruoyi.system.domain.PartnerProjectInfo; import com.ruoyi.system.domain.PartnerProjectInfo;
import com.ruoyi.system.service.IPartnerProjectInfoService; import com.ruoyi.system.service.IPartnerProjectInfoService;
import com.ruoyi.common.core.text.Convert; import com.ruoyi.common.core.text.Convert;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;
import static org.springframework.transaction.TransactionDefinition.PROPAGATION_REQUIRED;
/** /**
* 合伙人项目Service业务层处理 * 合伙人项目Service业务层处理
...@@ -112,6 +120,7 @@ public class PartnerProjectInfoServiceImpl implements IPartnerProjectInfoService ...@@ -112,6 +120,7 @@ public class PartnerProjectInfoServiceImpl implements IPartnerProjectInfoService
} }
@Override @Override
@Transactional
public int updateChangeStatus(ChangeStatusVO changeStatusVO){ public int updateChangeStatus(ChangeStatusVO changeStatusVO){
//更新项目的信息 //更新项目的信息
...@@ -126,6 +135,7 @@ public class PartnerProjectInfoServiceImpl implements IPartnerProjectInfoService ...@@ -126,6 +135,7 @@ public class PartnerProjectInfoServiceImpl implements IPartnerProjectInfoService
} }
partnerProjectInfoUp.setStatus(nextCodeByCode); partnerProjectInfoUp.setStatus(nextCodeByCode);
partnerProjectInfoUp.setStatusDescription(message); partnerProjectInfoUp.setStatusDescription(message);
partnerProjectInfoUp.setUpdateTime(new Date());
//更新当前节点 //更新当前节点
PartnerProjectStatusChangeLog statusChange = new PartnerProjectStatusChangeLog(); PartnerProjectStatusChangeLog statusChange = new PartnerProjectStatusChangeLog();
...@@ -134,6 +144,7 @@ public class PartnerProjectInfoServiceImpl implements IPartnerProjectInfoService ...@@ -134,6 +144,7 @@ public class PartnerProjectInfoServiceImpl implements IPartnerProjectInfoService
statusChange.setTodoStatus(PartnerProjectToDoEnum.TODOSTATUS_1.getCode()); statusChange.setTodoStatus(PartnerProjectToDoEnum.TODOSTATUS_1.getCode());
statusChange.setTodoStatusDescription(PartnerProjectToDoEnum.TODOSTATUS_1.getMessage()); statusChange.setTodoStatusDescription(PartnerProjectToDoEnum.TODOSTATUS_1.getMessage());
statusChange.setCurrentNodeStatus(PartnerProjectStatusEnum.CURRENT_NODES_END.getCode()); statusChange.setCurrentNodeStatus(PartnerProjectStatusEnum.CURRENT_NODES_END.getCode());
statusChange.setUpdateTime(new Date());
if(changeStatusVO.getStatus() == PartnerProjectExamineEnum.PROJECTSTATUS2.getCode()){ if(changeStatusVO.getStatus() == PartnerProjectExamineEnum.PROJECTSTATUS2.getCode()){
if(changeStatusVO.getRepeateType() == PartnerProjectStatusEnum.PROJECT_REPRATE.getCode()){ if(changeStatusVO.getRepeateType() == PartnerProjectStatusEnum.PROJECT_REPRATE.getCode()){
statusChange.setTodoStatus(PartnerProjectToDoEnum.TODOSTATUS0.getCode()); statusChange.setTodoStatus(PartnerProjectToDoEnum.TODOSTATUS0.getCode());
...@@ -162,6 +173,9 @@ public class PartnerProjectInfoServiceImpl implements IPartnerProjectInfoService ...@@ -162,6 +173,9 @@ public class PartnerProjectInfoServiceImpl implements IPartnerProjectInfoService
//关联产业知道id //关联产业知道id
if(changeStatusVO.getStatus() == PartnerProjectExamineEnum.PROJECTSTATUS4.getCode()){ if(changeStatusVO.getStatus() == PartnerProjectExamineEnum.PROJECTSTATUS4.getCode()){
if(ObjectUtils.isEmpty(changeStatusVO.getChanyezhidaoPeojectId())){
throw new ServiceException("关联id不能为空");
}
PartnerProjectInfo partnerProjectInfo = new PartnerProjectInfo(); PartnerProjectInfo partnerProjectInfo = new PartnerProjectInfo();
partnerProjectInfo.setProjectId(changeStatusVO.getChanyezhidaoPeojectId()); partnerProjectInfo.setProjectId(changeStatusVO.getChanyezhidaoPeojectId());
partnerProjectInfo.setId(changeStatusVO.getProjectId()); partnerProjectInfo.setId(changeStatusVO.getProjectId());
...@@ -180,6 +194,7 @@ public class PartnerProjectInfoServiceImpl implements IPartnerProjectInfoService ...@@ -180,6 +194,7 @@ public class PartnerProjectInfoServiceImpl implements IPartnerProjectInfoService
//更新下一个节点 //更新下一个节点
PartnerProjectStatusChangeLog partnerProjectStatusChangeLog = partnerProjectStatusChangeLogs.get(0); PartnerProjectStatusChangeLog partnerProjectStatusChangeLog = partnerProjectStatusChangeLogs.get(0);
partnerProjectStatusChangeLog.setCurrentNodeStatus(PartnerProjectStatusEnum.CURRENT_NODES_STARTING.getCode()); partnerProjectStatusChangeLog.setCurrentNodeStatus(PartnerProjectStatusEnum.CURRENT_NODES_STARTING.getCode());
partnerProjectStatusChangeLog.setUpdateTime(new Date());
if(changeStatusVO.getStatus() == PartnerProjectExamineEnum.PROJECTSTATUS2.getCode()) { if(changeStatusVO.getStatus() == PartnerProjectExamineEnum.PROJECTSTATUS2.getCode()) {
if (changeStatusVO.getRepeateType() == PartnerProjectStatusEnum.PROJECT_REPRATE.getCode()) { if (changeStatusVO.getRepeateType() == PartnerProjectStatusEnum.PROJECT_REPRATE.getCode()) {
partnerProjectStatusChangeLog.setCurrentNodeStatus(PartnerProjectStatusEnum.CURRENT_NODES_START.getCode()); partnerProjectStatusChangeLog.setCurrentNodeStatus(PartnerProjectStatusEnum.CURRENT_NODES_START.getCode());
......
...@@ -274,14 +274,14 @@ ...@@ -274,14 +274,14 @@
<div class="form-group"> <div class="form-group">
<label class="col-sm-3 control-label">近年营收:</label> <label class="col-sm-3 control-label">近年营收:</label>
<div class="col-sm-8"> <div class="col-sm-8">
<input name="continuousRevenue" th:field="*{continuousRevenue}" class="form-control" <input readonly="readonly" name="continuousRevenue" th:field="*{continuousRevenue}" class="form-control"
type="text"> type="text">
</div> </div>
</div> </div>
<div class="form-group"> <div class="form-group">
<label class="col-sm-3 control-label">产业基地:</label> <label class="col-sm-3 control-label">产业基地:</label>
<div class="col-sm-8"> <div class="col-sm-8">
<input name="industrialBase" th:field="*{industrialBase}" class="form-control" <input readonly="readonly" name="industrialBase" th:field="*{industrialBase}" class="form-control"
type="text"> type="text">
</div> </div>
</div> </div>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment