|
@@ -4,6 +4,7 @@ import cn.hutool.core.bean.BeanUtil; |
|
|
import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
|
|
import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
|
|
import com.ningdatech.basic.function.VUtils; |
|
|
import com.ningdatech.basic.function.VUtils; |
|
|
import com.ningdatech.pmapi.common.constant.BizConst; |
|
|
import com.ningdatech.pmapi.common.constant.BizConst; |
|
|
|
|
|
import com.ningdatech.pmapi.common.statemachine.util.StateMachineUtils; |
|
|
import com.ningdatech.pmapi.projectdeclared.model.dto.OperationDTO; |
|
|
import com.ningdatech.pmapi.projectdeclared.model.dto.OperationDTO; |
|
|
import com.ningdatech.pmapi.projectdeclared.model.entity.Operation; |
|
|
import com.ningdatech.pmapi.projectdeclared.model.entity.Operation; |
|
|
import com.ningdatech.pmapi.projectdeclared.model.vo.OperationVO; |
|
|
import com.ningdatech.pmapi.projectdeclared.model.vo.OperationVO; |
|
@@ -35,6 +36,8 @@ public class OperationManage { |
|
|
|
|
|
|
|
|
private final IProjectService projectService; |
|
|
private final IProjectService projectService; |
|
|
|
|
|
|
|
|
|
|
|
private final StateMachineUtils stateMachineUtils; |
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
|
* 获取实施详情 |
|
|
* 获取实施详情 |
|
|
* @param projectId |
|
|
* @param projectId |
|
@@ -78,7 +81,11 @@ public class OperationManage { |
|
|
entity.setProjectCode(project.getProjectCode()); |
|
|
entity.setProjectCode(project.getProjectCode()); |
|
|
entity.setUpdateOn(LocalDateTime.now()); |
|
|
entity.setUpdateOn(LocalDateTime.now()); |
|
|
entity.setUpdateBy(user.getUsername()); |
|
|
entity.setUpdateBy(user.getUsername()); |
|
|
operationService.saveOrUpdate(entity); |
|
|
|
|
|
|
|
|
if(operationService.saveOrUpdate(entity)){ |
|
|
|
|
|
stateMachineUtils.pass(project); |
|
|
|
|
|
project.setUpdateOn(LocalDateTime.now()); |
|
|
|
|
|
projectService.updateById(project); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
return entity.getProjectCode(); |
|
|
return entity.getProjectCode(); |
|
|
} |
|
|
} |
|
|