From a3ccec7a8ad583c345c11979fe71729266ce46e8 Mon Sep 17 00:00:00 2001 From: jhjang <jhjang@maprex.co.kr> Date: 화, 07 12월 2021 16:33:57 +0900 Subject: [PATCH] - api 이슈 추가시 하위 일감인 이슈만 수정 가능 - api로 이슈 수정시 수정할 이슈를 찾을때 custom_field_type 이 DATETIME 인 항목은 판단에서 제외시키도록 수정 --- 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