parent
b20523a7ab
commit
c16b142f59
@ -0,0 +1,93 @@
|
||||
<?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.XitZipCodeMngMapper">
|
||||
|
||||
<!-- *************************************************************************************************************
|
||||
* xit_zip : 우편번호
|
||||
************************************************************************************************************** -->
|
||||
<sql id="sqlZip">
|
||||
SELECT zip
|
||||
, sn
|
||||
, ctprvn_nm
|
||||
, signgu_nm
|
||||
, emd_nm
|
||||
, li_buld_nm
|
||||
, lnbr_dong_ho
|
||||
, frst_regist_pnttm
|
||||
, frst_register_id
|
||||
, last_updt_pnttm
|
||||
, last_updusr_id
|
||||
FROM xit_zip
|
||||
<where>
|
||||
<if test="searchCondition eq 'clCode'">
|
||||
AND INSTR(cl_code, #{searchKeyword}) > 0
|
||||
</if>
|
||||
<if test="searchCondition eq 'clCodeNm'">
|
||||
AND INSTR(cl_code_nm, #{searchKeyword}) > 0
|
||||
</if>
|
||||
</where>
|
||||
</sql>
|
||||
|
||||
<select id="selectCmmnClCodes" resultType="kr.xit.framework.biz.mng.code.model.XitClCodeMngVO">
|
||||
/* code-cfn-mysql-mapper|selectCmmnClCodes-분류코드 목록 조회|julim */
|
||||
<include refid="sqlZip"/>
|
||||
</select>
|
||||
|
||||
<select id="selectCmmnClCode" resultType="kr.xit.framework.biz.mng.code.model.XitClCodeMngVO">
|
||||
/* code-cfn-mysql-mapper|selectCmmnClCode-분류코드 정보 조회|julim */
|
||||
<include refid="sqlZip"/>
|
||||
</select>
|
||||
|
||||
<insert id="insertCmmnClCode">
|
||||
/* code-cfn-mysql-mapper|insertCmmnClCode-분류코드 정보 등록|julim */
|
||||
INSERT
|
||||
INTO xit_cmmn_cl_code (
|
||||
cl_code
|
||||
, cl_code_nm
|
||||
, cl_code_dc
|
||||
, use_at
|
||||
, frst_regist_pnttm
|
||||
, frst_register_id
|
||||
) VALUE (
|
||||
#{clCode}
|
||||
, #{clCodeNm}
|
||||
, #{clCodeDc}
|
||||
, #{useAt}
|
||||
, NOW()
|
||||
, #{frstRegisterId}
|
||||
)
|
||||
</insert>
|
||||
|
||||
<update id="updateCmmnClCode">
|
||||
/* code-cfn-mysql-mapper|updateCmmnClCode-분류코드 정보 변경|julim */
|
||||
UPDATE xit_cmmn_cl_code
|
||||
SET cl_code_nm = IF(cl_code_nm = #{clCodeNm}, cl_code_nm, #{clCodeNm})
|
||||
, cl_code_dc = IF(cl_code_dc = #{clCodeDc}, cl_code_dc, #{clCodeDc})
|
||||
, use_at = #{useAt}
|
||||
, last_updt_pnttm = NOW()
|
||||
, last_updusr_id = #{lastUpdusrId}
|
||||
WHERE cl_code = #{clCode}
|
||||
</update>
|
||||
|
||||
<delete id="deleteCmmnClCode">
|
||||
/* code-cfn-mysql-mapper|deleteCmmnClCode-분류코드 정보 삭제|julim */
|
||||
DELETE
|
||||
FROM xit_cmmn_cl_code
|
||||
WHERE cl_code = #{clCode}
|
||||
</delete>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</mapper>
|
Loading…
Reference in New Issue