feat: 코드관리 진행
parent
668c7c8023
commit
686f811b7b
@ -0,0 +1,21 @@
|
||||
package kr.xit.framework.biz.mng.code.mapper;
|
||||
|
||||
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.XitClCodeMngVO;
|
||||
|
||||
|
||||
@Mapper
|
||||
public interface ICodeCfnMgtMapper {
|
||||
|
||||
List<XitClCodeMngVO> selectCmmnClCodes(final Map<String, Object> paraMap, final RowBounds rowBounds);
|
||||
XitClCodeMngVO selectCmmnClCode(final String clCode);
|
||||
|
||||
int insertCmmnClCode(final XitClCodeMngVO vo);
|
||||
int updateCmmnClCode(final XitClCodeMngVO vo);
|
||||
int deleteCmmnClCode(final String clCode);
|
||||
}
|
@ -0,0 +1,16 @@
|
||||
package kr.xit.framework.biz.mng.code.mapper;
|
||||
|
||||
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.XitClCodeMngVO;
|
||||
|
||||
@SuppressWarnings("MybatisXMapperMethodInspection")
|
||||
@Mapper
|
||||
public interface ICodeGrpMgtMapper {
|
||||
|
||||
List<XitClCodeMngVO> selectCmmnGrpCodes(Map<String, Object> paraMap, RowBounds rowBounds);
|
||||
}
|
@ -0,0 +1,45 @@
|
||||
package kr.xit.framework.biz.mng.code.service;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
|
||||
import org.apache.ibatis.session.RowBounds;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import egovframework.rte.fdl.idgnr.EgovIdGnrService;
|
||||
import kr.xit.framework.biz.cmm.service.XitFrameCrudService;
|
||||
import kr.xit.framework.biz.mng.code.mapper.ICodeCfnMgtMapper;
|
||||
import kr.xit.framework.biz.mng.code.model.XitClCodeMngVO;
|
||||
import kr.xit.framework.core.message.XitMessageSource;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
|
||||
@RequiredArgsConstructor
|
||||
@Service
|
||||
public class CodeCfnMgtService implements ICodeCfnMgtService {
|
||||
|
||||
private final ICodeCfnMgtMapper mapper;
|
||||
|
||||
@Override
|
||||
public List<XitClCodeMngVO> findCodeCfns(final Map<String, Object> paraMap, final RowBounds rowBounds) {
|
||||
return mapper.selectCmmnClCodes(paraMap, rowBounds);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void addCodeCfn(final XitClCodeMngVO vo) {
|
||||
vo.setFrstRegisterId(getUserUniqId());
|
||||
mapper.insertCmmnClCode(vo);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void modifyCodeCfn(final XitClCodeMngVO vo) {
|
||||
vo.setLastUpdusrId(getUserUniqId());
|
||||
mapper.updateCmmnClCode(vo);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void removeCodeCfn(final String clCode) {
|
||||
mapper.deleteCmmnClCode(clCode);
|
||||
}
|
||||
}
|
@ -1,33 +0,0 @@
|
||||
package kr.xit.framework.biz.mng.code.service;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
|
||||
import org.apache.ibatis.session.RowBounds;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import egovframework.rte.fdl.idgnr.EgovIdGnrService;
|
||||
import kr.xit.framework.biz.cmm.service.XitFrameCrudService;
|
||||
import kr.xit.framework.biz.mng.code.mapper.ICodeClassificationMgtMapper;
|
||||
import kr.xit.framework.biz.mng.code.model.XitClCodeMngVO;
|
||||
import kr.xit.framework.core.message.XitMessageSource;
|
||||
|
||||
@Service
|
||||
public class CodeClassificationMgtService implements ICodeClassificationMgtService {
|
||||
|
||||
@Resource
|
||||
private ICodeClassificationMgtMapper mapper;
|
||||
@Resource
|
||||
private XitFrameCrudService xitFrameCrudService;
|
||||
@Resource(name="groupIdGnrService")
|
||||
private EgovIdGnrService idgenService;
|
||||
@Resource
|
||||
private XitMessageSource xitMessageSource;
|
||||
|
||||
@Override
|
||||
public List<XitClCodeMngVO> findCodeClassifications(Map<String, Object> paraMap, RowBounds rowBounds) {
|
||||
return mapper.selectCmmnClCodes(paraMap, rowBounds);
|
||||
}
|
||||
}
|
@ -0,0 +1,83 @@
|
||||
package kr.xit.framework.biz.mng.code.web;
|
||||
|
||||
import java.util.Map;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Controller;
|
||||
import org.springframework.validation.BindingResult;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RequestParam;
|
||||
import org.springframework.web.servlet.ModelAndView;
|
||||
|
||||
import kr.xit.framework.biz.mng.code.model.XitClCodeMngVO;
|
||||
import kr.xit.framework.biz.mng.code.service.ICodeCfnMgtService;
|
||||
import kr.xit.framework.biz.mng.menu.model.XitMenuInfoVO;
|
||||
import kr.xit.framework.core.constants.FrameworkConstants;
|
||||
import kr.xit.framework.core.message.XitMessageSource;
|
||||
import kr.xit.framework.core.model.ResultResponse;
|
||||
import kr.xit.framework.core.validation.XitBeanValidator;
|
||||
import kr.xit.framework.support.mybatis.MybatisUtils;
|
||||
import kr.xit.framework.support.util.AjaxMessageMapRenderer;
|
||||
import kr.xit.framework.support.util.ValidationError;
|
||||
import kr.xit.framework.support.util.constants.MessageKey;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
|
||||
@RequiredArgsConstructor
|
||||
@Controller
|
||||
@RequestMapping("/framework/biz/mng/code")
|
||||
public class CodeCfnMgtController {
|
||||
|
||||
private final ICodeCfnMgtService service;
|
||||
|
||||
@RequestMapping(value = "/mngCodeCfnMgtForm")
|
||||
public void mngCodeCfnMgtForm() {
|
||||
}
|
||||
|
||||
@RequestMapping(value = "/mngCodeCfnMgtPopup")
|
||||
public ModelAndView mngCodeCfnMgtPopup(final XitClCodeMngVO vo) {
|
||||
ModelAndView mav = new ModelAndView();
|
||||
|
||||
mav.addObject("cmmnClCode", vo);
|
||||
mav.addObject("pageTitle", "분류 코드 등록 / 변경");
|
||||
mav.setViewName(FrameworkConstants.FRAMEWORK_JSP_BASE_PATH + "mng/code/mngCodeCfnMgtPopup.popup");
|
||||
return mav;
|
||||
}
|
||||
|
||||
@GetMapping(value = "/findCodeCfns")
|
||||
public ModelAndView findCodeCfns(@RequestParam final Map<String, Object> paraMap){
|
||||
return ResultResponse.of(service.findCodeCfns(paraMap, MybatisUtils.getPagingInfo(paraMap)));
|
||||
}
|
||||
|
||||
@PostMapping(value = "/addCodeCfn")
|
||||
public ModelAndView addCodeCfn(final XitClCodeMngVO vo, final BindingResult bindingResult){
|
||||
ModelAndView mav = new ModelAndView(FrameworkConstants.JSON_VIEW);
|
||||
|
||||
ValidationError.of("cmmnClCode", vo, bindingResult);
|
||||
service.addCodeCfn(vo);
|
||||
AjaxMessageMapRenderer.success(mav, MessageKey.CMM_INSERT_SUCCESS);
|
||||
return mav;
|
||||
}
|
||||
|
||||
@PostMapping(value = "/modifyCodeCfn")
|
||||
public ModelAndView modifyCodeCfn(final XitClCodeMngVO vo, final BindingResult bindingResult){
|
||||
ModelAndView mav = new ModelAndView(FrameworkConstants.JSON_VIEW);
|
||||
|
||||
ValidationError.of("cmmnClCode", vo, bindingResult);
|
||||
service.modifyCodeCfn(vo);
|
||||
AjaxMessageMapRenderer.success(mav, MessageKey.CMM_UPDATE_SUCCESS);
|
||||
return mav;
|
||||
}
|
||||
|
||||
@PostMapping(value = "/removeCodeCfn")
|
||||
public ModelAndView removeCodeCfn(final String clCode){
|
||||
ModelAndView mav = new ModelAndView(FrameworkConstants.JSON_VIEW);
|
||||
|
||||
service.removeCodeCfn(clCode);
|
||||
AjaxMessageMapRenderer.success(mav, MessageKey.CMM_DELETE_SUCCESS);
|
||||
return mav;
|
||||
}
|
||||
}
|
@ -1,50 +0,0 @@
|
||||
package kr.xit.framework.biz.mng.code.web;
|
||||
|
||||
import java.util.Map;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Controller;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RequestParam;
|
||||
import org.springframework.web.servlet.ModelAndView;
|
||||
|
||||
import kr.xit.framework.biz.mng.code.service.ICodeClassificationMgtService;
|
||||
import kr.xit.framework.core.message.XitMessageSource;
|
||||
import kr.xit.framework.core.model.ResultResponse;
|
||||
import kr.xit.framework.core.validation.XitBeanValidator;
|
||||
import kr.xit.framework.support.mybatis.MybatisUtils;
|
||||
|
||||
/**
|
||||
*
|
||||
* @업무그룹명: 분류코드관리 Controller
|
||||
* @설명:
|
||||
* @최초작성일: 2020. 4. 16. 오전 9:39:52
|
||||
* @최초작성자: 박민규
|
||||
* @author (주)엑스아이티 개발팀
|
||||
* @since 2002. 2. 2.
|
||||
* @version 1.0 Copyright(c) XIT All rights reserved.
|
||||
*/
|
||||
@Controller
|
||||
@RequestMapping("/framework/biz/mng/code")
|
||||
public class CodeClassificationMgtController {
|
||||
|
||||
@Resource
|
||||
private ICodeClassificationMgtService service;
|
||||
@Autowired
|
||||
private XitBeanValidator beanValidator;
|
||||
@Resource(name = "xitMessageSource")
|
||||
XitMessageSource xitMessageSource;
|
||||
|
||||
@RequestMapping(value = "/mngCodeClassificationMgtForm")
|
||||
public void mngCodeClassificationMgtForm() {
|
||||
}
|
||||
|
||||
@GetMapping(value = "/findCodeClassifications")
|
||||
public ModelAndView findCodeClassifications(@RequestParam final Map<String, Object> paraMap){
|
||||
return ResultResponse.of(service.findCodeClassifications(paraMap, MybatisUtils.getPagingInfo(paraMap)));
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,80 @@
|
||||
<?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.ICodeCfnMgtMapper">
|
||||
|
||||
<!-- *************************************************************************************************************
|
||||
* xit_cmmn_cl_code : 분류 코드
|
||||
************************************************************************************************************** -->
|
||||
<sql id="sqlCmmnClCode">
|
||||
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>
|
||||
<if test="@kr.xit.framework.core.utils.XitCmmnUtil@notEmpty(clCode)">
|
||||
AND cl_code = #{clCode}
|
||||
</if>
|
||||
<if test="@kr.xit.framework.core.utils.XitCmmnUtil@notEmpty(clCodeNm)">
|
||||
AND cl_code_nm = #{clCodeNm}
|
||||
</if>
|
||||
<if test="@kr.xit.framework.core.utils.XitCmmnUtil@notEmpty(useAt)">
|
||||
AND use_at = #{useAt}
|
||||
</if>
|
||||
</where>
|
||||
</sql>
|
||||
|
||||
<select id="selectCmmnClCodes" resultType="kr.xit.framework.biz.mng.code.model.XitClCodeMngVO">
|
||||
/* code-cfn-mysql-mapper|selectCmmnClCodes-분류코드 목록 조회|julim */
|
||||
<include refid="sqlCmmnClCode"/>
|
||||
</select>
|
||||
|
||||
<select id="selectCmmnClCode" resultType="kr.xit.framework.biz.mng.code.model.XitClCodeMngVO">
|
||||
/* code-cfn-mysql-mapper|selectCmmnClCode-분류코드 정보 조회|julim */
|
||||
<include refid="sqlCmmnClCode"/>
|
||||
</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}
|
||||
, 'Y'
|
||||
, 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>
|
@ -1,130 +0,0 @@
|
||||
<?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.ICodeClassificationMgtMapper">
|
||||
|
||||
<!-- *************************************************************************************************************
|
||||
* xit_author_info : 권한 정보
|
||||
************************************************************************************************************** -->
|
||||
<select id="selectCmmnClCodes">
|
||||
/* code-classification-mysql-mapper|selectCmmnClCodes-분류코드 목록 조회|julim */
|
||||
</select>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<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
|
||||
<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="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>
|
@ -1,136 +0,0 @@
|
||||
<?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>
|
@ -1,164 +0,0 @@
|
||||
<?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>
|
@ -0,0 +1,104 @@
|
||||
<?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.ICodeDtlMgtMapper">
|
||||
|
||||
<!-- *************************************************************************************************************
|
||||
* xit_cmmn_detail_code : 공통 코드
|
||||
************************************************************************************************************** -->
|
||||
<sql id="sqlCmmnDtlCode">
|
||||
SELECT code_id
|
||||
, code
|
||||
, code_nm
|
||||
, code_dc
|
||||
, etc_1
|
||||
, etc_2
|
||||
, etc_3
|
||||
, ordr
|
||||
, use_at
|
||||
, frst_regist_pnttm
|
||||
, frst_register_id
|
||||
, last_updt_pnttm
|
||||
, last_updusr_id
|
||||
FROM xit_cmmn_detail_code
|
||||
<where>
|
||||
<if test="@kr.xit.framework.core.utils.XitCmmnUtil@notEmpty(codeId)">
|
||||
AND code_id = #{codeId}
|
||||
</if>
|
||||
<if test="@kr.xit.framework.core.utils.XitCmmnUtil@notEmpty(code)">
|
||||
AND code = #{code}
|
||||
</if>
|
||||
<if test="@kr.xit.framework.core.utils.XitCmmnUtil@notEmpty(codeNm)">
|
||||
AND code_nm = #{codeNm}
|
||||
</if>
|
||||
<if test="@kr.xit.framework.core.utils.XitCmmnUtil@notEmpty(useAt)">
|
||||
AND use_at = #{useAt}
|
||||
</if>
|
||||
</where>
|
||||
</sql>
|
||||
|
||||
<select id="selectCmmnDtlCodes">
|
||||
/* code-dtl-mysql-mapper|selectCmmnDtlCodes-코드 목록 조회|julim */
|
||||
<include refid="sqlCmmnDtlCode"/>
|
||||
</select>
|
||||
|
||||
<select id="selectCmmnDtlCode">
|
||||
/* /* code-dtl-mysql-mapper|selectCmmnDtlCode-코드 정보 조회|julim */
|
||||
<include refid="sqlCmmnDtlCode"/>
|
||||
</select>
|
||||
|
||||
<insert id="insertCmmnDtlCode">
|
||||
/* code-dtl-mysql-mapper|insertCmmnDtlCode-코드 정보 등록|julim */
|
||||
INSERT
|
||||
INTO xit_cmmn_detail_code (
|
||||
code_id
|
||||
, code
|
||||
, code_nm
|
||||
, code_dc
|
||||
, etc_1
|
||||
, etc_2
|
||||
, etc_3
|
||||
, ordr
|
||||
, use_at
|
||||
, frst_regist_pnttm
|
||||
, frst_register_id
|
||||
) VALUE (
|
||||
#{codeId}
|
||||
, #{code}
|
||||
, #{codeNm}
|
||||
, #{codeDc}
|
||||
, #{etc1}
|
||||
, #{etc2}
|
||||
, #{etc3}
|
||||
, #{ordr}
|
||||
, 'Y'
|
||||
, NOW()
|
||||
, #{frstRegisterId}
|
||||
)
|
||||
</insert>
|
||||
|
||||
<update id="updateCmmnDtlCode">
|
||||
/* code-dtl-mysql-mapper|updateCmmnDtlCode-코드 정보 변경|julim */
|
||||
UPDATE xit_cmmn_detail_code
|
||||
SET code_nm = IF(code_nm = #{codeIdNm}, code_nm, #{codeNm})
|
||||
, code_dc = IF(code_dc = #{codeDc}, code_dc, #{codeDc})
|
||||
, etc_1 = IF(etc_1 = #{etc1}, etc_1, #{etc1})
|
||||
, etc_2 = IF(etc_2 = #{etc2}, etc_2, #{etc2})
|
||||
, etc_3 = IF(etc_3 = #{etc3}, etc_3, #{etc3})
|
||||
, ordr = IF(ordr = #{ordr}, ordr, #{ordr})
|
||||
, use_at = IF(use_at = #{useAt}, use_at, #{useAt})
|
||||
, last_updt_pnttm = NOW()
|
||||
, last_updusr_id = #{lastUpdusrId}
|
||||
WHERE code_id = #{codeId}
|
||||
AND code = #{code}
|
||||
</update>
|
||||
|
||||
<delete id="deleteCmmnDtlCode">
|
||||
/* code-dtl-mysql-mapper|deleteCmmnDtlCode-코드 정보 삭제|julim */
|
||||
DELETE
|
||||
FROM xit_cmmn_detail_code
|
||||
WHERE code_id = #{codeId}
|
||||
AND code = #{code}
|
||||
</delete>
|
||||
|
||||
</mapper>
|
@ -0,0 +1,88 @@
|
||||
<?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.ICodeGrpMgtMapper">
|
||||
|
||||
<!-- *************************************************************************************************************
|
||||
* xit_cmmn_code : 그룹 코드
|
||||
************************************************************************************************************** -->
|
||||
<sql id="sqlCmmnCode">
|
||||
SELECT cl_code
|
||||
, code_id
|
||||
, code_id_nm
|
||||
, code_id_dc
|
||||
, use_at
|
||||
, frst_regist_pnttm
|
||||
, frst_register_id
|
||||
, last_updt_pnttm
|
||||
, last_updusr_id
|
||||
FROM xit_cmmn_code
|
||||
<where>
|
||||
<if test="@kr.xit.framework.core.utils.XitCmmnUtil@notEmpty(clCode)">
|
||||
AND cl_code = #{clCode}
|
||||
</if>
|
||||
<if test="@kr.xit.framework.core.utils.XitCmmnUtil@notEmpty(codeId)">
|
||||
AND code_id = #{codeId}
|
||||
</if>
|
||||
<if test="@kr.xit.framework.core.utils.XitCmmnUtil@notEmpty(codeIdNm)">
|
||||
AND code_id_nm = #{codeIdNm}
|
||||
</if>
|
||||
<if test="@kr.xit.framework.core.utils.XitCmmnUtil@notEmpty(useAt)">
|
||||
AND use_at = #{useAt}
|
||||
</if>
|
||||
</where>
|
||||
</sql>
|
||||
|
||||
<select id="selectCmmnCodes">
|
||||
/* code-grp-mysql-mapper|selectCmmnCodes-코드그룹 목록 조회|julim */
|
||||
<include refid="sqlCmmnCode"/>
|
||||
</select>
|
||||
|
||||
<select id="selectCmmnCode">
|
||||
/* code-grp-mysql-mapper|selectCmmnCode-코드그룹 정보 조회|julim */
|
||||
<include refid="sqlCmmnCode"/>
|
||||
</select>
|
||||
|
||||
<insert id="insertCmmnCode">
|
||||
/* code-grp-mysql-mapper|insertCmmnCode-코드그룹 정보 등록|julim */
|
||||
INSERT
|
||||
INTO xit_cmmn_code (
|
||||
cl_code
|
||||
, code_id
|
||||
, code_id_nm
|
||||
, code_id_dc
|
||||
, use_at
|
||||
, frst_regist_pnttm
|
||||
, frst_register_id
|
||||
) VALUE (
|
||||
#{clCode}
|
||||
, #{codeId}
|
||||
, #{codeIdNm}
|
||||
, #{codeIdDc}
|
||||
, 'Y'
|
||||
, NOW()
|
||||
, #{frstRegisterId}
|
||||
)
|
||||
</insert>
|
||||
|
||||
<update id="updateCmmnCode">
|
||||
/* code-grp-mysql-mapper|updateCmmnCode-코드그룹 정보 변경|julim */
|
||||
UPDATE xit_cmmn_code
|
||||
SET code_id_nm = IF(code_id_nm = #{codeIdNm}, code_id_nm, #{codeIdNm})
|
||||
, code_id_dc = IF(code_id_dc = #{codeIdDc}, code_id_dc, #{codeIdDc})
|
||||
, use_at = #{useAt}
|
||||
, last_updt_pnttm = NOW()
|
||||
, last_updusr_id = #{lastUpdusrId}
|
||||
WHERE cl_code = #{clCode}
|
||||
AND code_id = #{codeId}
|
||||
</update>
|
||||
|
||||
<delete id="deleteCmmnCode">
|
||||
/* code-grp-mysql-mapper|deleteCmmnCode-코드그룹 정보 삭제|julim */
|
||||
DELETE
|
||||
FROM xit_cmmn_code
|
||||
WHERE cl_code = #{clCode}
|
||||
AND code_id = #{codeId}
|
||||
</delete>
|
||||
|
||||
</mapper>
|
@ -1,12 +1,5 @@
|
||||
<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
|
||||
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
|
||||
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
|
||||
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
|
||||
<%@ taglib prefix="ui" uri="http://egovframework.gov/ctl/ui"%>
|
||||
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>
|
||||
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
|
||||
<%@ taglib prefix="ufn" uri="/WEB-INF/tlds/egovfn.tld"%>
|
||||
<%@ taglib prefix="orderby" uri="/WEB-INF/tlds/orderby.tld" %>
|
||||
<%@ include file="/WEB-INF/jsp/framework/taglibs.jsp" %>
|
||||
<%@ taglib prefix="validator" uri="http://www.springmodules.org/tags/commons-validator" %>
|
||||
|
||||
<c:url var="ImgUrl" value="/resources/"/>
|
Loading…
Reference in New Issue