CMM 1 year ago
parent
commit
0a02531107
1 changed files with 4 additions and 4 deletions
  1. +4
    -4
      pmapi/src/main/java/com/ningdatech/pmapi/declared/manage/DeclaredProjectManage.java

+ 4
- 4
pmapi/src/main/java/com/ningdatech/pmapi/declared/manage/DeclaredProjectManage.java View File

@@ -11,7 +11,7 @@ import com.ningdatech.pmapi.declared.entity.dto.DeclaredProjectListParamDto;
import com.ningdatech.pmapi.projectlib.enums.ProjectStatusEnum; import com.ningdatech.pmapi.projectlib.enums.ProjectStatusEnum;
import com.ningdatech.pmapi.projectlib.model.entity.Project; import com.ningdatech.pmapi.projectlib.model.entity.Project;
import com.ningdatech.pmapi.projectlib.model.vo.ProjectLibListItemVO; import com.ningdatech.pmapi.projectlib.model.vo.ProjectLibListItemVO;
import com.ningdatech.pmapi.projectlib.service.INdProjectService;
import com.ningdatech.pmapi.projectlib.service.IProjectService;
import com.wflow.bean.entity.WflowModels; import com.wflow.bean.entity.WflowModels;
import com.wflow.exception.BusinessException; import com.wflow.exception.BusinessException;
import com.wflow.workflow.bean.vo.ProcessStartParamsVo; import com.wflow.workflow.bean.vo.ProcessStartParamsVo;
@@ -41,7 +41,7 @@ import java.util.stream.Collectors;
@RequiredArgsConstructor @RequiredArgsConstructor
public class DeclaredProjectManage { public class DeclaredProjectManage {


private final INdProjectService ndProjectService;
private final IProjectService projectService;


private final ProcessInstanceService processService; private final ProcessInstanceService processService;


@@ -58,7 +58,7 @@ public class DeclaredProjectManage {
.eq(Objects.nonNull(params.getProjectStatusSecond()), Project::getProjectStatusSecond, params.getProjectStatusSecond()) .eq(Objects.nonNull(params.getProjectStatusSecond()), Project::getProjectStatusSecond, params.getProjectStatusSecond())
.like(StringUtils.isNotBlank(params.getProjectName()), Project::getProjectName, params.getProjectName()) .like(StringUtils.isNotBlank(params.getProjectName()), Project::getProjectName, params.getProjectName())
.orderByDesc(Project::getUpdateOn); .orderByDesc(Project::getUpdateOn);
ndProjectService.page(page,wrapper);
projectService.page(page,wrapper);
if(0L == page.getTotal()){ if(0L == page.getTotal()){
return PageVo.empty(); return PageVo.empty();
} }
@@ -106,7 +106,7 @@ public class DeclaredProjectManage {
project.setProjectStatusFirst(ProjectStatusEnum.NOT_APPROVED.getCode()); project.setProjectStatusFirst(ProjectStatusEnum.NOT_APPROVED.getCode());
project.setProjectStatusSecond(ProjectStatusEnum.UNDER_INTERNAL_AUDIT.getCode()); project.setProjectStatusSecond(ProjectStatusEnum.UNDER_INTERNAL_AUDIT.getCode());
project.setInstCode(instanceId); project.setInstCode(instanceId);
ndProjectService.save(project);
projectService.save(project);
}catch (Exception e){ }catch (Exception e){
log.error("项目信息入库错误 ",e); log.error("项目信息入库错误 ",e);
throw new BusinessException("项目信息入库错误 请注意格式"); throw new BusinessException("项目信息入库错误 请注意格式");


Loading…
Cancel
Save