refactor : 테이블 컬럼명 변경(UPDUSR -> MDFR)

main
이범준 2 years ago
parent 3ff771f7f2
commit 32511f319d

@ -192,7 +192,7 @@ public class FimsCrackdownDTO {
/**
*
*/
private String updusr;
private String mdfr;
}

@ -106,7 +106,7 @@ public class FimsCrackdownMgtServiceBean extends AbstractServiceBean implements
payerDTO.setRegister(getUserInfo().getUniqId());
rtCrackdownMgtMapper.insertRtPayer(payerDTO);
} else {
payerDTO.setUpdusr(getUserInfo().getUniqId());
payerDTO.setMdfr(getUserInfo().getUniqId());
rtCrackdownMgtMapper.updateRtPayer(payerDTO);
}
@ -146,7 +146,7 @@ public class FimsCrackdownMgtServiceBean extends AbstractServiceBean implements
if(FimsConst.RegltSeCode.CITIZEN.getCode().equals(saveDTO.getRegltSeCode())
&& (Checks.isNotEmpty(saveDTO.getInterfaceSeqN()) && Checks.isNotEmpty(saveDTO.getCtznSttemntDetailSn()))) {
ctznDTO.setVhcleNo(infoDTO.getVhcleNo());
ctznDTO.setUpdusr(getUserInfo().getUniqId());
ctznDTO.setMdfr(getUserInfo().getUniqId());
ecCtznSttemntMapper.updateVhcleNoOfEcCtznSttemntDetail(ctznDTO);
updateCtznAndAnswer(saveDTO, infoDTO, FimsConst.CtznStmtDtlStsCode.ACCEPTANCE.getCode(),
FimsConst.AnswerSeCode.IMPOSE.getCode(), "01");
@ -175,7 +175,7 @@ public class FimsCrackdownMgtServiceBean extends AbstractServiceBean implements
payerDTO.setRegister(getUserInfo().getUniqId());
rtCrackdownMgtMapper.insertRtPayer(payerDTO);
} else {
payerDTO.setUpdusr(getUserInfo().getUniqId());
payerDTO.setMdfr(getUserInfo().getUniqId());
rtCrackdownMgtMapper.updateRtPayer(payerDTO);
}
@ -215,7 +215,7 @@ public class FimsCrackdownMgtServiceBean extends AbstractServiceBean implements
&& (Checks.isNotEmpty(saveDTO.getInterfaceSeqN()) && Checks.isNotEmpty(saveDTO.getCtznSttemntDetailSn()))) {
ctznDTO.setVhcleNo(infoDTO.getVhcleNo());
ctznDTO.setUpdusr(getUserInfo().getUniqId());
ctznDTO.setMdfr(getUserInfo().getUniqId());
ecCtznSttemntMapper.updateVhcleNoOfEcCtznSttemntDetail(ctznDTO);
updateCtznAndAnswer(saveDTO, infoDTO, FimsConst.CtznStmtDtlStsCode.ACCEPTANCE.getCode(),
@ -271,7 +271,7 @@ public class FimsCrackdownMgtServiceBean extends AbstractServiceBean implements
.interfaceSeqN(saveDTO.getInterfaceSeqN())
.ctznSttemntDetailSn(saveDTO.getCtznSttemntDetailSn())
.vhcleNo(infoDTO.getVhcleNo())
.updusr(getUserInfo().getUniqId())
.mdfr(getUserInfo().getUniqId())
.build()
);
updateCtznAndAnswer(saveDTO, infoDTO, FimsConst.CtznStmtDtlStsCode.NON_ACCEPTABLE.getCode(),
@ -366,7 +366,7 @@ public class FimsCrackdownMgtServiceBean extends AbstractServiceBean implements
CtznStmtDTO.Ans.builder()
.interfaceSeqN(interfaceSeqN)
.ctznSttemntStatusCode(FimsConst.CtznStmtStsCode.ANS_COMPLETE.getCode())
.updusr(getUserInfo().getUniqId())
.mdfr(getUserInfo().getUniqId())
.build()
);
@ -483,7 +483,7 @@ public class FimsCrackdownMgtServiceBean extends AbstractServiceBean implements
private CtznStmtDTO.Request getCtznRequestDTO(final FimsCrackdownDTO.SaveRequest saveDTO){
return CtznStmtDTO.Request
.builder()
.updusr(getUserInfo().getUniqId())
.mdfr(getUserInfo().getUniqId())
.interfaceSeqN(saveDTO.getInterfaceSeqN())
.ctznSttemntDetailSn(saveDTO.getCtznSttemntDetailSn())
.build();

@ -215,7 +215,7 @@ public class CctvCrackdownDTO {
private String registDt;
private String register;
private String updtDt;
private String updusr;
private String mdfr;
}
@ -239,7 +239,7 @@ public class CctvCrackdownDTO {
private String fileJobId;
private String register;
private String updusr;
private String mdfr;
private String extrlRegltCntcId;
private String regltProcessSttusCode;

@ -98,7 +98,7 @@ public class CtznStmtDTO { //extends ExtlEsbDataType {
private String ctznSttemntProcessSttus;
private String register;
private String updtDt;
private String updusr;
private String mdfr;
private List<CtznStmtDTO.Dtl> stmtDtlDTOs = new ArrayList<>();
@ -205,7 +205,7 @@ public class CtznStmtDTO { //extends ExtlEsbDataType {
private String registDt;
private String register;
private String updtDt;
private String updusr;
private String mdfr;
private String ctznSttemntProcessSttus;
private Set<Integer> indexs = new HashSet<>();
@ -293,7 +293,7 @@ public class CtznStmtDTO { //extends ExtlEsbDataType {
* :
*/
private String ctznSttemntStatusCode = FimsConst.CtznStmtStsCode.ANS_COMPLETE.getCode();
private String updusr;
private String mdfr;
/**
* sysCode
@ -349,7 +349,7 @@ public class CtznStmtDTO { //extends ExtlEsbDataType {
// 단속ID
private String regltId;
private String erppId;
private String updusr;
private String mdfr;
/**
*

@ -251,7 +251,7 @@ public class EcCctvCrackdownServiceBean extends AbstractServiceBean implements E
@Override
public void modifyExtrlRegltCntc(final CctvCrackdownDTO.ExtrlRegltCntc dto) {
dto.setUpdusr(getUserInfo().getUniqId());
dto.setMdfr(getUserInfo().getUniqId());
mapper.updateEcExtrlRegltCntc(dto);
}
@ -266,7 +266,7 @@ public class EcCctvCrackdownServiceBean extends AbstractServiceBean implements E
dto.setRegister(getUserInfo().getUniqId());
mapper.insertRtRegltFromEcExtrRegltCntc(dto);
dto.setUpdusr(getUserInfo().getUniqId());
dto.setMdfr(getUserInfo().getUniqId());
dto.setExtrlRegltCntcProcessSttus(FimsConst.CtznStmtDtlStsCode.ACCEPTANCE.getCode());
mapper.updateStatusAndRegltIdOfEcExtrRegltCntc(dto);
}
@ -287,7 +287,7 @@ public class EcCctvCrackdownServiceBean extends AbstractServiceBean implements E
mapper.insertRtErppFromEcExtrRegltCntc(dto);
// 상태 변경
dto.setUpdusr(getUserInfo().getUniqId());
dto.setMdfr(getUserInfo().getUniqId());
dto.setExtrlRegltCntcProcessSttus(FimsConst.CtznStmtDtlStsCode.NON_ACCEPTABLE.getCode());
mapper.updateStatusAndRegltIdOfEcExtrRegltCntc(dto);
}

@ -75,7 +75,7 @@ public class EcCtznSttemntServiceBean extends AbstractServiceBean implements EcC
@Override
@Transactional
public void modifyEcCtznSttemntDetail(final CtznStmtDTO.Dtl dto) {
dto.setUpdusr(getUserInfo().getUniqId());
dto.setMdfr(getUserInfo().getUniqId());
mapper.updateVhcleNoOfEcCtznSttemntDetail(dto);
}
@ -108,7 +108,7 @@ public class EcCtznSttemntServiceBean extends AbstractServiceBean implements EcC
mapper.insertRtRegltFromCtznStmt(dto);
// 시민신고 상세 상태 변경
dto.setUpdusr(getUserInfo().getUniqId());
dto.setMdfr(getUserInfo().getUniqId());
dto.setCtznSttemntDetailProcessSttus(FimsConst.CtznStmtDtlStsCode.ACCEPTANCE.getCode());
mapper.updateStatusAndRegltIdOfEcCtznSttemntDetail(dto);
@ -133,7 +133,7 @@ public class EcCtznSttemntServiceBean extends AbstractServiceBean implements EcC
mapper.insertRtErppFromCtznStmt(dto);
// 시민신고 상세 상태 변경
dto.setUpdusr(getUserInfo().getUniqId());
dto.setMdfr(getUserInfo().getUniqId());
dto.setCtznSttemntDetailProcessSttus(FimsConst.CtznStmtDtlStsCode.NON_ACCEPTABLE.getCode());
mapper.updateStatusAndRegltIdOfEcCtznSttemntDetail(dto);
@ -189,7 +189,7 @@ public class EcCtznSttemntServiceBean extends AbstractServiceBean implements EcC
mapper.saveEcCtznSttemntAnswer(dto);
// 시민신고 상태 - 답변완료 update
dto.setUpdusr(getUserInfo().getUniqId());
dto.setMdfr(getUserInfo().getUniqId());
dto.setCtznSttemntStatusCode(FimsConst.CtznStmtStsCode.ANS_COMPLETE.getCode());
mapper.updateStmtProcessStsOfEcCtznSttemnt(dto);

@ -28,7 +28,7 @@ public class SendRqstMngVO extends BaseVO {
private String mobile_page_cn; //모바일_내용_상세
private String register; //작성자
private String updt_dt; //수정_일자
private String updusr; //수정자
private String mdfr; //수정자
@ -131,11 +131,11 @@ public class SendRqstMngVO extends BaseVO {
public void setUpdt_dt(String updt_dt) {
this.updt_dt = updt_dt;
}
public String getUpdusr() {
return updusr;
public String getMdfr() {
return mdfr;
}
public void setUpdusr(String updusr) {
this.updusr = updusr;
public void setMdfr(String mdfr) {
this.mdfr = mdfr;
}
public String getSndng_process_sttus() {
return sndng_process_sttus;

@ -389,7 +389,7 @@ public class RtDTO {
/**
*
*/
private String updusr;
private String mdfr;

@ -47,7 +47,7 @@ public class CmmAnsTmplDTO {
/**
*
*/
private String updusr;
private String mdfr;
//ETC
/**
*

@ -55,7 +55,7 @@ public class CmmAnsTmplServiceBean extends AbstractServiceBean implements CmmAns
@Override
@Transactional
public void modifyCmmAnsTmpl(final CmmAnsTmplDTO.Dtl dto) {
dto.setUpdusr(getUserUniqId());
dto.setMdfr(getUserUniqId());
if ("FIM028".equals(dto.getAnswerSeCode())){
mapper.updateCmmAnsTmpl(dto);
}

@ -62,7 +62,7 @@ public class XitBasicBbsMngSearchVO extends XitBaseSearchVO{
private String frstRegisterNm = "";
/** 최종 수정자명 */
private String lastUpdusrNm = "";
private String lastMdfrNm = "";
/** 게시판 속성 구분 (자료목록 조회(findList) 분기처리용) */
private String attrbFlag;
@ -340,22 +340,22 @@ public class XitBasicBbsMngSearchVO extends XitBaseSearchVO{
}
/**
* lastUpdusrNm attribute .
* lastMdfrNm attribute .
*
* @return the lastUpdusrNm
* @return the lastMdfrNm
*/
public String getLastUpdusrNm() {
return lastUpdusrNm;
public String getLastMdfrNm() {
return lastMdfrNm;
}
/**
* lastUpdusrNm attribute .
* lastMdfrNm attribute .
*
* @param lastUpdusrNm
* the lastUpdusrNm to set
* @param lastMdfrNm
* the lastMdfrNm to set
*/
public void setLastUpdusrNm(String lastUpdusrNm) {
this.lastUpdusrNm = lastUpdusrNm;
public void setLastMdfrNm(String lastMdfrNm) {
this.lastMdfrNm = lastMdfrNm;
}
public String getAttrbFlag() {

@ -53,7 +53,7 @@ public class XitBbsCreateMngSearchVO extends XitBaseSearchVO{
private String tmplatNm = "";
/** 최종 수정자명 */
private String lastUpdusrNm = "";
private String lastMdfrNm = "";
/** 권한지정 여부 */
private String authFlag = "";
@ -278,22 +278,22 @@ public class XitBbsCreateMngSearchVO extends XitBaseSearchVO{
}
/**
* lastUpdusrNm attribute .
* lastMdfrNm attribute .
*
* @return the lastUpdusrNm
* @return the lastMdfrNm
*/
public String getLastUpdusrNm() {
return lastUpdusrNm;
public String getLastMdfrNm() {
return lastMdfrNm;
}
/**
* lastUpdusrNm attribute .
* lastMdfrNm attribute .
*
* @param lastUpdusrNm
* the lastUpdusrNm to set
* @param lastMdfrNm
* the lastMdfrNm to set
*/
public void setLastUpdusrNm(String lastUpdusrNm) {
this.lastUpdusrNm = lastUpdusrNm;
public void setLastMdfrNm(String lastMdfrNm) {
this.lastMdfrNm = lastMdfrNm;
}
/**

@ -24,7 +24,7 @@ public class XitBbsTmplateMngSearchVO extends XitBaseSearchVO{
private String frstRegisterNm = "";
/** 최종 수정자명 */
private String lastUpdusrNm = "";
private String lastMdfrNm = "";
/** 템플릿 구분 코드 */
private String tmplatSeCode = "";
@ -76,22 +76,22 @@ public class XitBbsTmplateMngSearchVO extends XitBaseSearchVO{
}
/**
* lastUpdusrNm attribute .
* lastMdfrNm attribute .
*
* @return the lastUpdusrNm
* @return the lastMdfrNm
*/
public String getLastUpdusrNm() {
return lastUpdusrNm;
public String getLastMdfrNm() {
return lastMdfrNm;
}
/**
* lastUpdusrNm attribute .
* lastMdfrNm attribute .
*
* @param lastUpdusrNm
* the lastUpdusrNm to set
* @param lastMdfrNm
* the lastMdfrNm to set
*/
public void setLastUpdusrNm(String lastUpdusrNm) {
this.lastUpdusrNm = lastUpdusrNm;
public void setLastMdfrNm(String lastMdfrNm) {
this.lastMdfrNm = lastMdfrNm;
}
/**

@ -40,7 +40,7 @@ public class XitBbsTmplateMngVO {
private String mdfr;
/** 최종수정자 아이디 명 */
private String lastUpdusrNm;
private String lastMdfrNm;
/** 최종수정시점 */
private String mdfcnDt;

@ -58,7 +58,7 @@ public class XitBbsUseMngVO {
private String frstRegisterNm;
/** 최종 수정자명 */
private String lastUpdusrNm;
private String lastMdfrNm;
/** 등록구분 코드명 */
private String registSeCodeNm;

@ -172,7 +172,7 @@
, tecsd.violt_dtls_nm
, tecs.register
, tecs.updt_dt
, tecs.updusr
, tecs.mdfr
FROM tb_ec_ctzn_sttemnt_detail tecsd
LEFT JOIN tb_ec_ctzn_sttemnt tecs
ON tecsd.interface_seq_n = tecs.interface_seq_n
@ -247,7 +247,7 @@
UPDATE tb_ec_ctzn_sttemnt_detail
SET ctzn_sttemnt_detail_process_sttus = #{ctznSttemntDetailProcessSttus}
, updt_dt = DATE_FORMAT(NOW(), '%Y%m%d%H%i%s')
, updusr = #{updusr}
, mdfr = #{mdfr}
WHERE interface_seq_n = #{interfaceSeqN}
AND ctzn_sttemnt_detail_sn = #{ctznSttemntDetailSn}
</update>
@ -257,7 +257,7 @@
UPDATE tb_ec_ctzn_sttemnt
SET ctzn_sttemnt_process_sttus = #{ctznSttemntStatusCode}
, updt_dt = DATE_FORMAT(NOW(), '%Y%m%d%H%i%s')
, updusr = #{updusr}
, mdfr = #{mdfr}
WHERE interface_seq_n = #{interfaceSeqN}
</update>
@ -398,7 +398,7 @@
, tens.regist_dt
, tens.register
, tens.updt_dt
, tens.updusr
, tens.mdfr
, tensd.elctrn_ntic_sndng_detail_id
, tensd.main_code
, tensd.ihidnum
@ -430,7 +430,7 @@
, tecsc.regist_dt
, tecsc.register
, tecsc.updt_dt
, tecsc.updusr
, tecsc.mdfr
FROM tb_ec_ctzn_sttemnt_cmplt tecsc
WHERE gubun = #{gubun}
<if test='gubun eq "0"'>

@ -28,7 +28,7 @@
, ctzn_sttemnt_process_sttus
, register
, updt_dt
, updusr
, mdfr
FROM tb_ec_ctzn_sttemnt
</sql>
@ -113,7 +113,7 @@
, tecsd.regist_dt
, tecsd.register
, tecsd.updt_dt
, tecsd.updusr
, tecsd.mdfr
, tecs.ctzn_sttemnt_process_sttus
FROM tb_ec_ctzn_sttemnt_detail tecsd
JOIN tb_ec_ctzn_sttemnt tecs
@ -189,7 +189,7 @@
UPDATE tb_ec_ctzn_sttemnt_detail
SET vhcle_no = IF(vhcle_no = #{vhcleNo}, vhcle_no, #{vhcleNo})
, updt_dt = IF(vhcle_no = #{vhcleNo}, updt_dt, DATE_FORMAT(NOW(), '%Y%m%d%H%i%s'))
, updusr = IF(vhcle_no = #{vhcleNo}, updusr, #{updusr})
, mdfr = IF(vhcle_no = #{vhcleNo}, mdfr, #{mdfr})
WHERE interface_seq_n = #{interfaceSeqN}
AND ctzn_sttemnt_detail_sn = #{ctznSttemntDetailSn}
</update>
@ -321,7 +321,7 @@
SET reglt_id = #{regltId}
, ctzn_sttemnt_detail_process_sttus = #{ctznSttemntDetailProcessSttus}
, updt_dt = DATE_FORMAT(NOW(), '%Y%m%d%H%i%s')
, updusr = #{updusr}
, mdfr = #{mdfr}
WHERE interface_seq_n = #{interfaceSeqN}
AND ctzn_sttemnt_detail_sn = #{ctznSttemntDetailSn}
</update>
@ -337,7 +337,7 @@
#{ctznSttemntStatusCode})
)
, updt_dt = DATE_FORMAT(NOW(), '%Y%m%d%H%i%s')
, updusr = #{updusr}
, mdfr = #{mdfr}
WHERE interface_seq_n = #{interfaceSeqN}
</update>
@ -506,7 +506,7 @@
<result column="ctzn_sttemnt_process_sttus" property="ctznSttemntProcessSttus"/>
<result column="register" property="register"/>
<result column="updt_dt" property="updtDt"/>
<result column="updusr" property="updusr"/>
<result column="mdfr" property="mdfr"/>
<collection column="{interfaceSeqN=interface_seq_n}" property="stmtDtlDTOs" select="selectEcCtznSttemntDetails" javaType="List" />
</resultMap>

@ -38,7 +38,7 @@
, regist_dt
, register
, updt_dt
, updusr
, mdfr
FROM tb_ec_extrl_reglt_cntc
</sql>
@ -131,7 +131,7 @@
UPDATE tb_ec_extrl_reglt_cntc
SET vhcle_no = #{vhcleNo}
, updt_dt = DATE_FORMAT(NOW(), '%Y%m%d%H%i%s')
, updusr = #{updusr}
, mdfr = #{mdfr}
WHERE extrl_reglt_cntc_id = #{extrlRegltCntcId}
</update>
@ -250,7 +250,7 @@
SET reglt_id = #{regltId}
, extrl_reglt_cntc_process_sttus = #{extrlRegltCntcProcessSttus}
, updt_dt = DATE_FORMAT(NOW(), '%Y%m%d%H%i%s')
, updusr = #{updusr}
, mdfr = #{mdfr}
WHERE extrl_reglt_cntc_id = #{extrlRegltCntcId}
</update>

@ -244,7 +244,7 @@
, regist_dt
, register
, updt_dt
, updusr
, mdfr
FROM tb_rt_payer
WHERE payer_id = #{payerId}
</select>
@ -331,7 +331,7 @@
, adres = IF(adres = #{adres}, adres, #{adres})
, detail_adres = IF(detail_adres = #{adres}, detail_adres, #{detailAdres})
, updt_dt = DATE_FORMAT(NOW(), '%Y%m%d%H%i%s')
, updusr = #{updusr}
, mdfr = #{mdfr}
WHERE payer_id = #{payerId}
</update>
@ -411,7 +411,7 @@
, adres = IF(adres = #{adres}, adres, #{adres})
, detail_adres = IF(detail_adres = #{adres}, detail_adres, #{detailAdres})
, updt_dt = DATE_FORMAT(NOW(), '%Y%m%d%H%i%s')
, updusr = #{updusr}
, mdfr = #{mdfr}
</insert>

@ -17,7 +17,7 @@
, tcat.register
, (SELECT SA.user_nm FROM xit_vw_user_mastr SA WHERE SA.esntl_id = tcat.register) AS registerNm
, tcat.updt_dt
, tcat.updusr
, tcat.mdfr
, tcatd.answer_se_code
, cdc.grp_nm AS answerSeCodeNm
, tcatd.resn_code
@ -133,7 +133,7 @@
, prface = IF(prface = #{prface}, prface, #{prface})
, tlface = IF(tlface = #{tlface}, tlface, #{tlface})
, updt_dt = DATE_FORMAT(NOW(), '%Y%m%d%H%i%s')
, updusr = #{updusr}
, mdfr = #{mdfr}
WHERE tmplat_id = #{tmplatId}
</update>
@ -147,7 +147,7 @@
answer_cn = IF(answer_cn = #{answerCn}, answer_cn, #{answerCn})
</if>
, updt_dt = DATE_FORMAT(NOW(), '%Y%m%d%H%i%s')
, updusr = #{updusr}
, mdfr = #{mdfr}
WHERE tmplat_id = #{tmplatId}
AND answer_se_code = #{answerSeCode}
AND resn_code = #{resnCode}

@ -24,7 +24,7 @@
,A.MDFCN_DT AS "mdfcnDt"
,B.CODE_VAL AS "tmplatSeCodeNm"
,(SELECT SA.USER_NM FROM XIT_VW_USER_MASTR SA WHERE SA.ESNTL_ID=A.RGTR) AS "frstRegisterNm"
,(SELECT SA.USER_NM FROM XIT_VW_USER_MASTR SA WHERE SA.ESNTL_ID=A.MDFR) AS "lastUpdusrNm"
,(SELECT SA.USER_NM FROM XIT_VW_USER_MASTR SA WHERE SA.ESNTL_ID=A.MDFR) AS "lastMdfrNm"
</sql>
<sql id="findList_FROM">
FROM XIT_TMPLAT_INFO A

@ -18,7 +18,7 @@
, xti.mdfcn_dt
, cdc.code_val AS tmplatSeCodeNm
, (SELECT SA.user_nm FROM xit_vw_user_mastr SA WHERE SA.esntl_id = xti.rgtr) AS frstRegisterNm
, (SELECT SA.user_nm FROM xit_vw_user_mastr SA WHERE SA.esntl_id = xti.mdfr) AS lastUpdusrNm
, (SELECT SA.user_nm FROM xit_vw_user_mastr SA WHERE SA.esntl_id = xti.mdfr) AS lastMdfrNm
FROM xit_tmplat_info xti
LEFT OUTER JOIN xit_cmmn_detail_code cdc
ON xti.tmplat_se_code = cdc.code

Loading…
Cancel
Save