feat: 코드관리 진행

main
Jonguk. Lim 2 years ago
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);
}

@ -8,10 +8,9 @@ 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 ICodeClassificationMgtMapper {
public interface ICodeDtlMgtMapper {
List<XitClCodeMngVO> selectCmmnClCodes(Map<String, Object> paraMap, RowBounds rowBounds);
List<XitClCodeMngVO> selectCmmnDtlCodes(Map<String, Object> paraMap, RowBounds rowBounds);
}

@ -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);
}

@ -35,30 +35,30 @@ public class XitClCodeMngVO {
/*
*
*/
private String clCode = "";
private String clCode;
/*
*
*/
private String clCodeNm = "";
private String clCodeNm;
/*
*
*/
private String clCodeDc = "";
private String clCodeDc;
/*
*
*/
private String useAt = "";
private String useAt;
/*
* ID
*/
private String frstRegisterId = "";
private String frstRegisterId;
/*
* ID
*/
private String lastUpdusrId = "";
private String lastUpdusrId;
}

@ -3,6 +3,13 @@ package kr.xit.framework.biz.mng.code.model;
import org.apache.commons.lang3.builder.ToStringBuilder;
import kr.xit.framework.core.model.BaseVO;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.ToString;
/**
*
@ -14,7 +21,14 @@ import kr.xit.framework.core.model.BaseVO;
* @since 2002. 2. 2.
* @version 1.0 Copyright(c) XIT All rights reserved.
*/
public class XitCmmnCodeMngVO extends BaseVO {
@Getter
@Setter
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode
@Builder
@ToString
public class XitCmmnCodeMngVO {
/**
* serialVersionUID
@ -24,176 +38,41 @@ public class XitCmmnCodeMngVO extends BaseVO {
/*
* ID
*/
private String codeId = "";
private String codeId;
/*
* ID
*/
private String codeIdNm = "";
private String codeIdNm;
/*
* ID
*/
private String codeIdDc = "";
private String codeIdDc;
/*
*
*/
private String clCode = "";
private String clCode;
/*
*
*/
private String clCodeNm = "";
private String clCodeNm;
/*
*
*/
private String useAt = "";
private String useAt;
/*
* ID
*/
private String frstRegisterId = "";
private String frstRegisterId;
/*
* ID
*/
private String lastUpdusrId = "";
/**
* codeId attribute .
* @return String
*/
public String getCodeId() {
return codeId;
}
/**
* codeId attribute .
* @param codeId String
*/
public void setCodeId(String codeId) {
this.codeId = codeId;
}
/**
* codeIdNm attribute .
* @return String
*/
public String getCodeIdNm() {
return codeIdNm;
}
/**
* codeIdNm attribute .
* @param codeIdNm String
*/
public void setCodeIdNm(String codeIdNm) {
this.codeIdNm = codeIdNm;
}
/**
* codeIdDc attribute .
* @return String
*/
public String getCodeIdDc() {
return codeIdDc;
}
/**
* codeIdDc attribute .
* @param codeIdDc String
*/
public void setCodeIdDc(String codeIdDc) {
this.codeIdDc = codeIdDc;
}
/**
* clCode attribute .
* @return String
*/
public String getClCode() {
return clCode;
}
/**
* clCode attribute .
* @param clCode String
*/
public void setClCode(String clCode) {
this.clCode = clCode;
}
/**
* clCodeNm attribute .
* @return String
*/
public String getClCodeNm() {
return clCodeNm;
}
/**
* clCodeNm attribute .
* @param clCodeNm String
*/
public void setClCodeNm(String clCodeNm) {
this.clCodeNm = clCodeNm;
}
/**
* useAt attribute .
* @return String
*/
public String getUseAt() {
return useAt;
}
/**
* useAt attribute .
* @param useAt String
*/
public void setUseAt(String useAt) {
this.useAt = useAt;
}
/**
* frstRegisterId attribute .
* @return String
*/
public String getFrstRegisterId() {
return frstRegisterId;
}
/**
* frstRegisterId attribute .
* @param frstRegisterId String
*/
public void setFrstRegisterId(String frstRegisterId) {
this.frstRegisterId = frstRegisterId;
}
/**
* lastUpdusrId attribute .
* @return String
*/
public String getLastUpdusrId() {
return lastUpdusrId;
}
/**
* lastUpdusrId attribute .
* @param lastUpdusrId String
*/
public void setLastUpdusrId(String lastUpdusrId) {
this.lastUpdusrId = lastUpdusrId;
}
/**
* toString .
*/
public String toString() {
return ToStringBuilder.reflectionToString(this);
}
private String lastUpdusrId;
}

@ -1,6 +1,13 @@
package kr.xit.framework.biz.mng.code.model;
import kr.xit.framework.core.model.BaseVO;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.ToString;
/**
*
@ -12,7 +19,14 @@ import kr.xit.framework.core.model.BaseVO;
* @since 2002. 2. 2.
* @version 1.0 Copyright(c) XIT All rights reserved.
*/
public class XitDetailCodeMngVO extends BaseVO {
@Getter
@Setter
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode
@Builder
@ToString
public class XitDetailCodeMngVO {
/**
* serialVersionUID
@ -22,169 +36,47 @@ public class XitDetailCodeMngVO extends BaseVO {
/*
* ID
*/
private String codeId = "";
private String codeId;
/*
* ID
*/
private String codeIdNm = "";
private String codeIdNm;
/*
*
*/
private String code = "";
private String code;
/*
*
*/
private String codeNm = "";
private String codeNm;
/*
*
*/
private String codeDc = "";
private String codeDc;
private String etc1;
private String etc2;
private String etc3;
private String ordr;
/*
*
*/
private String useAt = "";
private String useAt;
/*
* ID
*/
private String frstRegisterId = "";
private String frstRegisterId;
/*
* ID
*/
private String lastUpdusrId = "";
/**
* codeId attribute .
* @return String
*/
public String getCodeId() {
return codeId;
}
/**
* codeId attribute .
* @param codeId String
*/
public void setCodeId(String codeId) {
this.codeId = codeId;
}
/**
* codeIdNm attribute .
* @return String
*/
public String getCodeIdNm() {
return codeIdNm;
}
/**
* codeIdNm attribute .
* @param codeIdNm String
*/
public void setCodeIdNm(String codeIdNm) {
this.codeIdNm = codeIdNm;
}
/**
* code attribute .
* @return String
*/
public String getCode() {
return code;
}
/**
* code attribute .
* @param code String
*/
public void setCode(String code) {
this.code = code;
}
/**
* codeNm attribute .
* @return String
*/
public String getCodeNm() {
return codeNm;
}
/**
* codeNm attribute .
* @param codeNm String
*/
public void setCodeNm(String codeNm) {
this.codeNm = codeNm;
}
/**
* codeDc attribute .
* @return String
*/
public String getCodeDc() {
return codeDc;
}
/**
* codeDc attribute .
* @param codeDc String
*/
public void setCodeDc(String codeDc) {
this.codeDc = codeDc;
}
/**
* useAt attribute .
* @return String
*/
public String getUseAt() {
return useAt;
}
/**
* useAt attribute .
* @param useAt String
*/
public void setUseAt(String useAt) {
this.useAt = useAt;
}
/**
* frstRegisterId attribute .
* @return String
*/
public String getFrstRegisterId() {
return frstRegisterId;
}
/**
* frstRegisterId attribute .
* @param frstRegisterId String
*/
public void setFrstRegisterId(String frstRegisterId) {
this.frstRegisterId = frstRegisterId;
}
/**
* lastUpdusrId attribute .
* @return String
*/
public String getLastUpdusrId() {
return lastUpdusrId;
}
/**
* lastUpdusrId attribute .
* @param lastUpdusrId String
*/
public void setLastUpdusrId(String lastUpdusrId) {
this.lastUpdusrId = lastUpdusrId;
}
private String lastUpdusrId;
}

@ -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);
}
}

@ -6,6 +6,7 @@ import java.util.Map;
import org.apache.ibatis.session.RowBounds;
import kr.xit.framework.biz.mng.code.model.XitClCodeMngVO;
import kr.xit.framework.core.utils.XitCmmnUtil;
/**
*
@ -17,8 +18,18 @@ import kr.xit.framework.biz.mng.code.model.XitClCodeMngVO;
* @since 2002. 2. 2.
* @version 1.0 Copyright(c) XIT All rights reserved.
*/
public interface ICodeClassificationMgtService {
public interface ICodeCfnMgtService {
List<XitClCodeMngVO> findCodeClassifications(Map<String, Object> paraMap, RowBounds pagingInfo);
List<XitClCodeMngVO> findCodeCfns(final Map<String, Object> paraMap, final RowBounds rowBounds);
void addCodeCfn(final XitClCodeMngVO vo);
void modifyCodeCfn(final XitClCodeMngVO vo);
void removeCodeCfn(final String clCode);
default String getUserUniqId(){
return XitCmmnUtil.getUserUniqId();
}
}

@ -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>

@ -65,7 +65,7 @@
}
,pagePopup: function(flag, params){
let url = '<c:url value="/framework/biz/mng/menu/mngProgramMgtPopup.do"/>';
let url = '<c:url value="/framework/biz/mng/code/mngCodeCfnMgtPopup.do"/>';
let popTitle;
let popOption = {width: 700, height:660}
switch (flag) {
@ -127,7 +127,7 @@
}
return obj;
}
,eventFunction: XitClCodeMng_list.fnClickClBtn//function(props){XitClCodeMng_list.fnClickDetail(props)} //function(){alert("1234")}
,eventFunction: fnBiz.onClickGrid
,eventType : "click"
}
}
@ -151,7 +151,7 @@
initialRequest: true,
api: {
readData: {
url: '<c:url value="/framework/biz/mng/code/findCodeClassifications.do"/>'
url: '<c:url value="/framework/biz/mng/code/findCodeCfns.do"/>'
,serializer: (params) => fnAddPageInfo(document.frmSearch, params)
}
}

@ -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/"/>

@ -2,8 +2,7 @@
<%@ include file="/WEB-INF/jsp/framework/taglibs.jsp" %>
<%@ taglib prefix="validator" uri="http://www.springmodules.org/tags/commons-validator" %>
<c:set var="isUpdate" value="${!empty menuManageVO.progrmFileNm}"/>
<c:set var="isAddSub" value="${!empty menuManageVO.upperMenuNo}"/>
<c:set var="isUpdate" value="${!empty menuManageVO.menuNm}"/>
<c:set var="bizName" value="매뉴관리"/>
<script type="text/javascript" src="<c:url value="/framework/util/validator.do"/>"></script>

Loading…
Cancel
Save