From 6de7268f18bc311f83b34ae22af97f3d6e1b4757 Mon Sep 17 00:00:00 2001 From: Hyung Geun Date: Wed, 13 Apr 2022 11:31:57 +0900 Subject: [PATCH 1/2] =?UTF-8?q?=EA=B2=AC=EB=AC=B8=EC=9E=91=EC=84=B1,=20?= =?UTF-8?q?=EC=A0=80=EC=9E=A5=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../resources/sqlmapper/mappers/report/report.xml | 15 +++++++++++---- src/main/webapp/WEB-INF/jsp/report/myList.jsp | 1 - 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/src/main/resources/sqlmapper/mappers/report/report.xml b/src/main/resources/sqlmapper/mappers/report/report.xml index d32f2c4..5f1a757 100644 --- a/src/main/resources/sqlmapper/mappers/report/report.xml +++ b/src/main/resources/sqlmapper/mappers/report/report.xml @@ -120,10 +120,17 @@ (SELECT USE_YN FROM Rpt_Category WHERE TYPE = 4 AND CODE = T.IN_CATEGORY4) AS inUseCategory4, (IN_PLACE_NAME || '외사-' || IN_PLACE_NUM) AS docNo, - (CASE WHEN IN_REPORT = 0 AND IN_REPORT1 = 0 AND IN_REPORT2 = 0 THEN '-' - WHEN IN_REPORT2 > 0 THEN '상보(' || (SELECT CODENM FROM TCODE WHERE CODE1 = 'DC05' AND CODE2 = IN_JUDGE3) || ')' - ELSE '상보' END) AS fullReportStr, - T.* + (CASE WHEN IN_REPORT = 0 + AND IN_REPORT1 = 0 + AND IN_REPORT2 = 0 + THEN '-' + WHEN IN_REPORT2 > 0 + THEN '상보(' || + (SELECT CODENM + FROM TCODE + WHERE CODE1 = 'DC05' + AND cast(CODE2 as integer) = in_judge3)|| ')' + ELSE '상보' END) AS fullReportStr,T.* FROM RPT_INFO T WHERE diff --git a/src/main/webapp/WEB-INF/jsp/report/myList.jsp b/src/main/webapp/WEB-INF/jsp/report/myList.jsp index e19fb07..cacd405 100644 --- a/src/main/webapp/WEB-INF/jsp/report/myList.jsp +++ b/src/main/webapp/WEB-INF/jsp/report/myList.jsp @@ -161,7 +161,6 @@