Browse Source

项目库 预审申报项目 可被提交

tags/24080901
PoffyZhang 1 year ago
parent
commit
94eace592f
2 changed files with 5 additions and 1 deletions
  1. +1
    -1
      pmapi/src/main/java/com/ningdatech/pmapi/projectlib/controller/AnnualPlanController.java
  2. +4
    -0
      pmapi/src/main/java/com/ningdatech/pmapi/projectlib/manage/AnnualPlanLibManage.java

+ 1
- 1
pmapi/src/main/java/com/ningdatech/pmapi/projectlib/controller/AnnualPlanController.java View File

@@ -35,7 +35,7 @@ public class AnnualPlanController {
private final AnnualPlanLibManage annualPlanLibManage; private final AnnualPlanLibManage annualPlanLibManage;


@GetMapping("/list") @GetMapping("/list")
@ApiOperation("年计划库列表")
@ApiOperation("年计划库列表")
public PageVo<AnnualPlanListItemVO> annualPlanLibList(ProjectListReq req) { public PageVo<AnnualPlanListItemVO> annualPlanLibList(ProjectListReq req) {
return annualPlanLibManage.annulPlanLibList(req); return annualPlanLibManage.annulPlanLibList(req);
} }


+ 4
- 0
pmapi/src/main/java/com/ningdatech/pmapi/projectlib/manage/AnnualPlanLibManage.java View File

@@ -57,6 +57,8 @@ public class AnnualPlanLibManage {
private final IProjectService projectService; private final IProjectService projectService;
private final StateMachineUtils stateMachine; private final StateMachineUtils stateMachine;


private final ProjectLibManage projectLibManage;

/** /**
* 年度计划查询状态 * 年度计划查询状态
*/ */
@@ -87,6 +89,8 @@ public class AnnualPlanLibManage {
query.eq(Project::getIsTemporaryAugment, isTemporaryAugment); query.eq(Project::getIsTemporaryAugment, isTemporaryAugment);
query.orderByDesc(Project::getAnnualPlanAddTime); query.orderByDesc(Project::getAnnualPlanAddTime);
query.in(Project::getStatus, CollUtils.fieldList(ANNUAL_PLAN_LIST_STATUS, ProjectStatusEnum::getCode)); query.in(Project::getStatus, CollUtils.fieldList(ANNUAL_PLAN_LIST_STATUS, ProjectStatusEnum::getCode));
//数据权限
projectLibManage.buildProjectLibPermission(query);
Page<Project> page = projectService.page(req.page(), query); Page<Project> page = projectService.page(req.page(), query);
long total; long total;
if ((total = page.getTotal()) == 0) { if ((total = page.getTotal()) == 0) {


Loading…
Cancel
Save