|
|
|
@ -19,6 +19,7 @@ import cokr.xit.fims.cvlc.dao.CrdnCvlcptMapper;
|
|
|
|
|
import cokr.xit.fims.payer.Payer;
|
|
|
|
|
import cokr.xit.fims.payer.service.bean.PayerBean;
|
|
|
|
|
import cokr.xit.foundation.AbstractComponent;
|
|
|
|
|
import cokr.xit.foundation.data.DataObject;
|
|
|
|
|
import cokr.xit.foundation.util.DateFormats;
|
|
|
|
|
import cokr.xit.interfaces.lvis.service.bean.VehicleInfoBean;
|
|
|
|
|
import cokr.xit.interfaces.lvis.service.reg.BasicInfoRequest;
|
|
|
|
@ -99,7 +100,10 @@ public class ImportBean extends AbstractComponent {
|
|
|
|
|
.collect(Collectors.groupingBy(map -> map.get("vehicleNo"))); //차량번호별 단속정보
|
|
|
|
|
List<String> vehicleNos = List.copyOf(byVehicleNo.keySet());
|
|
|
|
|
|
|
|
|
|
String taskCd = importMapper.selectTaskCd(petition.getPetiTitleV() + " " + petition.getPetiReasonL()); //업무 구분(FIM054)
|
|
|
|
|
DataObject codes = importMapper.selectViolationCodes(petition.getPetiTitleV() + " " + petition.getPetiReasonL());
|
|
|
|
|
String
|
|
|
|
|
taskCode = codes.string("TASK_CD"),
|
|
|
|
|
violationCode = codes.string("VLTN_CD");
|
|
|
|
|
|
|
|
|
|
return byVehicleNo.entrySet().stream()
|
|
|
|
|
.map(entry -> {
|
|
|
|
@ -110,7 +114,7 @@ public class ImportBean extends AbstractComponent {
|
|
|
|
|
String instDept = petition.getPcdAncCodeV() + "-" + petition.getPcdDeptV(),
|
|
|
|
|
sgg = sggs.get(instDept);
|
|
|
|
|
crdn.setSggCd(sgg);
|
|
|
|
|
crdn.setTaskSeCd(taskCd);
|
|
|
|
|
crdn.setTaskSeCd(taskCode);
|
|
|
|
|
|
|
|
|
|
crdn.setCrdnRegSeCd(first ? "02" : "04"); // 첫번째면 자동등록, 아니면 복사등록 (FIM026)
|
|
|
|
|
crdn.setCrdnInptSeCd("14"); // 국민신문고 연계 (FIM003)
|
|
|
|
@ -150,7 +154,7 @@ public class ImportBean extends AbstractComponent {
|
|
|
|
|
crdn.setOpnnSbmsnYn("N");
|
|
|
|
|
crdn.setCrdnSttsCd("01");
|
|
|
|
|
|
|
|
|
|
crdn.setVltnCd(violation.getCode());
|
|
|
|
|
crdn.setVltnCd(violationCode);
|
|
|
|
|
|
|
|
|
|
crdn.setAtchFileCnt(petition.getAttachmentCount());
|
|
|
|
|
return crdn;
|
|
|
|
|