refactor : 업무영역에서 기존 테이블 제거

main
이범준 1 year ago
parent 78b70d9e48
commit 136b954c77

@ -54,9 +54,9 @@ public class FimsCrackdownDTO {
private String stdgCd;
// 서손
private String erppId;
private String erppSeCode;
private String erppResnDetail;
private String levyExclId;
private String levyExclRsnCd;
private String etcCn;
}
@EqualsAndHashCode(callSuper = true)
@ -157,9 +157,9 @@ public class FimsCrackdownDTO {
private String crdnSttsCd;
private String enlightResnCode;
private String erppId;
private String levyExclId;
private String erppResnCode;
private String erppResnDetail;
private String etcCn;
private String rtpyrId;
private String tmplatId;

@ -249,7 +249,7 @@ public class FimsCrackdownMgtServiceBean extends AbstractServiceBean implements
&& Checks.isNotEmpty(saveDTO.getInterfaceSeqN())) {
updateCtznAndAnswer(saveDTO, infoDTO, FimsConst.CtznStmtDtlStsCode.NON_ACCEPTABLE.getCode(),
FimsConst.AnswerSeCode.DISALLOW.getCode(), erppDTO.getErppSeCode());
FimsConst.AnswerSeCode.DISALLOW.getCode(), erppDTO.getLevyExclRsnCd());
}
}

@ -264,7 +264,7 @@ public class CctvCrackdownDTO {
private String linkId;
private String sysSeCd;
private String inptSeCd;
private String erppId;
private String levyExclId;
private String crdnSeCd;
private String crdnInptSeCd;

@ -331,7 +331,7 @@ public class CtznStmtDTO { //extends ExtlEsbDataType {
private String gpsX;
private String gpsY;
private String erppId;
private String levyExclId;
private String mdfr;
/**

@ -204,7 +204,7 @@ public class RtDTO {
/**
* id
*/
private String erppId;
private String levyExclId;
/**
* id
*/
@ -220,15 +220,15 @@ public class RtDTO {
/**
*
*/
private String erppProcessDe;
private String levyExclYmd;
/**
*
*/
private String erppSeCode;
private String levyExclRsnCd;
/**
*
*/
private String erppResnDetail;
private String etcCn;
/**
*
*/

@ -52,9 +52,9 @@
, SUBSTR(tcc.cvlcpt_prcs_prnmnt_dt,1,8) AS cvlcpt_prcs_prnmnt_ymd
, tei.duty_id_v -- 담당자
, tei.pcd_tel_v -- 담당자 전화번호
, tre.erpp_id
, tre.erpp_se_code -- 서손구분코드
, tre.erpp_resn_detail -- 서손사유상세
, tre.levy_excl_id
, tre.levy_excl_rsn_cd -- 서손구분코드
, tre.etc_cn -- 서손사유상세
, trp.addr_se_cd -- 지번 도로 주소 구분 코드
, trp.zip
, trp.addr
@ -87,7 +87,7 @@
ON tc.link_id = tcc.cvlcpt_link_id
LEFT JOIN tb_esb_interface tei
ON tc.link_id = tei.interface_seq_n
LEFT JOIN tb_rt_erpp tre
LEFT JOIN tb_levy_excl tre
ON tc.crdn_id = tre.crdn_id
LEFT JOIN tb_payer trp
ON tc.rtpyr_id = trp.rtpyr_id

@ -194,24 +194,20 @@
<insert id="insertRtErppFromCtznStmt">
/* ec-ctzn-sttemnt-mysql-mapper|insertRtErppFromCtznStmt-시민신고 서손 생성|julim */
<selectKey resultType="string" keyProperty="erppId" order="BEFORE">
SELECT LPAD(IFNULL(MAX(CAST(erpp_id AS UNSIGNED))+1, 1), 12, '0') AS erppId
FROM tb_rt_erpp
<selectKey resultType="string" keyProperty="levyExclId" order="BEFORE">
SELECT LPAD(IFNULL(MAX(CAST(levy_excl_id AS UNSIGNED))+1, 1), 20, '0') AS levyExclId
FROM tb_levy_excl
</selectKey>
INSERT INTO tb_rt_erpp (
erpp_id
INSERT INTO tb_levy_excl (
levy_excl_id
, crdn_id
, sgg_cd
, sys_se_cd
, erpp_process_de -- 서손 처리 일자
, erpp_se_code -- 서손 구분 코드
, erpp_resn_detail -- 서손 사유 상세
, levy_excl_ymd -- 서손 처리 일자
, levy_excl_rsn_cd -- 서손 구분 코드
, etc_cn -- 서손 사유 상세
, reg_dt
, rgtr
) SELECT #{erppId}
) SELECT #{levyExclId}
, #{crdnId}
, tc.sgg_cd
, tc.sys_se_cd
, DATE_FORMAT(NOW(), '%Y%m%d')
, ''
, ''

@ -187,20 +187,16 @@
<insert id="insertRtErppFromEcExtrRegltCntc">
/* ec-extrl-reglt-cntc-mysql-mapper|insertRtErppFromEcExtrRegltCntc-외부연계 서손 자료 생성|julim */
INSERT INTO tb_rt_erpp (
erpp_id
INSERT INTO tb_levy_excl (
levy_excl_id
, crdn_id
, sgg_cd
, sys_se_cd
, erpp_process_de -- 서손 처리 일자
, erpp_se_code -- 서손 구분 코드
, erpp_resn_detail -- 서손 사유 상세
, levy_excl_ymd -- 서손 처리 일자
, levy_excl_rsn_cd -- 서손 구분 코드
, etc_cn -- 서손 사유 상세
, reg_dt
, rgtr
) SELECT #{erppId}
) SELECT #{levyExclId}
, #{crdnId}
, sgg_cd
, sys_se_cd
, DATE_FORMAT(NOW(), '%Y%m%d')
, ''
, ''

@ -180,33 +180,29 @@
</delete>
<!-- *************************************************************************************************************
* tb_rt_erpp : 서손
* tb_levy_excl : 서손
************************************************************************************************************** -->
<insert id="insertRtErpp">
/* rt-reglt-and-erpp-mysql-mapper|insertRtErpp-서손 데이타 등록|julim */
<selectKey resultType="string" keyProperty="erppId" order="BEFORE">
SELECT LPAD(IFNULL(MAX(CAST(erpp_id AS UNSIGNED))+1, 1), 12, '0') AS erppId
FROM tb_rt_erpp
<selectKey resultType="string" keyProperty="levyExclId" order="BEFORE">
SELECT LPAD(IFNULL(MAX(CAST(levy_excl_id AS UNSIGNED))+1, 1), 20, '0') AS levyExclId
FROM tb_levy_excl
</selectKey>
INSERT
INTO tb_rt_erpp (
erpp_id
INTO tb_levy_excl (
levy_excl_id
, crdn_id
, sgg_cd
, sys_se_cd
, erpp_process_de
, erpp_se_code
, erpp_resn_detail
, levy_excl_ymd
, levy_excl_rsn_cd
, etc_cn
, reg_dt
, rgtr
) VALUES (
#{erppId}
#{levyExclId}
, #{crdnId}
, #{sggCd}
, #{sysSeCd}
, #{erppProcessDe}
, #{erppSeCode}
, #{erppResnDetail}
, #{levyExclYmd}
, #{levyExclRsnCd}
, #{etcCn}
, DATE_FORMAT(NOW(), '%Y%m%d%H%i%s')
, #{rgtr}
)

@ -71,13 +71,13 @@ Date Author Description
<th>처리사유</th>
<td>
<code:select id="enlightResnCode" name="enlightResnCode" grpId="FIM025" defaultSelect="00" title="계도사유" cls="form-select" alt="계도사유"/>
<code:select id="erppSeCode" name="erppSeCode" grpId="FIM021" title="서손구분" defaultSelect="01" cls="form-select" alt="서손구분"/>
<code:select id="levyExclRsnCd" name="levyExclRsnCd" grpId="FIM021" title="서손구분" defaultSelect="01" cls="form-select" alt="서손구분"/>
</td>
</tr>
<tr id="trErpp">
<th>특기사항</th>
<td>
<input type="text" id='erppResnDetail' name="erppResnDetail" />
<input type="text" id='etcCn' name="etcCn" />
</td>
</tr>
</tbody>
@ -106,11 +106,11 @@ Date Author Description
changeTag: () => {
if(bizDiv ==='ENLIGHT'){
$('#enlightResnCode').show();
$('#erppSeCode').hide();
$('#levyExclRsnCd').hide();
$('#trErpp').hide();
}else{
$('#enlightResnCode').hide();
$('#erppSeCode').show();
$('#levyExclRsnCd').show();
$('#trErpp').show();
}
}
@ -131,16 +131,16 @@ Date Author Description
bizDiv
,processDt: $('#processDt').val().replaceAll('-','')
,enlightResnCode: $('#enlightResnCode').val()
,erppSeCode: ''
,erppResnDetail: ''
,levyExclRsnCd: ''
,etcCn: ''
})
}else{
window.opener.callbackEnlightErpp({
bizDiv
,processDt: $('#processDt').val().replaceAll('-','')
,enlightResnCode: ''
,erppSeCode: $('#erppSeCode').val()
,erppResnDetail: $('#erppResnDetail').val()
,levyExclRsnCd: $('#levyExclRsnCd').val()
,etcCn: $('#etcCn').val()
})
}
window.close()

@ -517,9 +517,9 @@ Date Author Description
}else{
const erppDTO = {
crdnId: saveData.crdnId
, erppProcessDe:data.processDt
, erppSeCode: data.erppSeCode
, erppResnDetail: data.erppResnDetail
, levyExclYmd:data.processDt
, levyExclRsnCd: data.levyExclRsnCd
, etcCn: data.etcCn
}
saveData = {...saveData, erppDTO: erppDTO}
url = '/fims/biz/cmm/saveDisallow.do';

@ -528,14 +528,14 @@ Date Author Description
<tr>
<th>처리일</th>
<td colspan="4">
<input type="text" id="erppProcessDe" name="erppProcessDe" readonly/>
<input type="text" id="levyExclYmd" name="levyExclYmd" readonly/>
</td>
</td>
</tr>
<tr>
<th>서손사유</th>
<td colspan="4">
<input type="text" id="erppSeCode" name="erppSeCode" readonly/>
<input type="text" id="levyExclRsnCd" name="levyExclRsnCd" readonly/>
</td>
</tr>
<tr>
@ -547,7 +547,7 @@ Date Author Description
<tr>
<th>특이사항</th>
<td colspan="4">
<textarea id="erppResnDetail" name="erppResnDetail" cols="0" rows="5" style="overflow-y: scroll; width:100%;"></textarea>
<textarea id="etcCn" name="etcCn" cols="0" rows="5" style="overflow-y: scroll; width:100%;"></textarea>
</td>
</tr>
</table>

@ -661,7 +661,7 @@ Date Author Description
},
{
header: '서손사유',
name: 'erppResnDetail', //erppSeCode
name: 'etcCn', //levyExclRsnCd
width: 80,
sortable: false,
align: 'center'
@ -673,7 +673,7 @@ Date Author Description
},
{
header: '서손ID',
name: 'erppId',
name: 'levyExclId',
hidden: true
},
{
@ -683,7 +683,7 @@ Date Author Description
},
{
header: '서손사유코드',
name: 'erppSeCode',
name: 'levyExclRsnCd',
hidden: true
},
{

@ -459,7 +459,7 @@
rowKey = GRID.store.data.rawData[0]?.rowKey;
}
const rowDatas = GRID.store.data.rawData.map(d => {
return {tmplatId: '${ctznTmplatId}', answerSeCode: fnBiz.getAnswerSeCode(d.crdnSttsCd), resnCode: d.erppSeCode, interfaceSeqN: d.interfaceSeqN, vhrno: d.vhrno}
return {tmplatId: '${ctznTmplatId}', answerSeCode: fnBiz.getAnswerSeCode(d.crdnSttsCd), resnCode: d.levyExclRsnCd, interfaceSeqN: d.interfaceSeqN, vhrno: d.vhrno}
})
popupDiv = 'answerPreview';
@ -658,7 +658,7 @@
},
{
header: '서손사유',
name: 'erppResnDetail', //erppSeCode
name: 'etcCn', //levyExclRsnCd
width: 80,
sortable: false,
align: 'center'
@ -715,7 +715,7 @@
},
{
header: '서손ID',
name: 'erppId',
name: 'levyExclId',
hidden: true
},
{
@ -725,7 +725,7 @@
},
{
header: '서손사유코드',
name: 'erppSeCode',
name: 'levyExclRsnCd',
hidden: true
},
{

@ -455,7 +455,7 @@
rowKey = GRID.store.data.rawData[0]?.rowKey;
}
const rowDatas = GRID.store.data.rawData.map(d => {
return {tmplatId: '${ctznTmplatId}', answerSeCode: fnBiz.getAnswerSeCode(d.crdnSttsCd), resnCode: d.erppSeCode, interfaceSeqN: d.interfaceSeqN, vhrno: d.vhrno}
return {tmplatId: '${ctznTmplatId}', answerSeCode: fnBiz.getAnswerSeCode(d.crdnSttsCd), resnCode: d.levyExclRsnCd, interfaceSeqN: d.interfaceSeqN, vhrno: d.vhrno}
})
popupDiv = 'answerPreview';
@ -654,7 +654,7 @@
},
{
header: '서손사유',
name: 'erppResnDetail', //erppSeCode
name: 'etcCn', //levyExclRsnCd
width: 80,
sortable: false,
align: 'center'
@ -711,7 +711,7 @@
},
{
header: '서손ID',
name: 'erppId',
name: 'levyExclId',
hidden: true
},
{
@ -721,7 +721,7 @@
},
{
header: '서손사유코드',
name: 'erppSeCode',
name: 'levyExclRsnCd',
hidden: true
},
{

@ -457,7 +457,7 @@
rowKey = GRID.store.data.rawData[0]?.rowKey;
}
const rowDatas = GRID.store.data.rawData.map(d => {
return {tmplatId: '${ctznTmplatId}', answerSeCode: fnBiz.getAnswerSeCode(d.crdnSttsCd), resnCode: d.erppSeCode, interfaceSeqN: d.interfaceSeqN, vhrno: d.vhrno}
return {tmplatId: '${ctznTmplatId}', answerSeCode: fnBiz.getAnswerSeCode(d.crdnSttsCd), resnCode: d.levyExclRsnCd, interfaceSeqN: d.interfaceSeqN, vhrno: d.vhrno}
})
popupDiv = 'answerPreview';
@ -656,7 +656,7 @@
},
{
header: '서손사유',
name: 'erppResnDetail', //erppSeCode
name: 'etcCn', //levyExclRsnCd
width: 80,
sortable: false,
align: 'center'
@ -713,7 +713,7 @@
},
{
header: '서손ID',
name: 'erppId',
name: 'levyExclId',
hidden: true
},
{
@ -723,7 +723,7 @@
},
{
header: '서손사유코드',
name: 'erppSeCode',
name: 'levyExclRsnCd',
hidden: true
},
{

Loading…
Cancel
Save