From 608e92c8180a06db472694bbaec3afbb5798c2a1 Mon Sep 17 00:00:00 2001 From: 이민희 <mhlee@maprex.co.kr> Date: 화, 07 12월 2021 19:31:00 +0900 Subject: [PATCH] Merge branch 'master' of http://192.168.0.25:9001/r/owl-kisa --- src/main/resources/mybatis/query-template/issue-template.xml | 12 ++++++++++-- 1 files changed, 10 insertions(+), 2 deletions(-) diff --git a/src/main/resources/mybatis/query-template/issue-template.xml b/src/main/resources/mybatis/query-template/issue-template.xml index bbf5ef7..980a1ed 100644 --- a/src/main/resources/mybatis/query-template/issue-template.xml +++ b/src/main/resources/mybatis/query-template/issue-template.xml @@ -959,12 +959,20 @@ <!-- �듅�젙 �궗�슜�옄 �젙�쓽 �븘�뱶 媛믪씠 媛숈� �씠�뒋瑜� 議고쉶 --> <select id="findByCustomFieldValue" resultType="java.util.HashMap" parameterType="kr.wisestone.owl.web.condition.IssueCustomFieldValueCondition"> SELECT - issue_custom.issue_id as id + issue_custom.issue_id as id, + iss.parent_issue_id as parentIssueId FROM issue_custom_field_value issue_custom INNER JOIN issue iss ON iss.id = issue_custom.issue_id WHERE 1=1 - AND iss.parent_issue_id IS NULL AND issue_custom.use_value = #{useValue} + <choose> + <when test="useParentIssueId.equals(true)"> + AND iss.parent_issue_id IS NULL + </when> + <otherwise> + AND iss.parent_issue_id IS NOT NULL + </otherwise> + </choose> </select> </mapper> -- Gitblit v1.8.0