feat: code feat
parent
1c772596bb
commit
668c7c8023
@ -1,49 +1,17 @@
|
||||
package kr.xit.framework.biz.mng.code.mapper;
|
||||
|
||||
import java.sql.SQLException;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
import org.apache.ibatis.session.RowBounds;
|
||||
|
||||
import egovframework.rte.psl.dataaccess.mapper.Mapper;
|
||||
import kr.xit.framework.biz.mng.code.model.XitClCodeMngSearchVO;
|
||||
import kr.xit.framework.biz.mng.code.model.XitClCodeMngVO;
|
||||
|
||||
/**
|
||||
*
|
||||
* @업무그룹명: 분류코드관리 Mapper
|
||||
* @설명:
|
||||
* @최초작성일: 2020. 4. 16. 오전 9:38:07
|
||||
* @최초작성자: 박민규
|
||||
* @author (주)엑스아이티 개발팀
|
||||
* @since 2002. 2. 2.
|
||||
* @version 1.0 Copyright(c) XIT All rights reserved.
|
||||
*/
|
||||
|
||||
@SuppressWarnings("MybatisXMapperMethodInspection")
|
||||
@Mapper
|
||||
public interface ICodeClassificationMgtMapper {
|
||||
|
||||
/**
|
||||
* <pre>메소드 설명: 분류코드관리 목록 조회</pre>
|
||||
* @param searchVO
|
||||
* @return List<XitClCodeMngVO> 요청처리 후 응답객체
|
||||
* @author: 박민규
|
||||
* @date: 2020. 4. 16.
|
||||
*/
|
||||
public List<XitClCodeMngVO> findList(XitClCodeMngSearchVO searchVO) throws SQLException;
|
||||
|
||||
/**
|
||||
* <pre>메소드 설명: 분류코드관리 목록 총건수 조회</pre>
|
||||
* @param searchVO
|
||||
* @return int 요청처리 후 응답객체
|
||||
* @author: 박민규
|
||||
* @date: 2020. 4. 16.
|
||||
*/
|
||||
public int findListTotCnt(XitClCodeMngSearchVO searchVO) throws SQLException;
|
||||
|
||||
/**
|
||||
* <pre>메소드 설명: 분류코드관리 상세정보 조회</pre>
|
||||
* @param vo
|
||||
* @return XitClCodeMngVO 요청처리 후 응답객체
|
||||
* @author: 박민규
|
||||
* @date: 2020. 4. 16.
|
||||
*/
|
||||
public XitClCodeMngVO findView(XitClCodeMngVO vo) throws SQLException;
|
||||
List<XitClCodeMngVO> selectCmmnClCodes(Map<String, Object> paraMap, RowBounds rowBounds);
|
||||
}
|
||||
|
@ -1,77 +1,130 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="kr.xit.framework.biz.mng.code.mapper.IXitClCodeMngMapper">
|
||||
<!-- SQL 페이징 코드 -->
|
||||
<sql id="pageBefore">
|
||||
SELECT LIST.* FROM(
|
||||
</sql>
|
||||
|
||||
<sql id="pageAfter">
|
||||
) LIST LIMIT #{firstIndex}, #{recordCountPerPage}
|
||||
</sql>
|
||||
|
||||
|
||||
<sql id="findList_SELECT">
|
||||
SELECT A.CL_CODE AS "clCode"
|
||||
, A.CL_CODE_NM AS "clCodeNm"
|
||||
, A.CL_CODE_DC AS "clCodeDc"
|
||||
, A.USE_AT AS "useAt"
|
||||
</sql>
|
||||
<sql id="findList_FROM">
|
||||
FROM XIT_CMMN_CL_CODE A
|
||||
</sql>
|
||||
<sql id="findList_WHERE">
|
||||
<if test="'1'.toString() == searchCondition">
|
||||
AND A.CL_CODE = #{searchKeyword}
|
||||
</if>
|
||||
<if test="'2'.toString() == searchCondition">
|
||||
AND A.CL_CODE_NM LIKE CONCAT('%',#{searchKeyword},'%')
|
||||
</if>
|
||||
<if test="'CodeList' == searchCondition">
|
||||
AND A.USE_AT = 'Y'
|
||||
</if>
|
||||
</sql>
|
||||
|
||||
|
||||
|
||||
<select id="findList" resultType="kr.xit.framework.biz.mng.code.model.XitClCodeMngVO">
|
||||
/** XitClCodeMngMapper.findList */
|
||||
/** 분류코드관리 목록 조회 */
|
||||
<if test="searchGubun == 'list'">
|
||||
<include refid="pageBefore" />
|
||||
</if>
|
||||
|
||||
<include refid="findList_SELECT"/>
|
||||
<include refid="findList_FROM"/>
|
||||
WHERE 1=1
|
||||
<include refid="findList_WHERE"/>
|
||||
|
||||
<if test="searchGubun == 'list'">
|
||||
<include refid="pageAfter" />
|
||||
</if>
|
||||
|
||||
<mapper namespace="kr.xit.framework.biz.mng.code.mapper.ICodeClassificationMgtMapper">
|
||||
|
||||
<!-- *************************************************************************************************************
|
||||
* xit_author_info : 권한 정보
|
||||
************************************************************************************************************** -->
|
||||
<select id="selectCmmnClCodes">
|
||||
/* code-classification-mysql-mapper|selectCmmnClCodes-분류코드 목록 조회|julim */
|
||||
</select>
|
||||
|
||||
|
||||
|
||||
<select id="findListTotCnt" resultType="int">
|
||||
/** XitClCodeMngMapper.findListTotCnt */
|
||||
/** 분류코드관리 목록 총건수 조회 */
|
||||
SELECT COUNT(1) AS "CNT"
|
||||
<include refid="findList_FROM"/>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<select id="findXitCmmnClCodes" resultType="kr.xit.framework.biz.cmm.model.XitCmmnClCodeVO">
|
||||
/** findXitCmmnClCodes */
|
||||
/** 공통분류코드 다건 조회 */
|
||||
SELECT CL_CODE
|
||||
,CL_CODE_NM
|
||||
,CL_CODE_DC
|
||||
,USE_AT
|
||||
,FRST_REGIST_PNTTM
|
||||
,FRST_REGISTER_ID
|
||||
,LAST_UPDT_PNTTM
|
||||
,LAST_UPDUSR_ID
|
||||
FROM XIT_CMMN_CL_CODE
|
||||
WHERE 1=1
|
||||
<include refid="findList_WHERE"/>
|
||||
<if test="@kr.xit.framework.core.utils.XitCmmnUtil@notEmpty(cl_code )">AND CL_CODE = #{cl_code }</if>
|
||||
<if test="@kr.xit.framework.core.utils.XitCmmnUtil@notEmpty(cl_code_nm )">AND CL_CODE_NM = #{cl_code_nm }</if>
|
||||
<if test="@kr.xit.framework.core.utils.XitCmmnUtil@notEmpty(cl_code_dc )">AND CL_CODE_DC = #{cl_code_dc }</if>
|
||||
<if test="@kr.xit.framework.core.utils.XitCmmnUtil@notEmpty(use_at )">AND USE_AT = #{use_at }</if>
|
||||
<if test="@kr.xit.framework.core.utils.XitCmmnUtil@notEmpty(frst_regist_pnttm)">AND FRST_REGIST_PNTTM = #{frst_regist_pnttm}</if>
|
||||
<if test="@kr.xit.framework.core.utils.XitCmmnUtil@notEmpty(frst_register_id )">AND FRST_REGISTER_ID = #{frst_register_id }</if>
|
||||
<if test="@kr.xit.framework.core.utils.XitCmmnUtil@notEmpty(last_updt_pnttm )">AND LAST_UPDT_PNTTM = #{last_updt_pnttm }</if>
|
||||
<if test="@kr.xit.framework.core.utils.XitCmmnUtil@notEmpty(last_updusr_id )">AND LAST_UPDUSR_ID = #{last_updusr_id }</if>
|
||||
</select>
|
||||
|
||||
|
||||
|
||||
<select id="findView" resultType="kr.xit.framework.biz.mng.code.model.XitClCodeMngVO">
|
||||
/** XitClCodeMngMapper.findView */
|
||||
/** 분류코드관리 상세정보 조회 */
|
||||
<include refid="findList_SELECT"/>
|
||||
<include refid="findList_FROM"/>
|
||||
WHERE A.CL_CODE = #{clCode}
|
||||
<select id="findXitCmmnClCode" resultType="kr.xit.framework.biz.cmm.model.XitCmmnClCodeVO">
|
||||
/** findXitCmmnClCode */
|
||||
/** 공통분류코드 조회 */
|
||||
SELECT CL_CODE
|
||||
,CL_CODE_NM
|
||||
,CL_CODE_DC
|
||||
,USE_AT
|
||||
,FRST_REGIST_PNTTM
|
||||
,FRST_REGISTER_ID
|
||||
,LAST_UPDT_PNTTM
|
||||
,LAST_UPDUSR_ID
|
||||
FROM XIT_CMMN_CL_CODE
|
||||
WHERE 1=1
|
||||
AND CL_CODE = #{cl_code}
|
||||
</select>
|
||||
|
||||
|
||||
|
||||
<insert id="addXitCmmnClCode">
|
||||
/** addXitCmmnClCode */
|
||||
/** 공통분류코드 등록 */
|
||||
INSERT INTO XIT_CMMN_CL_CODE(
|
||||
CL_CODE
|
||||
<if test="@kr.xit.framework.core.utils.XitCmmnUtil@notEmpty(cl_code_nm )">,CL_CODE_NM </if>
|
||||
<if test="@kr.xit.framework.core.utils.XitCmmnUtil@notEmpty(cl_code_dc )">,CL_CODE_DC </if>
|
||||
<if test="@kr.xit.framework.core.utils.XitCmmnUtil@notEmpty(use_at )">,USE_AT </if>
|
||||
,FRST_REGIST_PNTTM
|
||||
<if test="@kr.xit.framework.core.utils.XitCmmnUtil@notEmpty(frst_register_id )">,FRST_REGISTER_ID </if>
|
||||
<if test="@kr.xit.framework.core.utils.XitCmmnUtil@notEmpty(last_updt_pnttm )">,LAST_UPDT_PNTTM </if>
|
||||
<if test="@kr.xit.framework.core.utils.XitCmmnUtil@notEmpty(last_updusr_id )">,LAST_UPDUSR_ID </if>
|
||||
)VALUES(
|
||||
#{cl_code }
|
||||
<if test="@kr.xit.framework.core.utils.XitCmmnUtil@notEmpty(cl_code_nm )">,#{cl_code_nm }</if>
|
||||
<if test="@kr.xit.framework.core.utils.XitCmmnUtil@notEmpty(cl_code_dc )">,#{cl_code_dc }</if>
|
||||
<if test="@kr.xit.framework.core.utils.XitCmmnUtil@notEmpty(use_at )">,#{use_at }</if>
|
||||
,NOW()
|
||||
<if test="@kr.xit.framework.core.utils.XitCmmnUtil@notEmpty(frst_register_id )">,#{frst_register_id }</if>
|
||||
<if test="@kr.xit.framework.core.utils.XitCmmnUtil@notEmpty(last_updt_pnttm )">,#{last_updt_pnttm }</if>
|
||||
<if test="@kr.xit.framework.core.utils.XitCmmnUtil@notEmpty(last_updusr_id )">,#{last_updusr_id }</if>
|
||||
)
|
||||
</insert>
|
||||
<update id="modifyXitCmmnClCode">
|
||||
/** modifyXitCmmnClCode */
|
||||
/** 공통분류코드 수정 */
|
||||
UPDATE XIT_CMMN_CL_CODE
|
||||
SET
|
||||
LAST_UPDT_PNTTM = NOW()
|
||||
<if test="@kr.xit.framework.core.utils.XitCmmnUtil@notBlank(cl_code_nm )">,CL_CODE_NM = #{cl_code_nm }</if>
|
||||
<if test="@kr.xit.framework.core.utils.XitCmmnUtil@notBlank(cl_code_dc )">,CL_CODE_DC = #{cl_code_dc }</if>
|
||||
<if test="@kr.xit.framework.core.utils.XitCmmnUtil@notBlank(use_at )">,USE_AT = #{use_at }</if>
|
||||
<if test="@kr.xit.framework.core.utils.XitCmmnUtil@notBlank(frst_regist_pnttm)">,FRST_REGIST_PNTTM = #{frst_regist_pnttm}</if>
|
||||
<if test="@kr.xit.framework.core.utils.XitCmmnUtil@notBlank(frst_register_id )">,FRST_REGISTER_ID = #{frst_register_id }</if>
|
||||
<if test="@kr.xit.framework.core.utils.XitCmmnUtil@notBlank(last_updusr_id )">,LAST_UPDUSR_ID = #{last_updusr_id }</if>
|
||||
WHERE 1=1
|
||||
AND CL_CODE = #{cl_code}
|
||||
</update>
|
||||
<delete id="removeXitCmmnClCode">
|
||||
/** removeXitCmmnClCode */
|
||||
/** 공통분류코드 삭제 */
|
||||
DELETE FROM XIT_CMMN_CL_CODE
|
||||
WHERE 1=1
|
||||
AND CL_CODE = #{cl_code}
|
||||
</delete>
|
||||
|
||||
</mapper>
|
||||
|
@ -0,0 +1,136 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
|
||||
<mapper namespace="kr.xit.framework.biz.mng.code.mapper.">
|
||||
|
||||
<!-- *************************************************************************************************************
|
||||
* xit_author_info : 권한 정보
|
||||
************************************************************************************************************** -->
|
||||
<select id="selectCmmnClCodes">
|
||||
/* code-classification-mysql-mapper|selectCmmnClCodes-분류코드 목록 조회|julim */
|
||||
</select>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<select id="findXitCmmnCodes" resultType="kr.xit.framework.biz.cmm.model.XitCmmnCodeVO">
|
||||
/** findXitCmmnCodes */
|
||||
/** 공통코드 다건 조회 */
|
||||
SELECT CODE_ID
|
||||
,CODE_ID_NM
|
||||
,CODE_ID_DC
|
||||
,USE_AT
|
||||
,CL_CODE
|
||||
,FRST_REGIST_PNTTM
|
||||
,FRST_REGISTER_ID
|
||||
,LAST_UPDT_PNTTM
|
||||
,LAST_UPDUSR_ID
|
||||
FROM XIT_CMMN_CODE
|
||||
WHERE 1=1
|
||||
<if test="@kr.xit.framework.core.utils.XitCmmnUtil@notEmpty(code_id )">AND CODE_ID = #{code_id }</if>
|
||||
<if test="@kr.xit.framework.core.utils.XitCmmnUtil@notEmpty(code_id_nm )">AND CODE_ID_NM = #{code_id_nm }</if>
|
||||
<if test="@kr.xit.framework.core.utils.XitCmmnUtil@notEmpty(code_id_dc )">AND CODE_ID_DC = #{code_id_dc }</if>
|
||||
<if test="@kr.xit.framework.core.utils.XitCmmnUtil@notEmpty(use_at )">AND USE_AT = #{use_at }</if>
|
||||
<if test="@kr.xit.framework.core.utils.XitCmmnUtil@notEmpty(cl_code )">AND CL_CODE = #{cl_code }</if>
|
||||
<if test="@kr.xit.framework.core.utils.XitCmmnUtil@notEmpty(frst_regist_pnttm)">AND FRST_REGIST_PNTTM = #{frst_regist_pnttm}</if>
|
||||
<if test="@kr.xit.framework.core.utils.XitCmmnUtil@notEmpty(frst_register_id )">AND FRST_REGISTER_ID = #{frst_register_id }</if>
|
||||
<if test="@kr.xit.framework.core.utils.XitCmmnUtil@notEmpty(last_updt_pnttm )">AND LAST_UPDT_PNTTM = #{last_updt_pnttm }</if>
|
||||
<if test="@kr.xit.framework.core.utils.XitCmmnUtil@notEmpty(last_updusr_id )">AND LAST_UPDUSR_ID = #{last_updusr_id }</if>
|
||||
</select>
|
||||
<select id="findXitCmmnCode" resultType="kr.xit.framework.biz.cmm.model.XitCmmnCodeVO">
|
||||
/** findXitCmmnCode */
|
||||
/** 공통코드 조회 */
|
||||
SELECT CODE_ID
|
||||
,CODE_ID_NM
|
||||
,CODE_ID_DC
|
||||
,USE_AT
|
||||
,CL_CODE
|
||||
,FRST_REGIST_PNTTM
|
||||
,FRST_REGISTER_ID
|
||||
,LAST_UPDT_PNTTM
|
||||
,LAST_UPDUSR_ID
|
||||
FROM XIT_CMMN_CODE
|
||||
WHERE 1=1
|
||||
AND CODE_ID = #{code_id}
|
||||
</select>
|
||||
<insert id="addXitCmmnCode">
|
||||
/** addXitCmmnCode */
|
||||
/** 공통코드 등록 */
|
||||
INSERT INTO XIT_CMMN_CODE(
|
||||
CODE_ID
|
||||
<if test="@kr.xit.framework.core.utils.XitCmmnUtil@notEmpty(code_id_nm )">,CODE_ID_NM </if>
|
||||
<if test="@kr.xit.framework.core.utils.XitCmmnUtil@notEmpty(code_id_dc )">,CODE_ID_DC </if>
|
||||
<if test="@kr.xit.framework.core.utils.XitCmmnUtil@notEmpty(use_at )">,USE_AT </if>
|
||||
<if test="@kr.xit.framework.core.utils.XitCmmnUtil@notEmpty(cl_code )">,CL_CODE </if>
|
||||
,FRST_REGIST_PNTTM
|
||||
<if test="@kr.xit.framework.core.utils.XitCmmnUtil@notEmpty(frst_register_id )">,FRST_REGISTER_ID </if>
|
||||
<if test="@kr.xit.framework.core.utils.XitCmmnUtil@notEmpty(last_updt_pnttm )">,LAST_UPDT_PNTTM </if>
|
||||
<if test="@kr.xit.framework.core.utils.XitCmmnUtil@notEmpty(last_updusr_id )">,LAST_UPDUSR_ID </if>
|
||||
)VALUES(
|
||||
#{code_id }
|
||||
<if test="@kr.xit.framework.core.utils.XitCmmnUtil@notEmpty(code_id_nm )">,#{code_id_nm }</if>
|
||||
<if test="@kr.xit.framework.core.utils.XitCmmnUtil@notEmpty(code_id_dc )">,#{code_id_dc }</if>
|
||||
<if test="@kr.xit.framework.core.utils.XitCmmnUtil@notEmpty(use_at )">,#{use_at }</if>
|
||||
<if test="@kr.xit.framework.core.utils.XitCmmnUtil@notEmpty(cl_code )">,#{cl_code }</if>
|
||||
,NOW()
|
||||
<if test="@kr.xit.framework.core.utils.XitCmmnUtil@notEmpty(frst_register_id )">,#{frst_register_id }</if>
|
||||
<if test="@kr.xit.framework.core.utils.XitCmmnUtil@notEmpty(last_updt_pnttm )">,#{last_updt_pnttm }</if>
|
||||
<if test="@kr.xit.framework.core.utils.XitCmmnUtil@notEmpty(last_updusr_id )">,#{last_updusr_id }</if>
|
||||
)
|
||||
</insert>
|
||||
<update id="modifyXitCmmnCode">
|
||||
/** modifyXitCmmnCode */
|
||||
/** 공통코드 수정 */
|
||||
UPDATE XIT_CMMN_CODE
|
||||
SET
|
||||
LAST_UPDT_PNTTM = NOW()
|
||||
<if test="@kr.xit.framework.core.utils.XitCmmnUtil@notBlank(code_id_nm )">,CODE_ID_NM = #{code_id_nm }</if>
|
||||
<if test="@kr.xit.framework.core.utils.XitCmmnUtil@notBlank(code_id_dc )">,CODE_ID_DC = #{code_id_dc }</if>
|
||||
<if test="@kr.xit.framework.core.utils.XitCmmnUtil@notBlank(use_at )">,USE_AT = #{use_at }</if>
|
||||
<if test="@kr.xit.framework.core.utils.XitCmmnUtil@notBlank(cl_code )">,CL_CODE = #{cl_code }</if>
|
||||
<if test="@kr.xit.framework.core.utils.XitCmmnUtil@notBlank(frst_regist_pnttm)">,FRST_REGIST_PNTTM = #{frst_regist_pnttm}</if>
|
||||
<if test="@kr.xit.framework.core.utils.XitCmmnUtil@notBlank(frst_register_id )">,FRST_REGISTER_ID = #{frst_register_id }</if>
|
||||
<if test="@kr.xit.framework.core.utils.XitCmmnUtil@notBlank(last_updusr_id )">,LAST_UPDUSR_ID = #{last_updusr_id }</if>
|
||||
WHERE 1=1
|
||||
AND CODE_ID = #{code_id}
|
||||
</update>
|
||||
<delete id="removeXitCmmnCode">
|
||||
/** removeXitCmmnCode */
|
||||
/** 공통코드 삭제 */
|
||||
DELETE FROM XIT_CMMN_CODE
|
||||
WHERE 1=1
|
||||
AND CODE_ID = #{code_id}
|
||||
</delete>
|
||||
|
||||
</mapper>
|
@ -0,0 +1,164 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
|
||||
<mapper namespace="kr.xit.framework.biz.mng.code.mapper.">
|
||||
|
||||
<!-- *************************************************************************************************************
|
||||
* xit_author_info : 권한 정보
|
||||
************************************************************************************************************** -->
|
||||
<select id="selectCmmnClCodes">
|
||||
/* code-classification-mysql-mapper|selectCmmnClCodes-분류코드 목록 조회|julim */
|
||||
</select>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<select id="findXitCmmnDetailCodes" resultType="kr.xit.framework.biz.cmm.model.XitCmmnDetailCodeVO">
|
||||
/** findXitCmmnDetailCodes */
|
||||
/** 공통상세코드 다건 조회 */
|
||||
SELECT CODE_ID
|
||||
,CODE
|
||||
,CODE_NM
|
||||
,CODE_DC
|
||||
,USE_AT
|
||||
,ETC_1
|
||||
,ETC_2
|
||||
,ETC_3
|
||||
,ORDR
|
||||
,FRST_REGIST_PNTTM
|
||||
,FRST_REGISTER_ID
|
||||
,LAST_UPDT_PNTTM
|
||||
,LAST_UPDUSR_ID
|
||||
FROM XIT_CMMN_DETAIL_CODE
|
||||
WHERE 1=1
|
||||
<if test="@kr.xit.framework.core.utils.XitCmmnUtil@notEmpty(code_id )">AND CODE_ID = #{code_id }</if>
|
||||
<if test="@kr.xit.framework.core.utils.XitCmmnUtil@notEmpty(code )">AND CODE = #{code }</if>
|
||||
<if test="@kr.xit.framework.core.utils.XitCmmnUtil@notEmpty(code_nm )">AND CODE_NM = #{code_nm }</if>
|
||||
<if test="@kr.xit.framework.core.utils.XitCmmnUtil@notEmpty(code_dc )">AND CODE_DC = #{code_dc }</if>
|
||||
<if test="@kr.xit.framework.core.utils.XitCmmnUtil@notEmpty(use_at )">AND USE_AT = #{use_at }</if>
|
||||
<if test="@kr.xit.framework.core.utils.XitCmmnUtil@notEmpty(frst_regist_pnttm)">AND FRST_REGIST_PNTTM = #{frst_regist_pnttm}</if>
|
||||
<if test="@kr.xit.framework.core.utils.XitCmmnUtil@notEmpty(frst_register_id )">AND FRST_REGISTER_ID = #{frst_register_id }</if>
|
||||
<if test="@kr.xit.framework.core.utils.XitCmmnUtil@notEmpty(last_updt_pnttm )">AND LAST_UPDT_PNTTM = #{last_updt_pnttm }</if>
|
||||
<if test="@kr.xit.framework.core.utils.XitCmmnUtil@notEmpty(last_updusr_id )">AND LAST_UPDUSR_ID = #{last_updusr_id }</if>
|
||||
<if test="@kr.xit.framework.core.utils.XitCmmnUtil@notEmpty(etc_1 )">AND ETC_1 = #{etc_1 }</if>
|
||||
<if test="@kr.xit.framework.core.utils.XitCmmnUtil@notEmpty(etc_2 )">AND ETC_2 = #{etc_2 }</if>
|
||||
<if test="@kr.xit.framework.core.utils.XitCmmnUtil@notEmpty(etc_3 )">AND ETC_3 = #{etc_3 }</if>
|
||||
<if test="@kr.xit.framework.core.utils.XitCmmnUtil@notEmpty(ordr )">AND ORDR = #{ordr }</if>
|
||||
</select>
|
||||
<select id="findXitCmmnDetailCode" resultType="kr.xit.framework.biz.cmm.model.XitCmmnDetailCodeVO">
|
||||
/** findXitCmmnDetailCode */
|
||||
/** 공통상세코드 조회 */
|
||||
SELECT CODE_ID
|
||||
,CODE
|
||||
,CODE_NM
|
||||
,CODE_DC
|
||||
,USE_AT
|
||||
,ETC_1
|
||||
,ETC_2
|
||||
,ETC_3
|
||||
,ORDR
|
||||
,FRST_REGIST_PNTTM
|
||||
,FRST_REGISTER_ID
|
||||
,LAST_UPDT_PNTTM
|
||||
,LAST_UPDUSR_ID
|
||||
FROM XIT_CMMN_DETAIL_CODE
|
||||
WHERE 1=1
|
||||
AND CODE_ID = #{code_id}
|
||||
AND CODE = #{code }
|
||||
</select>
|
||||
<insert id="addXitCmmnDetailCode">
|
||||
/** addXitCmmnDetailCode */
|
||||
/** 공통상세코드 등록 */
|
||||
INSERT INTO XIT_CMMN_DETAIL_CODE(
|
||||
CODE_ID
|
||||
,CODE
|
||||
<if test="@kr.xit.framework.core.utils.XitCmmnUtil@notEmpty(code_nm )">,CODE_NM </if>
|
||||
<if test="@kr.xit.framework.core.utils.XitCmmnUtil@notEmpty(code_dc )">,CODE_DC </if>
|
||||
<if test="@kr.xit.framework.core.utils.XitCmmnUtil@notEmpty(use_at )">,USE_AT </if>
|
||||
<if test="@kr.xit.framework.core.utils.XitCmmnUtil@notEmpty(etc_1 )">,ETC_1 </if>
|
||||
<if test="@kr.xit.framework.core.utils.XitCmmnUtil@notEmpty(etc_2 )">,ETC_2 </if>
|
||||
<if test="@kr.xit.framework.core.utils.XitCmmnUtil@notEmpty(etc_3 )">,ETC_3 </if>
|
||||
<if test="@kr.xit.framework.core.utils.XitCmmnUtil@notEmpty(ordr )">,ORDR </if>
|
||||
,FRST_REGIST_PNTTM
|
||||
<if test="@kr.xit.framework.core.utils.XitCmmnUtil@notEmpty(frst_register_id )">,FRST_REGISTER_ID </if>
|
||||
<if test="@kr.xit.framework.core.utils.XitCmmnUtil@notEmpty(last_updt_pnttm )">,LAST_UPDT_PNTTM </if>
|
||||
<if test="@kr.xit.framework.core.utils.XitCmmnUtil@notEmpty(last_updusr_id )">,LAST_UPDUSR_ID </if>
|
||||
)VALUES(
|
||||
#{code_id }
|
||||
,#{code }
|
||||
<if test="@kr.xit.framework.core.utils.XitCmmnUtil@notEmpty(code_nm )">,#{code_nm }</if>
|
||||
<if test="@kr.xit.framework.core.utils.XitCmmnUtil@notEmpty(code_dc )">,#{code_dc }</if>
|
||||
<if test="@kr.xit.framework.core.utils.XitCmmnUtil@notEmpty(use_at )">,#{use_at }</if>
|
||||
<if test="@kr.xit.framework.core.utils.XitCmmnUtil@notEmpty(etc_1 )">,#{etc_1 }</if>
|
||||
<if test="@kr.xit.framework.core.utils.XitCmmnUtil@notEmpty(etc_2 )">,#{etc_2 }</if>
|
||||
<if test="@kr.xit.framework.core.utils.XitCmmnUtil@notEmpty(etc_3 )">,#{etc_3 }</if>
|
||||
<if test="@kr.xit.framework.core.utils.XitCmmnUtil@notEmpty(ordr )">,#{ordr }</if>
|
||||
,NOW()
|
||||
<if test="@kr.xit.framework.core.utils.XitCmmnUtil@notEmpty(frst_register_id )">,#{frst_register_id }</if>
|
||||
<if test="@kr.xit.framework.core.utils.XitCmmnUtil@notEmpty(last_updt_pnttm )">,#{last_updt_pnttm }</if>
|
||||
<if test="@kr.xit.framework.core.utils.XitCmmnUtil@notEmpty(last_updusr_id )">,#{last_updusr_id }</if>
|
||||
)
|
||||
</insert>
|
||||
<update id="modifyXitCmmnDetailCode">
|
||||
/** modifyXitCmmnDetailCode */
|
||||
/** 공통상세코드 수정 */
|
||||
UPDATE XIT_CMMN_DETAIL_CODE
|
||||
SET
|
||||
LAST_UPDT_PNTTM = NOW()
|
||||
<if test="@kr.xit.framework.core.utils.XitCmmnUtil@notBlank(code_nm )">,CODE_NM = #{code_nm }</if>
|
||||
<if test="@kr.xit.framework.core.utils.XitCmmnUtil@notBlank(code_dc )">,CODE_DC = #{code_dc }</if>
|
||||
<if test="@kr.xit.framework.core.utils.XitCmmnUtil@notBlank(use_at )">,USE_AT = #{use_at }</if>
|
||||
<if test="@kr.xit.framework.core.utils.XitCmmnUtil@notEmpty(etc_1 )">,ETC_1 = #{etc_1 }</if>
|
||||
<if test="@kr.xit.framework.core.utils.XitCmmnUtil@notEmpty(etc_2 )">,ETC_2 = #{etc_2 }</if>
|
||||
<if test="@kr.xit.framework.core.utils.XitCmmnUtil@notEmpty(etc_3 )">,ETC_3 = #{etc_3 }</if>
|
||||
<if test="@kr.xit.framework.core.utils.XitCmmnUtil@notEmpty(ordr )">,ORDR = #{ordr }</if>
|
||||
<if test="@kr.xit.framework.core.utils.XitCmmnUtil@notBlank(frst_regist_pnttm)">,FRST_REGIST_PNTTM = #{frst_regist_pnttm}</if>
|
||||
<if test="@kr.xit.framework.core.utils.XitCmmnUtil@notBlank(frst_register_id )">,FRST_REGISTER_ID = #{frst_register_id }</if>
|
||||
<if test="@kr.xit.framework.core.utils.XitCmmnUtil@notBlank(last_updusr_id )">,LAST_UPDUSR_ID = #{last_updusr_id }</if>
|
||||
WHERE 1=1
|
||||
AND CODE_ID = #{code_id}
|
||||
AND CODE = #{code }
|
||||
</update>
|
||||
<delete id="removeXitCmmnDetailCode">
|
||||
/** removeXitCmmnDetailCode */
|
||||
/** 공통상세코드 삭제 */
|
||||
DELETE
|
||||
FROM XIT_CMMN_DETAIL_CODE
|
||||
WHERE 1=1
|
||||
AND CODE_ID = #{code_id}
|
||||
AND CODE = #{code }
|
||||
</delete>
|
||||
|
||||
|
||||
</mapper>
|
Loading…
Reference in New Issue