@@ -32,7 +32,7 @@ public enum MeetingReviewTypeEnum { | |||||
PROJECT_REVIEW("项目评审", "6"), | PROJECT_REVIEW("项目评审", "6"), | ||||
REQUIREMENT_REVIEW("需求论证", "7"); | |||||
EXPERT_REVIEW("专家论证", "7"); | |||||
private final String value; | private final String value; | ||||
private final String code; | private final String code; | ||||
@@ -942,7 +942,7 @@ public class MeetingManage { | |||||
case FAIRNESS_REVIEW: | case FAIRNESS_REVIEW: | ||||
break; | break; | ||||
case PROJECT_REVIEW: | case PROJECT_REVIEW: | ||||
case REQUIREMENT_REVIEW: | |||||
case EXPERT_REVIEW: | |||||
buildOptionProjectQuery(query, meetingType, ProjectStatus.WITHOUT_PROJECT_REVIEW); | buildOptionProjectQuery(query, meetingType, ProjectStatus.WITHOUT_PROJECT_REVIEW); | ||||
break; | break; | ||||
default: | default: | ||||
@@ -440,6 +440,10 @@ public class ProjectLibManage { | |||||
if (!buildProjectLibPermission(req, user)) { | if (!buildProjectLibPermission(req, user)) { | ||||
return PageVo.empty(); | 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); | Page<ProjectPO> page = projectService.pageLibWithPermission(req.page(), req); | ||||
if (CollUtil.isEmpty(page.getRecords())) { | if (CollUtil.isEmpty(page.getRecords())) { | ||||
@@ -338,6 +338,12 @@ | |||||
<if test="req.id != null"> | <if test="req.id != null"> | ||||
and p.id = #{req.id} | and p.id = #{req.id} | ||||
</if> | </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 != ''"> | <if test="req.projectName != null and req.projectName != ''"> | ||||
and p.project_name like concat('%',#{req.projectName},'%') | and p.project_name like concat('%',#{req.projectName},'%') | ||||
</if> | </if> | ||||
@@ -122,4 +122,6 @@ public class ProjectListReq extends PagePo { | |||||
private Long declaredUnitId; | private Long declaredUnitId; | ||||
private List<Long> declaredUnitIds; | |||||
} | } |