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

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

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

@ -249,7 +249,7 @@ public class FimsCrackdownMgtServiceBean extends AbstractServiceBean implements
&& Checks.isNotEmpty(saveDTO.getInterfaceSeqN())) { && Checks.isNotEmpty(saveDTO.getInterfaceSeqN())) {
updateCtznAndAnswer(saveDTO, infoDTO, FimsConst.CtznStmtDtlStsCode.NON_ACCEPTABLE.getCode(), 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 linkId;
private String sysSeCd; private String sysSeCd;
private String inptSeCd; private String inptSeCd;
private String erppId; private String levyExclId;
private String crdnSeCd; private String crdnSeCd;
private String crdnInptSeCd; private String crdnInptSeCd;

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

@ -204,7 +204,7 @@ public class RtDTO {
/** /**
* id * id
*/ */
private String erppId; private String levyExclId;
/** /**
* id * 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 , SUBSTR(tcc.cvlcpt_prcs_prnmnt_dt,1,8) AS cvlcpt_prcs_prnmnt_ymd
, tei.duty_id_v -- 담당자 , tei.duty_id_v -- 담당자
, tei.pcd_tel_v -- 담당자 전화번호 , tei.pcd_tel_v -- 담당자 전화번호
, tre.erpp_id , tre.levy_excl_id
, tre.erpp_se_code -- 서손구분코드 , tre.levy_excl_rsn_cd -- 서손구분코드
, tre.erpp_resn_detail -- 서손사유상세 , tre.etc_cn -- 서손사유상세
, trp.addr_se_cd -- 지번 도로 주소 구분 코드 , trp.addr_se_cd -- 지번 도로 주소 구분 코드
, trp.zip , trp.zip
, trp.addr , trp.addr
@ -87,7 +87,7 @@
ON tc.link_id = tcc.cvlcpt_link_id ON tc.link_id = tcc.cvlcpt_link_id
LEFT JOIN tb_esb_interface tei LEFT JOIN tb_esb_interface tei
ON tc.link_id = tei.interface_seq_n 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 ON tc.crdn_id = tre.crdn_id
LEFT JOIN tb_payer trp LEFT JOIN tb_payer trp
ON tc.rtpyr_id = trp.rtpyr_id ON tc.rtpyr_id = trp.rtpyr_id

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

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

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

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

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

@ -528,14 +528,14 @@ Date Author Description
<tr> <tr>
<th>처리일</th> <th>처리일</th>
<td colspan="4"> <td colspan="4">
<input type="text" id="erppProcessDe" name="erppProcessDe" readonly/> <input type="text" id="levyExclYmd" name="levyExclYmd" readonly/>
</td> </td>
</td> </td>
</tr> </tr>
<tr> <tr>
<th>서손사유</th> <th>서손사유</th>
<td colspan="4"> <td colspan="4">
<input type="text" id="erppSeCode" name="erppSeCode" readonly/> <input type="text" id="levyExclRsnCd" name="levyExclRsnCd" readonly/>
</td> </td>
</tr> </tr>
<tr> <tr>
@ -547,7 +547,7 @@ Date Author Description
<tr> <tr>
<th>특이사항</th> <th>특이사항</th>
<td colspan="4"> <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> </td>
</tr> </tr>
</table> </table>

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

@ -459,7 +459,7 @@
rowKey = GRID.store.data.rawData[0]?.rowKey; rowKey = GRID.store.data.rawData[0]?.rowKey;
} }
const rowDatas = GRID.store.data.rawData.map(d => { 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'; popupDiv = 'answerPreview';
@ -658,7 +658,7 @@
}, },
{ {
header: '서손사유', header: '서손사유',
name: 'erppResnDetail', //erppSeCode name: 'etcCn', //levyExclRsnCd
width: 80, width: 80,
sortable: false, sortable: false,
align: 'center' align: 'center'
@ -715,7 +715,7 @@
}, },
{ {
header: '서손ID', header: '서손ID',
name: 'erppId', name: 'levyExclId',
hidden: true hidden: true
}, },
{ {
@ -725,7 +725,7 @@
}, },
{ {
header: '서손사유코드', header: '서손사유코드',
name: 'erppSeCode', name: 'levyExclRsnCd',
hidden: true hidden: true
}, },
{ {

@ -455,7 +455,7 @@
rowKey = GRID.store.data.rawData[0]?.rowKey; rowKey = GRID.store.data.rawData[0]?.rowKey;
} }
const rowDatas = GRID.store.data.rawData.map(d => { 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'; popupDiv = 'answerPreview';
@ -654,7 +654,7 @@
}, },
{ {
header: '서손사유', header: '서손사유',
name: 'erppResnDetail', //erppSeCode name: 'etcCn', //levyExclRsnCd
width: 80, width: 80,
sortable: false, sortable: false,
align: 'center' align: 'center'
@ -711,7 +711,7 @@
}, },
{ {
header: '서손ID', header: '서손ID',
name: 'erppId', name: 'levyExclId',
hidden: true hidden: true
}, },
{ {
@ -721,7 +721,7 @@
}, },
{ {
header: '서손사유코드', header: '서손사유코드',
name: 'erppSeCode', name: 'levyExclRsnCd',
hidden: true hidden: true
}, },
{ {

@ -457,7 +457,7 @@
rowKey = GRID.store.data.rawData[0]?.rowKey; rowKey = GRID.store.data.rawData[0]?.rowKey;
} }
const rowDatas = GRID.store.data.rawData.map(d => { 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'; popupDiv = 'answerPreview';
@ -656,7 +656,7 @@
}, },
{ {
header: '서손사유', header: '서손사유',
name: 'erppResnDetail', //erppSeCode name: 'etcCn', //levyExclRsnCd
width: 80, width: 80,
sortable: false, sortable: false,
align: 'center' align: 'center'
@ -713,7 +713,7 @@
}, },
{ {
header: '서손ID', header: '서손ID',
name: 'erppId', name: 'levyExclId',
hidden: true hidden: true
}, },
{ {
@ -723,7 +723,7 @@
}, },
{ {
header: '서손사유코드', header: '서손사유코드',
name: 'erppSeCode', name: 'levyExclRsnCd',
hidden: true hidden: true
}, },
{ {

Loading…
Cancel
Save