컬럼명 변경 : LINK_TBL_NM -> LINK_NM

main
이범준 1 year ago
parent ad2ce75b3e
commit e8a0b1f8f4

@ -485,5 +485,5 @@ public class Crdn extends AbstractEntity {
/**
*
*/
private String linkTblNm;
private String linkNm;
}

@ -214,13 +214,13 @@ public class CrdnServiceBean extends AbstractServiceBean implements CrdnService
HWPFile resultFile = HWPReader.fromFile(resultPath);
String linkTblNm = dataObject.string("LINK_TBL_NM");
if(!linkTblNm.equals("")) {
String linkNm = dataObject.string("LINK_NM");
if(!linkNm.equals("")) {
FileQuery fileQuery = new FileQuery();
if(linkTblNm.equals("TB_ESB_INTERFACE")) {
if(linkNm.equals("TB_ESB_INTERFACE")) {
fileQuery.setInfoType("010");
} else if(linkTblNm.equals("TB_SAEOL")) {
} else if(linkNm.equals("TB_SAEOL")) {
fileQuery.setInfoType("020");
} else {
throw new RuntimeException("한글 파일 출력 중 오류가 발생하였습니다.");
@ -291,12 +291,12 @@ public class CrdnServiceBean extends AbstractServiceBean implements CrdnService
//동영상 존재 여부 확인
dataObject.set("videoExist", "N");
String linkTblNm = dataObject.string("LINK_TBL_NM");
if(!linkTblNm.equals("")) {
String linkNm = dataObject.string("LINK_NM");
if(!linkNm.equals("")) {
if(linkTblNm.equals("TB_ESB_INTERFACE")) {
if(linkNm.equals("TB_ESB_INTERFACE")) {
fileQuery.setInfoType("010");
} else if(linkTblNm.equals("TB_SAEOL")) {
} else if(linkNm.equals("TB_SAEOL")) {
fileQuery.setInfoType("020");
} else {
throw new RuntimeException("파일 조회 중 오류가 발생하였습니다.");

@ -137,6 +137,39 @@ public class Crdn01Controller extends ApplicationController {
mav.addObject("crdnInfo", json ? info : toJson(info));
mav.addObject("openerPageName", request.getParameter("openerPageName"));
String vltnByTask = "";
switch(urlTaskSeCd) {
case "PVS" -> { vltnByTask = "WEB002"; }
case "BPV" -> { vltnByTask = "FIM005"; }
case "DPV","ECA" -> { vltnByTask = "FIM006"; }
}
Map<String, List<CommonCode>> commonCodes = getCodesOf("FIM011","FIM053","LVS005",vltnByTask);
mav.addObject("FIM011List", commonCodes.get("FIM011"));
mav.addObject("FIM053List", commonCodes.get("FIM053"));
mav.addObject("LVS005List", commonCodes.get("LVS005"));
mav.addObject("VLTNList", commonCodes.get(vltnByTask));
switch(urlTaskSeCd) {
case "PVS" -> {
commonCodes = getCodesOf("FIM002","FIM007","FIM009");
mav.addObject("FIM002List", commonCodes.get("FIM002"));
mav.addObject("FIM007List", commonCodes.get("FIM007"));
mav.addObject("FIM009List", commonCodes.get("FIM009"));
}
case "BPV" -> {
commonCodes = getCodesOf("FIM002","FIM009");
mav.addObject("FIM002List", commonCodes.get("FIM002"));
mav.addObject("FIM009List", commonCodes.get("FIM009"));
}
case "DPV" -> {
commonCodes = getCodesOf("FIM034");
mav.addObject("FIM034List", commonCodes.get("FIM034"));
}
case "ECA" -> { }
}
return mav;
}

@ -58,7 +58,7 @@ public class Excl03ServiceBean extends AbstractServiceBean implements Excl03Serv
crdn.setTaskSeCd(infoCrdn.string("TASK_SE_CD")); // 업무 구분 코드
crdn.setCrdnRegSeCd("03"); // 단속 등록 구분 코드(FIM026) - 재 등록
crdn.setCrdnInptSeCd(infoCrdn.string("CRDN_INPT_SE_CD")); // 단속 입력 구분 코드
crdn.setLinkTblNm(infoCrdn.string("LINK_TBL_NM")); // 연계 테이블 명
crdn.setLinkNm(infoCrdn.string("LINK_NM")); // 연계 테이블 명
crdn.setLinkId(infoCrdn.string("LINK_ID")); // 연계 ID
crdn.setRtpyrId(infoCrdn.string("RTPYR_ID")); // 납부자 ID
crdn.setCrdnSeCd(infoCrdn.string("CRDN_SE_CD")); // 단속 구분 코드

@ -35,13 +35,13 @@ public class Sprt03ServiceBean extends AbstractServiceBean implements Sprt03Serv
CrdnQuery crdnQuery = new CrdnQuery();
crdnQuery.setCrdnId(crdnId);
DataObject cvlcptInfo = crdn01Mapper.selectCivilComplaintReceiptInitialDataInfo(crdnQuery);
String linkTblNm = cvlcptInfo.string("LINK_TBL_NM");
if(!linkTblNm.equals("")) {
String linkNm = cvlcptInfo.string("LINK_NM");
if(!linkNm.equals("")) {
FileQuery fileQuery = new FileQuery();
if(linkTblNm.equals("TB_ESB_INTERFACE")) {
if(linkNm.equals("TB_ESB_INTERFACE")) {
fileQuery.setInfoType("010");
} else if(linkTblNm.equals("TB_SAEOL")) {
} else if(linkNm.equals("TB_SAEOL")) {
fileQuery.setInfoType("020");
} else {
throw new RuntimeException("파일 조회 중 오류가 발생하였습니다.");

@ -14,7 +14,7 @@ SELECT C.CRDN_ID <!-- 단속 ID -->
, C.TASK_SE_CD <!-- 업무 구분 코드 -->
, C.CRDN_REG_SE_CD <!-- 단속 등록 구분 코드 -->
, C.CRDN_INPT_SE_CD <!-- 단속 입력 구분 코드 -->
, C.LINK_TBL_NM <!-- 연계 테이블 명 -->
, C.LINK_NM <!-- 연계 테이블 명 -->
, C.LINK_ID <!-- 연계 ID -->
, C.CRDN_SE_CD <!-- 단속 구분 코드 -->
, C.RTPYR_ID <!-- 납부자 ID -->
@ -107,7 +107,7 @@ SELECT C.CRDN_ID <!-- 단속 ID -->
, C.DEL_DT
, C.DEL_RSN
FROM TB_CRDN C
INNER JOIN TB_CRDN_CVLCPT CC ON (C.LINK_TBL_NM IN ('TB_ESB_INTERFACE','TB_SAEOL') AND C.LINK_ID = CC.CVLCPT_LINK_ID)
INNER JOIN TB_CRDN_CVLCPT CC ON (C.LINK_NM IN ('TB_ESB_INTERFACE','TB_SAEOL') AND C.LINK_ID = CC.CVLCPT_LINK_ID)
LEFT OUTER JOIN TB_TEAM_INFO TI ON (C.TEAM_ID = TI.TEAM_ID)
LEFT OUTER JOIN TB_LEVY_EXCL LE ON (C.CRDN_ID = LE.CRDN_ID)
LEFT OUTER JOIN TB_LEVY L ON (C.LEVY_ID = L.LEVY_ID)
@ -162,7 +162,7 @@ SELECT C.CRDN_ID <!-- 단속 ID -->
, C.VHRNO <!-- 차량번호 -->
, C.CRDN_PLC
FROM TB_CRDN C
INNER JOIN TB_CRDN_CVLCPT CC ON (C.LINK_TBL_NM IN ('TB_ESB_INTERFACE','TB_SAEOL') AND C.LINK_ID = CC.CVLCPT_LINK_ID)
INNER JOIN TB_CRDN_CVLCPT CC ON (C.LINK_NM IN ('TB_ESB_INTERFACE','TB_SAEOL') AND C.LINK_ID = CC.CVLCPT_LINK_ID)
WHERE C.DEL_YN = 'N'
AND C.TASK_SE_CD = #{taskSeCd}
AND C.CRDN_STTS_CD = '01'
@ -219,7 +219,7 @@ SELECT C.CRDN_ID <!-- 단속 ID -->
, LE.LEVY_EXCL_RSN_CD
, C.ETC_CN
FROM TB_CRDN C
INNER JOIN TB_CRDN_CVLCPT CC ON (C.LINK_TBL_NM IN ('TB_ESB_INTERFACE','TB_SAEOL') AND C.LINK_ID = CC.CVLCPT_LINK_ID)
INNER JOIN TB_CRDN_CVLCPT CC ON (C.LINK_NM IN ('TB_ESB_INTERFACE','TB_SAEOL') AND C.LINK_ID = CC.CVLCPT_LINK_ID)
LEFT OUTER JOIN TB_LEVY_EXCL LE ON (C.CRDN_ID = LE.CRDN_ID)
WHERE C.DEL_YN = 'N'
AND C.TASK_SE_CD = #{taskSeCd}
@ -283,7 +283,7 @@ SELECT C.CRDN_ID <!-- 단속 ID -->
, CC.CVLCPT_APLY_CN <!-- 민원 신청 내용 -->
, CC.CVLCPT_APLY_SE_CD <!-- 민원 신청 구분코드 -->
FROM TB_CRDN C
INNER JOIN TB_CRDN_CVLCPT CC ON (C.LINK_TBL_NM IN ('TB_ESB_INTERFACE','TB_SAEOL') AND C.LINK_ID = CC.CVLCPT_LINK_ID)
INNER JOIN TB_CRDN_CVLCPT CC ON (C.LINK_NM IN ('TB_ESB_INTERFACE','TB_SAEOL') AND C.LINK_ID = CC.CVLCPT_LINK_ID)
WHERE C.DEL_YN = 'N' AND CC.DEL_YN = 'N'
AND C.CRDN_ID = #{crdnId}
</select>
@ -296,10 +296,10 @@ SELECT C.CRDN_ID <!-- 단속 ID -->
, CC.CVLCPT_RCPT_YMD <!-- 민원 접수 일자 -->
, CC.CVLCPT_PRCS_PRNMNT_DT <!-- 민원 처리 예정 일시 -->
, CC.CVLCPT_APLY_CN <!-- 민원 신청 내용 -->
, C.LINK_TBL_NM <!-- 연계 테이블 명 -->
, C.LINK_NM <!-- 연계 테이블 명 -->
, C.LINK_ID <!-- 연계 ID -->
FROM TB_CRDN C
INNER JOIN TB_CRDN_CVLCPT CC ON (C.LINK_TBL_NM IN ('TB_ESB_INTERFACE','TB_SAEOL') AND C.LINK_ID = CC.CVLCPT_LINK_ID)
INNER JOIN TB_CRDN_CVLCPT CC ON (C.LINK_NM IN ('TB_ESB_INTERFACE','TB_SAEOL') AND C.LINK_ID = CC.CVLCPT_LINK_ID)
WHERE C.DEL_YN = 'N' AND CC.DEL_YN = 'N'
AND C.CRDN_ID = #{crdnId}
</select>
@ -310,7 +310,7 @@ SELECT C.CRDN_ID <!-- 단속 ID -->
, CC.CVLCPT_APLY_CN <!-- 민원 신청 내용 -->
, CC.CVLCPT_PRCS_RSLT_CN
FROM TB_CRDN C
INNER JOIN TB_CRDN_CVLCPT CC ON (C.LINK_TBL_NM IN ('TB_ESB_INTERFACE','TB_SAEOL') AND C.LINK_ID = CC.CVLCPT_LINK_ID)
INNER JOIN TB_CRDN_CVLCPT CC ON (C.LINK_NM IN ('TB_ESB_INTERFACE','TB_SAEOL') AND C.LINK_ID = CC.CVLCPT_LINK_ID)
WHERE C.DEL_YN = 'N'
AND C.CRDN_ID = #{crdnId}
</select>
@ -346,10 +346,10 @@ SELECT C.CRDN_ID <!-- 단속 ID -->
, C.VHCL_COLOR <!-- 차량색상 -->
, C.USE_FUEL_CD <!-- 사용 연료 코드 -->
, C.VIN <!-- 차대번호 -->
, C.LINK_TBL_NM <!-- 연계 테이블 명 -->
, C.LINK_NM <!-- 연계 테이블 명 -->
, C.LINK_ID <!-- 연계 아이디 -->
FROM TB_CRDN C
INNER JOIN TB_CRDN_CVLCPT CC ON (C.LINK_TBL_NM IN ('TB_ESB_INTERFACE','TB_SAEOL') AND C.LINK_ID = CC.CVLCPT_LINK_ID)
INNER JOIN TB_CRDN_CVLCPT CC ON (C.LINK_NM IN ('TB_ESB_INTERFACE','TB_SAEOL') AND C.LINK_ID = CC.CVLCPT_LINK_ID)
LEFT OUTER JOIN TB_PAYER P ON (C.RTPYR_ID = P.RTPYR_ID)
WHERE C.DEL_YN = 'N'
AND C.CRDN_ID = #{crdnId}

@ -107,7 +107,7 @@ INSERT INTO TB_CRDN (
, DLTR <!-- 삭제자 -->
, DEL_RSN <!-- 삭제 사유 -->
, TASK_SE_CD <!-- 업무 구분 코드 -->
, LINK_TBL_NM <!-- 연계 테이블 명 -->
, LINK_NM <!-- 연계 테이블 명 -->
) VALUES (
#{crdnId} <!-- 단속 ID -->
, (SELECT SGG_CD FROM TB_SGG_INFO WHERE INST_CD = #{institute}) <!-- 시군구 코드 -->
@ -184,7 +184,7 @@ INSERT INTO TB_CRDN (
, #{removedBy} <!-- 삭제자 -->
, #{delRsn} <!-- 삭제 사유 -->
, #{taskSeCd} <!-- 업무 구분 코드 -->
, #{linkTblNm} <!-- 연계 테이블 명 -->
, #{linkNm} <!-- 연계 테이블 명 -->
)
</insert>

@ -104,7 +104,7 @@ SELECT C.CRDN_ID <!-- 단속 ID -->
, C.TASK_SE_CD <!-- 업무 구분 코드 -->
, C.CRDN_REG_SE_CD <!-- 단속 등록 구분 코드 -->
, C.CRDN_INPT_SE_CD <!-- 단속 입력 구분 코드 -->
, C.LINK_TBL_NM <!-- 연계 테이블 명 -->
, C.LINK_NM <!-- 연계 테이블 명 -->
, C.LINK_ID <!-- 연계 ID -->
, C.CRDN_SE_CD <!-- 단속 구분 코드 -->
, C.RTPYR_ID <!-- 납부자 ID -->
@ -197,7 +197,7 @@ SELECT C.CRDN_ID <!-- 단속 ID -->
, C.DEL_DT
, C.DEL_RSN
FROM TB_CRDN C
LEFT OUTER JOIN TB_CRDN_CVLCPT CC ON (C.LINK_TBL_NM IN ('TB_ESB_INTERFACE','TB_SAEOL') AND C.LINK_ID = CC.CVLCPT_LINK_ID)
LEFT OUTER JOIN TB_CRDN_CVLCPT CC ON (C.LINK_NM IN ('TB_ESB_INTERFACE','TB_SAEOL') AND C.LINK_ID = CC.CVLCPT_LINK_ID)
LEFT OUTER JOIN TB_TEAM_INFO TI ON (C.TEAM_ID = TI.TEAM_ID)
LEFT OUTER JOIN TB_LEVY_EXCL LE ON (C.CRDN_ID = LE.CRDN_ID)
LEFT OUTER JOIN TB_LEVY L ON (C.LEVY_ID = L.LEVY_ID)
@ -398,7 +398,7 @@ SELECT C.CRDN_ID <!-- 단속 ID -->
, C.ATCH_FILE_CNT <!-- 사진건수 -->
, C.CRDN_SN <!-- 단속 일련번호 -->
FROM TB_CRDN C
LEFT OUTER JOIN TB_CRDN_CVLCPT CC ON (C.LINK_TBL_NM IN ('TB_ESB_INTERFACE','TB_SAEOL') AND C.LINK_ID = CC.CVLCPT_LINK_ID)
LEFT OUTER JOIN TB_CRDN_CVLCPT CC ON (C.LINK_NM IN ('TB_ESB_INTERFACE','TB_SAEOL') AND C.LINK_ID = CC.CVLCPT_LINK_ID)
LEFT OUTER JOIN TB_TEAM_INFO TI ON (C.TEAM_ID = TI.TEAM_ID)
WHERE C.DEL_YN = 'N'
AND C.TASK_SE_CD = 'DPV'

@ -184,7 +184,7 @@
, A.TASK_SE_CD
, A.CRDN_REG_SE_CD
, A.CRDN_INPT_SE_CD
, A.LINK_TBL_NM
, A.LINK_NM
, A.LINK_ID
, A.RTPYR_ID
, A.CRDN_SE_CD

Loading…
Cancel
Save