refactor : 코드 테이블 컬럼명 변경(CODE_ID_NM -> GRP_NM)

main
이범준 2 years ago
parent 6e62a45bc9
commit 8f7b3fdd11

@ -119,7 +119,7 @@ select * from XIT_ORGNZT_INFO;
AND ORGNZT_ID = 'BPV';
select * from xit_cmmn_code where CODE_ID_NM like '%과태료%';
select * from xit_cmmn_code where GRP_NM like '%과태료%';
UPDATE tb_ec_ctzn_sttemnt

@ -20,7 +20,7 @@ public class XitCmmnCodeVO extends BaseVO {
private static final long serialVersionUID = -5850726883706732980L;
protected String grp_id; //코드 id
protected String code_id_nm; //코드 id 명
protected String grp_nm; //코드 id 명
protected String code_id_dc; //코드 id 설명
protected String use_at; //사용 여부
protected String cl_code; //분류 코드
@ -36,11 +36,11 @@ public class XitCmmnCodeVO extends BaseVO {
public void setGrp_id(String grp_id) {
this.grp_id = grp_id;
}
public String getCode_id_nm() {
return code_id_nm;
public String getGrp_nm() {
return grp_nm;
}
public void setCode_id_nm(String code_id_nm) {
this.code_id_nm = code_id_nm;
public void setGrp_nm(String grp_nm) {
this.grp_nm = grp_nm;
}
public String getCode_id_dc() {
return code_id_dc;

@ -34,7 +34,7 @@ public class XitCmmnCodeMngVO {
/*
* ID
*/
private String codeIdNm;
private String grpNm;
/*
* ID

@ -37,7 +37,7 @@ public class XitDetailCodeMngVO {
* ID
*/
@ApiParam(value = "코드 ID 이름")
private String codeIdNm;
private String grpNm;
/*
*

@ -16,7 +16,7 @@ public class XitCodeVO extends BaseVO {
/** 코드ID */
private String grpId;
/** 코드ID명 */
private String codeIdNm;
private String grpNm;
/** 코드 */
private String code;
/** 코드명 */
@ -47,11 +47,11 @@ public class XitCodeVO extends BaseVO {
public void setGrpId(String grpId) {
this.grpId = grpId;
}
public String getCodeIdNm() {
return codeIdNm;
public String getGrpNm() {
return grpNm;
}
public void setCodeIdNm(String codeIdNm) {
this.codeIdNm = codeIdNm;
public void setGrpNm(String grpNm) {
this.grpNm = grpNm;
}
public String getCode() {
return code;

@ -62,7 +62,7 @@
<when test='type != null and type == "CMM_GRP"'>
/* 공통 코드 그룹 */
SELECT grp_id AS code
, code_id_nm AS code_val
, grp_nm AS code_val
FROM xit_cmmn_code
WHERE cl_code = #{grpId}
AND use_at = 'Y'

@ -22,7 +22,7 @@
/** findCmmnCodes */
/** 공통코드 목록 조회 */
SELECT GRP_ID AS "grpId"
, CODE_ID_NM AS "codeIdNm"
, GRP_NM AS "grpNm"
, CODE_ID_DC AS "codeIdDc"
, CL_CODE AS "clCode"
FROM XIT_CMMN_CODE

@ -741,7 +741,7 @@
/** findXitCmmnCodes */
/** 공통코드 다건 조회 */
SELECT GRP_ID
,CODE_ID_NM
,GRP_NM
,CODE_ID_DC
,USE_AT
,CL_CODE
@ -751,8 +751,8 @@
,LAST_UPDUSR_ID
FROM XIT_CMMN_CODE
WHERE 1=1
<if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(grp_id )">AND GRP_ID = #{grp_id }</if>
<if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(code_id_nm )">AND CODE_ID_NM = #{code_id_nm }</if>
<if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(grp_id )">AND GRP_ID = #{grp_id }</if>
<if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(grp_nm )">AND GRP_NM = #{grp_nm }</if>
<if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(code_id_dc )">AND CODE_ID_DC = #{code_id_dc }</if>
<if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(use_at )">AND USE_AT = #{use_at }</if>
<if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(cl_code )">AND CL_CODE = #{cl_code }</if>
@ -765,7 +765,7 @@
/** findXitCmmnCode */
/** 공통코드 조회 */
SELECT GRP_ID
,CODE_ID_NM
,GRP_NM
,CODE_ID_DC
,USE_AT
,CL_CODE
@ -782,7 +782,7 @@
/** 공통코드 등록 */
INSERT INTO XIT_CMMN_CODE(
GRP_ID
<if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(code_id_nm )">,CODE_ID_NM </if>
<if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(grp_nm )">,GRP_NM </if>
<if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(code_id_dc )">,CODE_ID_DC </if>
<if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(use_at )">,USE_AT </if>
<if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(cl_code )">,CL_CODE </if>
@ -792,7 +792,7 @@
<if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(last_updusr_id )">,LAST_UPDUSR_ID </if>
)VALUES(
#{grp_id }
<if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(code_id_nm )">,#{code_id_nm }</if>
<if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(grp_nm )">,#{grp_nm }</if>
<if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(code_id_dc )">,#{code_id_dc }</if>
<if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(use_at )">,#{use_at }</if>
<if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(cl_code )">,#{cl_code }</if>
@ -808,7 +808,7 @@
UPDATE XIT_CMMN_CODE
SET
LAST_UPDT_PNTTM = NOW()
<if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notBlank(code_id_nm )">,CODE_ID_NM = #{code_id_nm }</if>
<if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notBlank(grp_nm )">,GRP_NM = #{grp_nm }</if>
<if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notBlank(code_id_dc )">,CODE_ID_DC = #{code_id_dc }</if>
<if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notBlank(use_at )">,USE_AT = #{use_at }</if>
<if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notBlank(cl_code )">,CL_CODE = #{cl_code }</if>

@ -19,7 +19,7 @@
, tcat.change_dt
, tcat.changer
, tcatd.answer_se_code
, cdc.code_id_nm AS answerSeCodeNm
, cdc.grp_nm AS answerSeCodeNm
, tcatd.resn_code
, cdc.code_val AS resnCodeNm
, tcatd.answer_cn
@ -31,7 +31,7 @@
LEFT OUTER JOIN (
SELECT
xcc.grp_id
, xcc.code_id_nm
, xcc.grp_nm
, xcdc.code
, xcdc.code_val
FROM xit_cmmn_code xcc

@ -8,7 +8,7 @@
************************************************************************************************************** -->
<sql id="sqlCmmnDtlCode">
SELECT cdc.grp_id
, xcc.code_id_nm
, xcc.grp_nm
, cdc.code
, cdc.code_val
, cdc.code_dc
@ -31,8 +31,8 @@
<if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(grpId)">
AND INSTR(cdc.grp_id, #{grpId}) > 0
</if>
<if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(codeIdNm)">
AND INSTR(xcc.code_id_nm, #{codeIdNm}) > 0
<if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(grpNm)">
AND INSTR(xcc.grp_nm, #{grpNm}) > 0
</if>
<if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(code)">
AND INSTR(cdc.code, #{code}) > 0
@ -89,7 +89,7 @@
<update id="updateCmmnDtlCode">
/* code-dtl-mysql-mapper|updateCmmnDtlCode-코드 정보 변경|julim */
UPDATE xit_cmmn_detail_code
SET code_val = IF(code_val = #{codeIdNm}, code_val, #{codeVal})
SET code_val = IF(code_val = #{grpNm}, code_val, #{codeVal})
, 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})

@ -10,7 +10,7 @@
SELECT xcc.cl_code
, xccc.cl_code_nm
, xcc.grp_id
, xcc.code_id_nm
, xcc.grp_nm
, xcc.code_id_dc
, xcc.use_at
, xcc.frst_regist_pnttm
@ -27,8 +27,8 @@
<if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(grpId)">
AND INSTR(xcc.grp_id, #{grpId}) > 0
</if>
<if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(codeIdNm)">
AND INSTR(xcc.code_id_nm, #{codeIdNm}) > 0
<if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(grpNm)">
AND INSTR(xcc.grp_nm, #{grpNm}) > 0
</if>
<if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(useAt)">
AND xcc.use_at = #{useAt}
@ -53,7 +53,7 @@
INTO xit_cmmn_code (
cl_code
, grp_id
, code_id_nm
, grp_nm
, code_id_dc
, use_at
, frst_regist_pnttm
@ -61,7 +61,7 @@
) VALUE (
#{clCode}
, #{grpId}
, #{codeIdNm}
, #{grpNm}
, #{codeIdDc}
, #{useAt}
, NOW()
@ -72,7 +72,7 @@
<update id="updateCmmnGrpCode">
/* code-grp-mysql-mapper|updateCmmnGrpCode-코드그룹 정보 변경|julim */
UPDATE xit_cmmn_code
SET code_id_nm = IF(code_id_nm = #{codeIdNm}, code_id_nm, #{codeIdNm})
SET grp_nm = IF(grp_nm = #{grpNm}, grp_nm, #{grpNm})
, code_id_dc = IF(code_id_dc = #{codeIdDc}, code_id_dc, #{codeIdDc})
, use_at = IF(use_at = #{useAt}, use_at, #{useAt})
, last_updt_pnttm = NOW()

@ -15,7 +15,7 @@
<var-value>6</var-value>
</var>
</field>
<field property="codeIdNm" depends="required, maxlength">
<field property="grpNm" depends="required, maxlength">
<arg0 key="코드ID명" resource="false"/>
<arg1 key="60" resource="false"/>
<var>

@ -48,11 +48,11 @@
</tr>
<tr>
<th width="20%" height="23" scope="row" nowrap="nowrap" >
<label for="codeIdNm" class="required">코드ID명</label>
<label for="grpNm" class="required">코드ID명</label>
</th>
<td width="80%" nowrap="nowrap" colspan="3">
<form:input path="codeIdNm" size="60" maxlength="60" id="codeIdNm"/>
<form:errors path="codeIdNm"/>
<form:input path="grpNm" size="60" maxlength="60" id="grpNm"/>
<form:errors path="grpNm"/>
</td>
</tr>
<tr>

@ -51,11 +51,11 @@
</tr>
<tr>
<th width="20%" height="23" scope="row" nowrap="nowrap" >
<label for="codeIdNm" class="required">코드ID명</label>
<label for="grpNm" class="required">코드ID명</label>
</th>
<td width="80%" nowrap="nowrap" colspan="3">
<form:input path="codeIdNm" size="60" maxlength="60" id="codeIdNm"/>
<form:errors path="codeIdNm"/>
<form:input path="grpNm" size="60" maxlength="60" id="grpNm"/>
<form:errors path="grpNm"/>
</td>
</tr>
<tr>

@ -249,7 +249,7 @@ GridConfig.setOptColumns([ //Grid 컬럼 정보(명칭,매핑 field, 기타옵
},
{
header: '코드ID명',
name: 'codeIdNm',
name: 'grpNm',
width: 200,
sortable: false,
align: 'center'

@ -131,7 +131,7 @@ function fnDelete(){
<td nowrap="nowrap"><strong><c:out value="${(searchVO.pageIndex - 1) * searchVO.pageSize + status.count}"/></strong></td>
<td nowrap="nowrap">${resultInfo.clCodeNm}</td>
<td nowrap="nowrap">${resultInfo.grpId}</td>
<td nowrap="nowrap">${resultInfo.codeIdNm}</td>
<td nowrap="nowrap">${resultInfo.grpNm}</td>
<td nowrap="nowrap"><c:if test="${resultInfo.useAt == 'Y'}">사용</c:if><c:if test="${resultInfo.useAt == 'N'}">미사용</c:if></td>
</tr>
</c:forEach>

@ -36,7 +36,7 @@
<label class="required">코드ID</label>
</th>
<td width="80%" nowrap colspan="3">
${cmmnDetailCode.codeIdNm}
${cmmnDetailCode.grpNm}
</td>
</tr>
<tr>
@ -285,7 +285,7 @@ var XitDetailCodeMng_edit = {
success : function(data) {
$('#grpId').children('option').remove();
$(data.cmmnCodeList).each(function(index, item){
var option = $('<option value="'+item.grpId+'">'+item.codeIdNm+'</option>');
var option = $('<option value="'+item.grpId+'">'+item.grpNm+'</option>');
$('#grpId').append(option);
});
},

@ -42,7 +42,7 @@
</select>
<select style="width: 40%" name="grpId" class="select" id="grpId">
<c:forEach var="result" items="${cmmnDetailCodeList}" varStatus="status">
<option value='<c:out value="${result.grpId}"/>' ><c:out value="${result.codeIdNm}"/></option>
<option value='<c:out value="${result.grpId}"/>' ><c:out value="${result.grpNm}"/></option>
</c:forEach>
</select>
</td>
@ -292,7 +292,7 @@ var XitDetailCodeMng_input = {
success : function(data) {
$('#grpId').children('option').remove();
$(data.cmmnCodeList).each(function(index, item){
var option = $('<option value="'+item.grpId+'">'+item.codeIdNm+'</option>');
var option = $('<option value="'+item.grpId+'">'+item.grpNm+'</option>');
$('#grpId').append(option);
});
},

@ -246,7 +246,7 @@ GridConfig.setOptColumns([ //Grid 컬럼 정보(명칭,매핑 field, 기타옵
},
{
header: '코드ID명',
name: 'codeIdNm',
name: 'grpNm',
width: 200,
sortable: true,
sortingType: 'desc',
@ -257,7 +257,7 @@ GridConfig.setOptColumns([ //Grid 컬럼 정보(명칭,매핑 field, 기타옵
formatter : function(props){
var rowData = props.grid.getRow(props.rowKey);
var obj = {
formatter : rowData.codeIdNm
formatter : rowData.grpNm
,element : "text"
}
return obj;

@ -63,7 +63,7 @@
infoSize:"xl",
urls : {
load : '<c:url value="/framework/biz/mng/code/findCodeCfns.do"/>',
getInfo : <c:url value="/framework/biz/mng/code/mngCodeCfnMgtPopup.do"/>
getInfo : '<c:url value="/framework/biz/mng/code/mngCodeCfnMgtPopup.do"/>'
},
keymapper:info => info ? info.SOME_KEY : "",
dataGetter:obj => obj.data.contents

@ -25,8 +25,8 @@
<input name="grpId" title="코드그룹ID" type="text" size="15" maxlength="15" id="grpId">
</td>
<td>
<label for="codeIdNm">코드그룹명</label>
<input name="codeIdNm" title="코드그룹명" type="text" size="35" maxlength="35" id="codeIdNm">
<label for="grpNm">코드그룹명</label>
<input name="grpNm" title="코드그룹명" type="text" size="35" maxlength="35" id="grpNm">
</td>
<td>
<label for="codeVal">공통코드명</label>
@ -191,7 +191,7 @@
},
{
header: '코드그룹명',
name: 'codeIdNm',
name: 'grpNm',
width: 150,
sortable: true,
sortingType: 'desc',
@ -202,7 +202,7 @@
formatter : (props)=>{
const rowData = props.grid.getRow(props.rowKey);
return {
formatter: rowData.codeIdNm
formatter: rowData.grpNm
,element: "text"
}
}

@ -40,8 +40,8 @@
</select>
</c:if>
<c:if test="${isUpdate}">
<form:input path="codeIdNm" size="3" maxlength="3" readonly="${isUpdate}"/>
<form:errors path="codeIdNm"/>
<form:input path="grpNm" size="3" maxlength="3" readonly="${isUpdate}"/>
<form:errors path="grpNm"/>
<input type="hidden" id="grpId" name="grpId" value="${cmmnDetailCode.grpId}">
</c:if>
</td>
@ -167,7 +167,7 @@
,success: (data) => {
$('#grpId').children('option').remove();
$(data.comboList).each( (index, item) => {
//var option = $('<option value="'+item.grpId+'">'+item.codeIdNm+'</option>');
//var option = $('<option value="'+item.grpId+'">'+item.grpNm+'</option>');
$('#grpId').append($('<option value="'+item.code+'">'+item.code_val+'</option>'));
});

@ -25,8 +25,8 @@
<input name="grpId" title="코드그룹ID" type="text" size="15" maxlength="15" id="grpId">
</td>
<td>
<label for="codeIdNm">코드그룹명</label>
<input name="codeIdNm" title="코드그룹명" type="text" size="35" maxlength="35" id="codeIdNm">
<label for="grpNm">코드그룹명</label>
<input name="grpNm" title="코드그룹명" type="text" size="35" maxlength="35" id="grpNm">
</td>
<td>
<select name="useAt" title="사용여부" class="form-select">
@ -207,7 +207,7 @@
},
{
header: '그룹코드명',
name: 'codeIdNm',
name: 'grpNm',
minWidth: 150,
sortable: false,
//align: 'center'

@ -43,11 +43,11 @@
</tr>
<tr>
<th scope="row" nowrap>
<label for="codeIdNm" class="required">그룹코드명</label>
<label for="grpNm" class="required">그룹코드명</label>
</th>
<td nowrap="nowrap" colspan="3">
<form:input path="codeIdNm" size="60" maxlength="60"/>
<form:errors path="codeIdNm"/>
<form:input path="grpNm" size="60" maxlength="60"/>
<form:errors path="grpNm"/>
</td>
</tr>
<tr>

@ -40,8 +40,8 @@ Date Author Description
<input name="grpId" title="코드그룹ID" type="text" size="15" maxlength="15" id="grpId">
</td>
<td>
<label for="codeIdNm">코드그룹명</label>
<input name="codeIdNm" title="코드그룹명" type="text" size="35" maxlength="35" id="codeIdNm">
<label for="grpNm">코드그룹명</label>
<input name="grpNm" title="코드그룹명" type="text" size="35" maxlength="35" id="grpNm">
</td>
<td>
<label for="codeVal">공통코드명</label>
@ -201,7 +201,7 @@ Date Author Description
// grid click event
{
header: '코드그룹명',
name: 'codeIdNm',
name: 'grpNm',
width: 150,
sortable: true,
sortingType: 'desc',
@ -212,7 +212,7 @@ Date Author Description
formatter : (props)=>{
const rowData = props.grid.getRow(props.rowKey);
return {
formatter: rowData.codeIdNm
formatter: rowData.grpNm
,element: "text"
}
}

Loading…
Cancel
Save