Browse Source

需求变更

tags/24080901
PoffyZhang 1 year ago
parent
commit
88ee5db4ad
6 changed files with 22 additions and 9 deletions
  1. +5
    -7
      pmapi/src/main/java/com/ningdatech/pmapi/projectdeclared/manage/DefaultDeclaredProjectManage.java
  2. +3
    -1
      pmapi/src/main/java/com/ningdatech/pmapi/projectdeclared/manage/PrequalificationDeclaredProjectManage.java
  3. +2
    -1
      pmapi/src/main/java/com/ningdatech/pmapi/projectdeclared/manage/ReviewByProvincialDeptManage.java
  4. +3
    -0
      pmapi/src/main/java/com/ningdatech/pmapi/projectlib/model/dto/ProjectDTO.java
  5. +6
    -0
      pmapi/src/main/java/com/ningdatech/pmapi/projectlib/model/entity/Project.java
  6. +3
    -0
      pmapi/src/main/java/com/ningdatech/pmapi/projectlib/model/vo/ProjectDetailVO.java

+ 5
- 7
pmapi/src/main/java/com/ningdatech/pmapi/projectdeclared/manage/DefaultDeclaredProjectManage.java View File

@@ -142,9 +142,9 @@ public class DefaultDeclaredProjectManage {
} }


//直接提交预审方法 提取 在省级联审通过的时候 也可以用 //直接提交预审方法 提取 在省级联审通过的时候 也可以用
public String directStartProcess(Project projectInfo){
UserInfoDetails userInfoDetails = LoginUserUtil.loginUserDetail();
Long userId = userInfoDetails.getUserId();
public String directStartProcess(Project projectInfo,Long userId){
VUtils.isTrue(Objects.isNull(userId))
.throwMessage("发起人Id 不能为空!");


ProcessStartParamsVo params = new ProcessStartParamsVo(); ProcessStartParamsVo params = new ProcessStartParamsVo();
params.setUser(buildUser(userId)); params.setUser(buildUser(userId));
@@ -173,7 +173,7 @@ public class DefaultDeclaredProjectManage {
log.info("提交预审项目成功 【{}】", instanceId); log.info("提交预审项目成功 【{}】", instanceId);


//保存预审项目 //保存预审项目
modifyProject(projectInfo, instanceId);
preModifyProject(projectInfo, instanceId);


return instanceId; return instanceId;
} }
@@ -184,13 +184,11 @@ public class DefaultDeclaredProjectManage {
* @param project * @param project
* @param instanceId * @param instanceId
*/ */
private void modifyProject(Project project, String instanceId) {
private void preModifyProject(Project project, String instanceId) {
//流程启动之后 入库项目 重要业务信息 用于列表查询 展示 //流程启动之后 入库项目 重要业务信息 用于列表查询 展示
try { try {
project.setUpdateOn(LocalDateTime.now()); project.setUpdateOn(LocalDateTime.now());
project.setInstCode(instanceId); project.setInstCode(instanceId);
//调用状态机 进入下一个通过状态
stateMachineUtils.pass(project);
projectService.updateById(project); projectService.updateById(project);


//保存项目和实例的关系 //保存项目和实例的关系


+ 3
- 1
pmapi/src/main/java/com/ningdatech/pmapi/projectdeclared/manage/PrequalificationDeclaredProjectManage.java View File

@@ -116,6 +116,8 @@ public class PrequalificationDeclaredProjectManage {
.getCode().equals(projectInfo.getStatus())){ .getCode().equals(projectInfo.getStatus())){
//入库暂存表 后续处理 对接外部接口 //入库暂存表 后续处理 对接外部接口
projectInfo.setUpdateOn(LocalDateTime.now()); projectInfo.setUpdateOn(LocalDateTime.now());
//保存一下 当前的主管单位发起人
projectInfo.setPreStartUserId(userId);
if(projectStagingService.addByProject(projectInfo,"省级部门联审") if(projectStagingService.addByProject(projectInfo,"省级部门联审")
&& projectService.updateById(projectInfo)){ && projectService.updateById(projectInfo)){
return "提交省级部门联审成功"; return "提交省级部门联审成功";
@@ -124,7 +126,7 @@ public class PrequalificationDeclaredProjectManage {
}else if(ProjectStatusEnum.PRE_APPLYING }else if(ProjectStatusEnum.PRE_APPLYING
.getCode().equals(projectInfo.getStatus())){ .getCode().equals(projectInfo.getStatus())){
//如果是非省级联审的项目 直接提交 预审 //如果是非省级联审的项目 直接提交 预审
instanceId = defaultDeclaredProjectManage.directStartProcess(projectInfo);
instanceId = defaultDeclaredProjectManage.directStartProcess(projectInfo,userId);
}else{ }else{
throw new BusinessException("项目状态 错误 project :" + JSON.toJSONString(projectInfo)); throw new BusinessException("项目状态 错误 project :" + JSON.toJSONString(projectInfo));
} }


+ 2
- 1
pmapi/src/main/java/com/ningdatech/pmapi/projectdeclared/manage/ReviewByProvincialDeptManage.java View File

@@ -54,7 +54,8 @@ public class ReviewByProvincialDeptManage {
stateMachineUtils.pass(project); stateMachineUtils.pass(project);
projectService.updateById(project); projectService.updateById(project);
//直接去预审 //直接去预审
if(StringUtils.isNotBlank(defaultProjectManage.directStartProcess(project))){
if(StringUtils.isNotBlank(defaultProjectManage
.directStartProcess(project,project.getPreStartUserId()))){
return Boolean.TRUE; return Boolean.TRUE;
} }
} }


+ 3
- 0
pmapi/src/main/java/com/ningdatech/pmapi/projectlib/model/dto/ProjectDTO.java View File

@@ -282,6 +282,9 @@ public class ProjectDTO implements Serializable {
@ApiModelProperty("项目发起人") @ApiModelProperty("项目发起人")
private Long sponsor; private Long sponsor;


@ApiModelProperty("上级条线单位审核意见")
private String higherLineSuperOrgReviewComments;

private Map<String,Object> dynamicForm; private Map<String,Object> dynamicForm;


} }

+ 6
- 0
pmapi/src/main/java/com/ningdatech/pmapi/projectlib/model/entity/Project.java View File

@@ -297,6 +297,12 @@ public class Project implements Serializable {
@ApiModelProperty("项目发起人 用户id") @ApiModelProperty("项目发起人 用户id")
private Long sponsor; private Long sponsor;


@ApiModelProperty("预审发起人 用户id")
private Long preStartUserId;

@ApiModelProperty("上级条线单位审核意见")
private String higherLineSuperOrgReviewComments;

@TableField(fill = FieldFill.INSERT) @TableField(fill = FieldFill.INSERT)
private Long createBy; private Long createBy;




+ 3
- 0
pmapi/src/main/java/com/ningdatech/pmapi/projectlib/model/vo/ProjectDetailVO.java View File

@@ -289,6 +289,9 @@ public class ProjectDetailVO {
@ApiModelProperty("项目发起人id") @ApiModelProperty("项目发起人id")
private Long sponsor; private Long sponsor;


@ApiModelProperty("上级条线单位审核意见")
private String higherLineSuperOrgReviewComments;

private String projectTypeName; private String projectTypeName;


public String getProjectTypeName() { public String getProjectTypeName() {


Loading…
Cancel
Save