TB_CRDN 컬럼명 수정.

LINK_TBL_NM -> CVLCPT_LINK_TBL_NM
  LINK_ID -> CVLCPT_LINK_ID
main
xitpc\xituser 4 weeks ago
parent 4f0f044bbd
commit 0eb8c29f24

@ -132,8 +132,8 @@ public class ImportBean extends AbstractBean {
crdn.setCrdnRegSeCd(first ? "02" : "04"); // 첫번째면 자동등록, 아니면 복사등록 (FIM026)
crdn.setCrdnInptSeCd("14"); // 국민신문고 연계 (FIM003)
crdn.setLinkTblNm("TB_ESB_INTERFACE");
crdn.setLinkId(petition.getInterfaceSeqN());
crdn.setCvlcptLinkTblNm("TB_ESB_INTERFACE");
crdn.setCvlcptLinkId(petition.getInterfaceSeqN());
//crdn.setCrdnSeCd(null); // petition.getPetiPathGubunC() -> FIMS 코드로 변경

@ -58,13 +58,13 @@ public class ImportServiceBean extends AbstractServiceBean implements ImportServ
List<Crdn> crdns = importBean.createCrdns(petitions);
if (crdns.isEmpty()) return 0;
List<String> intfSeqs = crdns.stream().map(Crdn::getLinkId).toList();
List<String> intfSeqs = crdns.stream().map(Crdn::getCvlcptLinkId).toList();
List<FileInfo> smgFileInfoList = fileBean.getFilesOf("010", intfSeqs.toArray(new String[intfSeqs.size()]));
Map<String, List<FileInfo>> byInfoKey = smgFileInfoList.stream().collect(Collectors.groupingBy(FileInfo::getInfoKey));
for (Crdn crdn: crdns) {
List<FileInfo> files = byInfoKey.get(crdn.getLinkId());
List<FileInfo> files = byInfoKey.get(crdn.getCvlcptLinkId());
files.removeIf(item -> item.getMimeType().startsWith("video"));

@ -128,8 +128,8 @@ public class CrdnReRegBean extends AbstractBean {
crdn.setCrdnRegSeCd("03"); // 단속 등록 구분 코드(FIM026) - 재 등록
crdn.setCrdnInptSeCd(crdnInfo.string("CRDN_INPT_SE_CD")); // 단속 입력 구분 코드
crdn.setCvlcptLinkYn(crdnInfo.string("CVLCPT_LINK_YN")); // 민원 연계 여부
crdn.setLinkTblNm(crdnInfo.string("LINK_TBL_NM")); // 연계 테이블 명
crdn.setLinkId(crdnInfo.string("LINK_ID")); // 연계 ID
crdn.setCvlcptLinkTblNm(crdnInfo.string("CVLCPT_LINK_TBL_NM")); // 민원 연계 테이블 명
crdn.setCvlcptLinkId(crdnInfo.string("CVLCPT_LINK_ID")); // 민원 연계 ID
crdn.setCrdnYmd(crdnInfo.string("CRDN_YMD")); // 단속 일자
crdn.setCrdnTm(crdnInfo.string("CRDN_TM")); // 단속 시각
crdn.setVhrno(crdnInfo.string("VHRNO")); // 차량번호

Loading…
Cancel
Save