보고서 양식 정렬처리 보강

This commit is contained in:
nhj 2025-09-25 11:37:11 +09:00
parent 1daae7111d
commit 3d9bb31413
4 changed files with 35 additions and 2 deletions

View File

@ -10,6 +10,7 @@
</if> </if>
</sql> </sql>
<!-- 2025.09.22 나혁제 IN_SORT_SN 정렬순서추가 -->
<resultMap type="java.util.LinkedHashMap" id="formVo"> <resultMap type="java.util.LinkedHashMap" id="formVo">
<result column="IN_REPORT_FORM" property="inReportForm"/> <result column="IN_REPORT_FORM" property="inReportForm"/>
<result column="VC_FORM_NAME" property="vcFormName"/> <result column="VC_FORM_NAME" property="vcFormName"/>
@ -19,9 +20,12 @@
<result column="TX_REPORT_FORM" property="txReportForm"/> <result column="TX_REPORT_FORM" property="txReportForm"/>
<result column="IN_TASK_USER" property="inTaskUser"/> <result column="IN_TASK_USER" property="inTaskUser"/>
<result column="VC_TASK_USER" property="vcTaskUser"/> <result column="VC_TASK_USER" property="vcTaskUser"/>
<result column="IN_SORT_SN" property="inSortSn"/>
</resultMap> </resultMap>
<!-- 2025.09.22 나혁제 IN_SORT_SN 정렬순서추가 -->
<select id="getReportForms" parameterType="java.util.LinkedHashMap" resultMap="formVo"> <select id="getReportForms" parameterType="java.util.LinkedHashMap" resultMap="formVo">
/* ReportDao.getReportForms */
SELECT A.IN_REPORT_FORM SELECT A.IN_REPORT_FORM
, A.VC_FORM_DESC , A.VC_FORM_DESC
, A.VC_FORM_NAME , A.VC_FORM_NAME
@ -29,6 +33,7 @@
, B.CD_NM AS IN_TASK_NM , B.CD_NM AS IN_TASK_NM
, A.IN_TASK_USER , A.IN_TASK_USER
, A.VC_TASK_USER , A.VC_TASK_USER
, IFNULL(A.IN_SORT_SN, 9999) AS IN_SORT_SN
FROM CM_REPORT_FORM A FROM CM_REPORT_FORM A
, TB_CMM_DTL_CD_INFO B , TB_CMM_DTL_CD_INFO B
WHERE 1=1 WHERE 1=1
@ -36,10 +41,13 @@
AND A.VC_FORM_NAME LIKE CONCAT('%' , #{searchKeyword}, '%') AND A.VC_FORM_NAME LIKE CONCAT('%' , #{searchKeyword}, '%')
AND B.CD_ID ='SM_002' AND B.CD_ID ='SM_002'
AND A.IN_TASK = B.CD AND A.IN_TASK = B.CD
<include refid="paging"/> ORDER BY IN_SORT_SN, VC_FORM_NAME
<include refid="paging"/>
</select> </select>
<select id="getReportFormsCnt" parameterType="java.util.LinkedHashMap" resultType="int"> <select id="getReportFormsCnt" parameterType="java.util.LinkedHashMap" resultType="int">
/* ReportDao.getReportFormsCnt */
SELECT COUNT(1) AS CNT SELECT COUNT(1) AS CNT
FROM CM_REPORT_FORM A FROM CM_REPORT_FORM A
, TB_CMM_DTL_CD_INFO B , TB_CMM_DTL_CD_INFO B
@ -51,7 +59,9 @@
</select> </select>
<!-- 2025.09.22 나혁제 IN_SORT_SN 정렬순서추가 -->
<select id="getReportFormDetail" parameterType="int" resultMap="formVo"> <select id="getReportFormDetail" parameterType="int" resultMap="formVo">
/* ReportDao.getReportFormDetail */
SELECT IN_REPORT_FORM SELECT IN_REPORT_FORM
, VC_FORM_NAME , VC_FORM_NAME
, VC_FORM_DESC , VC_FORM_DESC
@ -60,6 +70,7 @@
, A.IN_TASK_USER , A.IN_TASK_USER
, A.VC_TASK_USER , A.VC_TASK_USER
, A.TX_REPORT_FORM , A.TX_REPORT_FORM
, A.IN_SORT_SN
FROM CM_REPORT_FORM A FROM CM_REPORT_FORM A
, TB_CMM_DTL_CD_INFO B , TB_CMM_DTL_CD_INFO B
WHERE 1=1 WHERE 1=1
@ -68,8 +79,9 @@
AND A.IN_TASK = B.CD AND A.IN_TASK = B.CD
</select> </select>
<!-- 2025.09.22 나혁제 IN_SORT_SN 정렬순서추가 -->
<insert id="addReportForm" parameterType="java.util.LinkedHashMap"> <insert id="addReportForm" parameterType="java.util.LinkedHashMap">
/* ReportDao.addReportForm */
INSERT INTO CM_REPORT_FORM INSERT INTO CM_REPORT_FORM
( (
IN_TASK IN_TASK
@ -78,6 +90,7 @@
, TX_REPORT_FORM , TX_REPORT_FORM
, IN_TASK_USER , IN_TASK_USER
, VC_TASK_USER , VC_TASK_USER
, IN_SORT_SN
) )
VALUES VALUES
( (
@ -87,20 +100,25 @@
, "${txReportForm}" , "${txReportForm}"
, #{inTaskUser} , #{inTaskUser}
, #{vcTaskUser} , #{vcTaskUser}
, NULLIF(#{inSortSn}, '')
) )
</insert> </insert>
<update id="updateReportForm" parameterType="java.util.LinkedHashMap"> <update id="updateReportForm" parameterType="java.util.LinkedHashMap">
/* ReportDao.updateReportForm */
UPDATE CM_REPORT_FORM UPDATE CM_REPORT_FORM
SET VC_FORM_NAME = "${vcFormName}" SET VC_FORM_NAME = "${vcFormName}"
, VC_FORM_DESC = "${vcFormDesc}" , VC_FORM_DESC = "${vcFormDesc}"
, TX_REPORT_FORM = "${txReportForm}" , TX_REPORT_FORM = "${txReportForm}"
, IN_TASK_USER = #{inTaskUser} , IN_TASK_USER = #{inTaskUser}
, VC_TASK_USER = #{vcTaskUser} , VC_TASK_USER = #{vcTaskUser}
, VC_TASK_USER = #{vcTaskUser}
, IN_SORT_SN = NULLIF(#{inSortSn}, '')
WHERE IN_REPORT_FORM = #{inReportForm} WHERE IN_REPORT_FORM = #{inReportForm}
</update> </update>
<delete id="deleteReportForm" parameterType="java.util.LinkedHashMap"> <delete id="deleteReportForm" parameterType="java.util.LinkedHashMap">
/* ReportDao.deleteReportForm */
DELETE FROM CM_REPORT_FORM DELETE FROM CM_REPORT_FORM
WHERE IN_REPORT_FORM=#{inReportForm} WHERE IN_REPORT_FORM=#{inReportForm}
</delete> </delete>

View File

@ -37,10 +37,12 @@
<result property="atchFileId" column="ATCH_FILE_ID"/> <result property="atchFileId" column="ATCH_FILE_ID"/>
</resultMap> </resultMap>
<!-- 2025.09.22 나혁제 IN_SORT_SN 정렬순서추가 -->
<resultMap type="java.util.LinkedHashMap" id="formVo"> <resultMap type="java.util.LinkedHashMap" id="formVo">
<result column="IN_REPORT_FORM" property="inReportForm"/> <result column="IN_REPORT_FORM" property="inReportForm"/>
<result column="VC_FORM_NAME" property="vcFormName"/> <result column="VC_FORM_NAME" property="vcFormName"/>
<result column="VC_FORM_DESC" property="vcFormDesc"/> <result column="VC_FORM_DESC" property="vcFormDesc"/>
<result column="IN_SORT_SN" property="inSortSn"/>
</resultMap> </resultMap>
<resultMap type="java.util.LinkedHashMap" id="selectVo"> <resultMap type="java.util.LinkedHashMap" id="selectVo">
@ -256,14 +258,17 @@
<include refid="searchFilter"/> <include refid="searchFilter"/>
</select> </select>
<!-- 2025.09.22 나혁제 IN_SORT_SN 정렬순서추가 -->
<select id="getReportForms" parameterType="java.util.HashMap" resultMap="formVo"> <select id="getReportForms" parameterType="java.util.HashMap" resultMap="formVo">
/* ReportCheckDao.getReportForms */ /* ReportCheckDao.getReportForms */
SELECT IN_REPORT_FORM SELECT IN_REPORT_FORM
, VC_FORM_DESC , VC_FORM_DESC
, VC_FORM_NAME , VC_FORM_NAME
, IN_TASK , IN_TASK
, IFNULL(IN_SORT_SN, 9999) AS IN_SORT_SN
FROM CM_REPORT_FORM FROM CM_REPORT_FORM
WHERE IN_TASK=${value} WHERE IN_TASK=${value}
ORDER BY IN_SORT_SN, VC_FORM_NAME
</select> </select>
<select id="getServiceCombo" parameterType="int" resultMap="selectVo"> <select id="getServiceCombo" parameterType="int" resultMap="selectVo">

View File

@ -37,10 +37,12 @@
<result property="atchFileId" column="ATCH_FILE_ID"/> <result property="atchFileId" column="ATCH_FILE_ID"/>
</resultMap> </resultMap>
<!-- 2025.09.22 나혁제 IN_SORT_SN 정렬순서추가 -->
<resultMap type="java.util.LinkedHashMap" id="formVo"> <resultMap type="java.util.LinkedHashMap" id="formVo">
<result column="IN_REPORT_FORM" property="inReportForm"/> <result column="IN_REPORT_FORM" property="inReportForm"/>
<result column="VC_FORM_NAME" property="vcFormName"/> <result column="VC_FORM_NAME" property="vcFormName"/>
<result column="VC_FORM_DESC" property="vcFormDesc"/> <result column="VC_FORM_DESC" property="vcFormDesc"/>
<result column="IN_SORT_SN" property="inSortSn"/>
</resultMap> </resultMap>
<resultMap type="java.util.LinkedHashMap" id="selectVo"> <resultMap type="java.util.LinkedHashMap" id="selectVo">
@ -228,14 +230,17 @@
<include refid="searchFilter"/> <include refid="searchFilter"/>
</select> </select>
<!-- 2025.09.22 나혁제 IN_SORT_SN 정렬순서추가 -->
<select id="getReportForms" parameterType="java.util.HashMap" resultMap="formVo"> <select id="getReportForms" parameterType="java.util.HashMap" resultMap="formVo">
/* ReportErrorDao.getReportForms */ /* ReportErrorDao.getReportForms */
SELECT IN_REPORT_FORM SELECT IN_REPORT_FORM
, VC_FORM_DESC , VC_FORM_DESC
, VC_FORM_NAME , VC_FORM_NAME
, IN_TASK , IN_TASK
, IFNULL(IN_SORT_SN, 9999) AS IN_SORT_SN
FROM CM_REPORT_FORM FROM CM_REPORT_FORM
WHERE IN_TASK=${value} WHERE IN_TASK=${value}
ORDER BY IN_SORT_SN, VC_FORM_NAME
</select> </select>
<select id="getServiceCombo" parameterType="int" resultMap="selectVo"> <select id="getServiceCombo" parameterType="int" resultMap="selectVo">

View File

@ -37,10 +37,12 @@
<result property="atchFileId" column="ATCH_FILE_ID"/> <result property="atchFileId" column="ATCH_FILE_ID"/>
</resultMap> </resultMap>
<!-- 2025.09.22 나혁제 IN_SORT_SN 정렬순서추가 -->
<resultMap type="java.util.LinkedHashMap" id="formVo"> <resultMap type="java.util.LinkedHashMap" id="formVo">
<result column="IN_REPORT_FORM" property="inReportForm"/> <result column="IN_REPORT_FORM" property="inReportForm"/>
<result column="VC_FORM_NAME" property="vcFormName"/> <result column="VC_FORM_NAME" property="vcFormName"/>
<result column="VC_FORM_DESC" property="vcFormDesc"/> <result column="VC_FORM_DESC" property="vcFormDesc"/>
<result column="IN_SORT_SN" property="inSortSn"/>
</resultMap> </resultMap>
<resultMap type="java.util.LinkedHashMap" id="selectVo"> <resultMap type="java.util.LinkedHashMap" id="selectVo">
@ -228,14 +230,17 @@
<include refid="searchFilter"/> <include refid="searchFilter"/>
</select> </select>
<!-- 2025.09.22 나혁제 IN_SORT_SN 정렬순서추가 -->
<select id="getReportForms" parameterType="java.util.HashMap" resultMap="formVo"> <select id="getReportForms" parameterType="java.util.HashMap" resultMap="formVo">
/* ReportIssueDao.getReportForms */ /* ReportIssueDao.getReportForms */
SELECT IN_REPORT_FORM SELECT IN_REPORT_FORM
, VC_FORM_DESC , VC_FORM_DESC
, VC_FORM_NAME , VC_FORM_NAME
, IN_TASK , IN_TASK
, IFNULL(IN_SORT_SN, 9999) AS IN_SORT_SN
FROM CM_REPORT_FORM FROM CM_REPORT_FORM
WHERE IN_TASK=${value} WHERE IN_TASK=${value}
ORDER BY IN_SORT_SN, VC_FORM_NAME
</select> </select>
<select id="getServiceCombo" parameterType="int" resultMap="selectVo"> <select id="getServiceCombo" parameterType="int" resultMap="selectVo">