From b2b8a75a8f5a35717bb89a07c2fe35ea16b6a99c Mon Sep 17 00:00:00 2001 From: 이민희 <mhlee@maprex.co.kr> Date: 수, 19 1월 2022 09:55:16 +0900 Subject: [PATCH] 이슈 히스토리 - 중복되어서 나오는 문제 해결 및 업체에 추가된 항목들도 변경 시 이력 남기도록 수정 --- src/main/resources/mybatis/query-template/issueType-template.xml | 10 +++++++++- 1 files changed, 9 insertions(+), 1 deletions(-) diff --git a/src/main/resources/mybatis/query-template/issueType-template.xml b/src/main/resources/mybatis/query-template/issueType-template.xml index fdb9247..38bf993 100644 --- a/src/main/resources/mybatis/query-template/issueType-template.xml +++ b/src/main/resources/mybatis/query-template/issueType-template.xml @@ -17,6 +17,14 @@ <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> @@ -32,7 +40,7 @@ AND it.project_id IS NOT NULL </if> AND ws.id = #{workspaceId} - ORDER BY it.id DESC + ORDER BY it.register_date DESC <if test="page != null and !page.equals('')"> limit #{pageSize} offset #{page}; </if> -- Gitblit v1.8.0