From 03a0d4556fb01d409a5630b3c002e259fe32c407 Mon Sep 17 00:00:00 2001
From: jhjang <jhjang@maprex.co.kr>
Date: 화, 08 2월 2022 10:49:00 +0900
Subject: [PATCH] - api 이슈 추가시 종료 상태인 상위 이슈에도 추가가 되도록 수정 - 종료 처리된 상위이슈에 하위이슈로 추가 될 경우 상위 이슈를 자동으로 대기 상태로 변경하도록 수정

---
 src/main/resources/mybatis/query-template/notice-template.xml |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/src/main/resources/mybatis/query-template/notice-template.xml b/src/main/resources/mybatis/query-template/notice-template.xml
index 28024a8..9ddd9ae 100644
--- a/src/main/resources/mybatis/query-template/notice-template.xml
+++ b/src/main/resources/mybatis/query-template/notice-template.xml
@@ -9,13 +9,15 @@
         n.title as title,
         n.description as description,
         n.register_id as registerId,
+        u.name as writer,
         SUBSTRING (n.register_date, 1, 10) as registerDate
         FROM notice n
+        INNER JOIN user u on u.id = n.register_id
         WHERE 1=1
         <if test="title != '' and title != null">
             AND n.title like CONCAT('%',#{title},'%')
         </if>
-        ORDER BY ID DESC
+        ORDER BY n.register_date DESC
         <if test="page != null and !page.equals('')">
             limit #{pageSize} offset #{page};
         </if>

--
Gitblit v1.8.0