From 420a2aa6a908d376a6f12ba82bd6840640b48e86 Mon Sep 17 00:00:00 2001 From: leebj Date: Tue, 11 Jun 2024 13:58:57 +0900 Subject: [PATCH] =?UTF-8?q?=EB=AF=B8=EC=82=AC=EC=9A=A9=20mybatis=20?= =?UTF-8?q?=EB=A7=A4=ED=8D=BC=20=ED=8C=8C=EC=9D=BC=20=EC=82=AD=EC=A0=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../resources/sql/mapper/base/program.xml | 135 ------------------ .../resources/sql/mapper/base/test-mapper.xml | 15 -- 2 files changed, 150 deletions(-) delete mode 100644 src/main/resources/sql/mapper/base/program.xml delete mode 100644 src/main/resources/sql/mapper/base/test-mapper.xml diff --git a/src/main/resources/sql/mapper/base/program.xml b/src/main/resources/sql/mapper/base/program.xml deleted file mode 100644 index dbcfd763..00000000 --- a/src/main/resources/sql/mapper/base/program.xml +++ /dev/null @@ -1,135 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - -SELECT A.* - FROM TB_PROGRAM A - -${by} LIKE CONCAT('%', #{term}, '%') -PGRM_FILE_NM IN (#{filename}) - - ORDER BY${by}PGRM_FILE_NM - - - - - - -/* 프로그램 등록(program.insertProgram) */ -INSERT INTO TB_PROGRAM ( - PGRM_FILE_NM - , PGRM_FILE_PATH - , PGRM_NM - , DSCRP - , URL -) VALUES ( - #{filename} - , #{location} - , #{name} - , #{description} - , #{url} -) - -/* 프로그램 수정(program.updateProgram) */ -UPDATE TB_PROGRAM SET - PGRM_FILE_PATH = #{location} - , PGRM_NM = #{name} - , DSCRP = #{description} - , URL = #{url} -WHERE PGRM_FILE_NM = #{filename} - -/* 프로그램 삭제(program.removePrograms) */ -DELETE FROM TB_PROGRAM - WHERE PGRM_FILE_NM IN (#{filename}) - -/* 프로그램 비우기(program.clearPrograms) */ -DELETE FROM TB_PROGRAM - WHERE PGRM_FILE_NM NOT IN (SELECT PGRM_FILE_NM FROM TB_MENU) - - -SELECT A.* - FROM TB_PGRM_CHNG_REQ A - -REQ_DT >= #{fromReqDate} -REQ_DT <= #{toReqDate} -${by} LIKE CONCAT('%', #{term}, '%') -PGRM_FILE_NAME IN (#{filename}) -REQ_ID IN (#{reqID}) - - ORDER BY PGRM_FILE_NM,${by}REQ_ID DESC - - - - - -/* 프로그램 변경요청 등록(program.insertRequest) */ -INSERT INTO TB_PGRM_CHNG_REQ ( - PGRM_FILE_NM - , REQ_ID - , SUBJECT - , REQ_USER - , REQ_DT - , REQ_CNTNT - , PRSC_USER - , PRCS_DT - , PRCS_CNTNT - , PRCS_STATUS -) VALUES ( - #{filename} - , #{id} - , #{subject} - , #{requestorID} - , #{requestDate} - , #{requestDetail} - , #{processorID} - , #{processDate} - , #{processDetail} - , #{status} -) - -/* 프로그램 변경요청 수정(program.updateRequest) */ -UPDATE TB_PGRM_CHNG_REQ SET - SUBJECT = #{subject} - , REQ_USER = #{requestorID} - , REQ_DT = #{requestDate} - , REQ_CNTNT = #{requestDetail} - , PRSC_USER = #{processorID} - , PRCS_DT = #{processDate} - , PRCS_CNTNT = #{processDetail} -WHERE PGRM_FILE_NM = #{filename} -AND REQ_ID = #{id} - -/* 프로그램 변경요청 상태 변경(program.setRequestStatus) */ -UPDATE TB_PGRM_CHNG_REQ SET - PRCS_STATUS = #{status} - WHERE PGRM_FILE_NM = #{filename} - AND REQ_ID = #{id} - - \ No newline at end of file diff --git a/src/main/resources/sql/mapper/base/test-mapper.xml b/src/main/resources/sql/mapper/base/test-mapper.xml deleted file mode 100644 index 8a897ec0..00000000 --- a/src/main/resources/sql/mapper/base/test-mapper.xml +++ /dev/null @@ -1,15 +0,0 @@ - - - - - - -${sql} - -${sql} - -${sql} - -COMMIT - - \ No newline at end of file