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