瀏覽代碼

单位子流程 发布

master
PoffyZhang 1 年之前
父節點
當前提交
8fb0ea449d
共有 1 個檔案被更改,包括 4 行新增4 行删除
  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 查看文件

@@ -11,7 +11,7 @@ import com.ningdatech.pmapi.declared.entity.dto.DeclaredProjectListParamDto;
import com.ningdatech.pmapi.projectlib.enums.ProjectStatusEnum;
import com.ningdatech.pmapi.projectlib.model.entity.Project;
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.exception.BusinessException;
import com.wflow.workflow.bean.vo.ProcessStartParamsVo;
@@ -41,7 +41,7 @@ import java.util.stream.Collectors;
@RequiredArgsConstructor
public class DeclaredProjectManage {

private final INdProjectService ndProjectService;
private final IProjectService projectService;

private final ProcessInstanceService processService;

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


Loading…
取消
儲存