From add0cdefd56c50c5427945c895574f71202e7ed6 Mon Sep 17 00:00:00 2001 From: minhee <alsdldlfrl@gmail.com> Date: 수, 16 3월 2022 18:12:51 +0900 Subject: [PATCH] - api로 이슈 추가 시 사용자정의필드 타입으로 체크 => 정규식표현검사로 체크로 변경 --- src/main/resources/mybatis/query-template/project-template.xml | 21 ++++++++++++++++++--- 1 files changed, 18 insertions(+), 3 deletions(-) diff --git a/src/main/resources/mybatis/query-template/project-template.xml b/src/main/resources/mybatis/query-template/project-template.xml index cd7a94e..35136a4 100644 --- a/src/main/resources/mybatis/query-template/project-template.xml +++ b/src/main/resources/mybatis/query-template/project-template.xml @@ -53,7 +53,7 @@ </when> </choose> AND ws.id = #{workspaceId} - ORDER BY p.id desc + ORDER BY p.register_date desc <if test="page != null and !page.equals('')"> limit #{pageSize} offset #{page}; </if> @@ -120,7 +120,7 @@ </when> </choose> AND ws.id = #{workspaceId} - ORDER BY p.id desc + ORDER BY p.register_date desc <if test="page != null and !page.equals('')"> limit #{pageSize} offset #{page}; </if> @@ -264,7 +264,7 @@ </choose> AND p.workspace_id = #{workspaceId} <if test="page != null and !page.equals('')"> - ORDER BY p.id desc + ORDER BY p.register_date desc limit #{pageSize} offset #{page}; </if> </select> @@ -639,6 +639,21 @@ WHERE pc.parent_project_id = #{parent_project_id} </select> + <select id="findByIssueType" resultType="java.util.HashMap" parameterType="kr.wisestone.owl.web.condition.ProjectCondition"> + SELECT + p.id as id, + p.name as name, + p.description as description, + p.status as status, + p.start_date as startDate, + p.end_date as endDate, + p.project_key as projectKey + FROM + project p + INNER JOIN issue_type it ON it.project_id = p.id + WHERE it.id = #{issueTypeId} + </select> + <!-- �봽濡쒖젥�듃 �궘�젣 --> <!--<delete id="deleteProject" parameterType="java.util.HashMap"> <!– �봽濡쒖젥�듃�뿉 �뿰寃곕맂 �궗�슜�옄 �젙�쓽 �븘�뱶 �젙蹂� �궘�젣 –> -- Gitblit v1.8.0