From 1c0c755d167d23860a2a715a56c7b8b87c0312c9 Mon Sep 17 00:00:00 2001
From: wyu <kknd09321@nate.com>
Date: 수, 05 1월 2022 11:08:28 +0900
Subject: [PATCH] 이슈 상세 페이지에 "일반 메일 보내기 기능 추가" 이메일 템플릿 명칭 변경 -> 업체 이메일 이메일 템플릿 제목 추가

---
 src/main/resources/mybatis/query-template/HostingField-template.xml |   16 ++++++++++++++++
 1 files changed, 16 insertions(+), 0 deletions(-)

diff --git a/src/main/resources/mybatis/query-template/HostingField-template.xml b/src/main/resources/mybatis/query-template/HostingField-template.xml
index 34f29db..a99515b 100644
--- a/src/main/resources/mybatis/query-template/HostingField-template.xml
+++ b/src/main/resources/mybatis/query-template/HostingField-template.xml
@@ -22,6 +22,7 @@
         <if test="id != '' and id != null">
             AND h.id like CONCAT('%',#{id},'%')
         </if>
+        ORDER BY h.id DESC
         <if test="pageSize != '' and pageSize != null">
             limit #{pageSize} offset #{page};
         </if>
@@ -40,4 +41,19 @@
             AND h.id like CONCAT('%',#{id},'%')
         </if>
     </select>
+
+    <select id="findById" resultType="java.util.HashMap" parameterType="java.lang.Long">
+        SELECT
+            h.id as id,
+            h.code as code,
+            h.name as name,
+            h.manager as manager,
+            h.tel as tel,
+            h.email as email,
+            h.url as url,
+            h.memo as memo
+        FROM
+            hosting_field h
+        WHERE h.id = ${id}
+    </select>
 </mapper>
\ No newline at end of file

--
Gitblit v1.8.0