Browse Source

修改项目库部门查询无效

tags/24080901
WendyYang 4 months ago
parent
commit
cbf1e474ba
5 changed files with 14 additions and 2 deletions
  1. +1
    -1
      hz-pm-api/src/main/java/com/hz/pm/api/meeting/entity/enumeration/MeetingReviewTypeEnum.java
  2. +1
    -1
      hz-pm-api/src/main/java/com/hz/pm/api/meeting/manage/MeetingManage.java
  3. +4
    -0
      hz-pm-api/src/main/java/com/hz/pm/api/projectlib/manage/ProjectLibManage.java
  4. +6
    -0
      hz-pm-api/src/main/java/com/hz/pm/api/projectlib/mapper/ProjectMapper.xml
  5. +2
    -0
      hz-pm-api/src/main/java/com/hz/pm/api/projectlib/model/req/ProjectListReq.java

+ 1
- 1
hz-pm-api/src/main/java/com/hz/pm/api/meeting/entity/enumeration/MeetingReviewTypeEnum.java View File

@@ -32,7 +32,7 @@ public enum MeetingReviewTypeEnum {

PROJECT_REVIEW("项目评审", "6"),

REQUIREMENT_REVIEW("需求论证", "7");
EXPERT_REVIEW("专家论证", "7");

private final String value;
private final String code;


+ 1
- 1
hz-pm-api/src/main/java/com/hz/pm/api/meeting/manage/MeetingManage.java View File

@@ -942,7 +942,7 @@ public class MeetingManage {
case FAIRNESS_REVIEW:
break;
case PROJECT_REVIEW:
case REQUIREMENT_REVIEW:
case EXPERT_REVIEW:
buildOptionProjectQuery(query, meetingType, ProjectStatus.WITHOUT_PROJECT_REVIEW);
break;
default:


+ 4
- 0
hz-pm-api/src/main/java/com/hz/pm/api/projectlib/manage/ProjectLibManage.java View File

@@ -440,6 +440,10 @@ public class ProjectLibManage {
if (!buildProjectLibPermission(req, user)) {
return PageVo.empty();
}
if (req.getDeclaredUnitId() != null) {
List<Long> viewUnitIds = mhUnitCache.getViewChildIdsRecursion(req.getDeclaredUnitId());
req.setDeclaredUnitIds(viewUnitIds);
}
Page<ProjectPO> page = projectService.pageLibWithPermission(req.page(), req);

if (CollUtil.isEmpty(page.getRecords())) {


+ 6
- 0
hz-pm-api/src/main/java/com/hz/pm/api/projectlib/mapper/ProjectMapper.xml View File

@@ -338,6 +338,12 @@
<if test="req.id != null">
and p.id = #{req.id}
</if>
<if test="req.declaredUnitIds != null and req.declaredUnitIds.size > 0">
and p.build_org_code in
<foreach collection="req.declaredUnitIds" close=")" open="(" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="req.projectName != null and req.projectName != ''">
and p.project_name like concat('%',#{req.projectName},'%')
</if>


+ 2
- 0
hz-pm-api/src/main/java/com/hz/pm/api/projectlib/model/req/ProjectListReq.java View File

@@ -122,4 +122,6 @@ public class ProjectListReq extends PagePo {

private Long declaredUnitId;

private List<Long> declaredUnitIds;

}

Loading…
Cancel
Save