From e47a2bc88cfd258b921014fd354385223da7ca3d Mon Sep 17 00:00:00 2001 From: wyu <kknd09321@nate.com> Date: 화, 28 12월 2021 21:04:18 +0900 Subject: [PATCH] 화면 상단에 언어 선택 칸 숨기기 --- src/main/resources/mybatis/query-template/issueType-template.xml | 17 +++++++++++++++++ 1 files changed, 17 insertions(+), 0 deletions(-) diff --git a/src/main/resources/mybatis/query-template/issueType-template.xml b/src/main/resources/mybatis/query-template/issueType-template.xml index 4aacf92..e2646b2 100644 --- a/src/main/resources/mybatis/query-template/issueType-template.xml +++ b/src/main/resources/mybatis/query-template/issueType-template.xml @@ -17,13 +17,30 @@ <if test="name != '' and name != null"> AND it.name like CONCAT('%',#{name},'%') </if> + <choose> + <when test="allProjectIds != null and allProjectIds.size != 0"> + AND it.project_id IN + <foreach collection="allProjectIds" item="item" index="index" separator="," open="(" close=")"> + #{item} + </foreach> + </when> + </choose> <if test="projectId != '' and projectId != null"> AND it.project_id like CONCAT('%',#{projectId},'%') </if> + <choose> + <when test="downProjectIds != null and downProjectIds.size != 0"> + OR it.project_id IN + <foreach collection="downProjectIds" item="item" index="index" separator="," open="(" close=")"> + #{item} + </foreach> + </when> + </choose> <if test="useProject != '' and useProject != null and useProject == true"> AND it.project_id IS NOT NULL </if> AND ws.id = #{workspaceId} + ORDER BY it.id DESC <if test="page != null and !page.equals('')"> limit #{pageSize} offset #{page}; </if> -- Gitblit v1.8.0