|
|
@ -1,13 +1,18 @@
|
|
|
|
package cokr.xit.fims.cmmn.service.bean;
|
|
|
|
package cokr.xit.fims.cmmn.service.bean;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import java.util.ArrayList;
|
|
|
|
|
|
|
|
import java.util.HashMap;
|
|
|
|
import java.util.List;
|
|
|
|
import java.util.List;
|
|
|
|
|
|
|
|
import java.util.Map;
|
|
|
|
|
|
|
|
import java.util.Optional;
|
|
|
|
|
|
|
|
|
|
|
|
import javax.annotation.Resource;
|
|
|
|
import javax.annotation.Resource;
|
|
|
|
|
|
|
|
|
|
|
|
import org.springframework.stereotype.Component;
|
|
|
|
import org.springframework.stereotype.Component;
|
|
|
|
|
|
|
|
|
|
|
|
import cokr.xit.fims.cmmn.OtptStngQuery;
|
|
|
|
import cokr.xit.fims.cmmn.OutsourcingStngQuery;
|
|
|
|
import cokr.xit.fims.cmmn.dao.OutsourcingStngMapper;
|
|
|
|
import cokr.xit.fims.cmmn.dao.OutsourcingStngMapper;
|
|
|
|
|
|
|
|
import cokr.xit.fims.cmmn.pdf.extraction.PredefinedSet;
|
|
|
|
import cokr.xit.foundation.AbstractComponent;
|
|
|
|
import cokr.xit.foundation.AbstractComponent;
|
|
|
|
import cokr.xit.foundation.data.DataObject;
|
|
|
|
import cokr.xit.foundation.data.DataObject;
|
|
|
|
|
|
|
|
|
|
|
@ -18,7 +23,68 @@ public class OutsourcingStngBean extends AbstractComponent {
|
|
|
|
private OutsourcingStngMapper outsourcingStngMapper;
|
|
|
|
private OutsourcingStngMapper outsourcingStngMapper;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public List<DataObject> getArtclStngList(OtptStngQuery query){
|
|
|
|
public List<DataObject> getArtclStngList(OutsourcingStngQuery query){
|
|
|
|
return outsourcingStngMapper.selectArtclStngList(query);
|
|
|
|
return outsourcingStngMapper.selectArtclStngList(query);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public Map<String, Object> getArtclStngMap(OutsourcingStngQuery query) {
|
|
|
|
|
|
|
|
Map<String,Object> outsourcingStngMap = new HashMap<String,Object>();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
List<PredefinedSet> predefinedSetList = new ArrayList<>();
|
|
|
|
|
|
|
|
predefinedSetList.add(new PredefinedSet("SNDNG_DTL_ID", "발송상세아이디"));
|
|
|
|
|
|
|
|
predefinedSetList.add(new PredefinedSet("VLTN_LAW_NM", "위반법명"));
|
|
|
|
|
|
|
|
predefinedSetList.add(new PredefinedSet("BARCODE", "바코드"));
|
|
|
|
|
|
|
|
predefinedSetList.add(new PredefinedSet("CRDN_DT", "단속일시"));
|
|
|
|
|
|
|
|
predefinedSetList.add(new PredefinedSet("DUDT_YMD", "납부기한"));
|
|
|
|
|
|
|
|
predefinedSetList.add(new PredefinedSet("VHRNO", "차량번호"));
|
|
|
|
|
|
|
|
predefinedSetList.add(new PredefinedSet("FFNLG_CARMDL_NM", "과태료차종명"));
|
|
|
|
|
|
|
|
predefinedSetList.add(new PredefinedSet("VHCL_NM", "차량명"));
|
|
|
|
|
|
|
|
predefinedSetList.add(new PredefinedSet("CRDN_PLC", "단속장소"));
|
|
|
|
|
|
|
|
predefinedSetList.add(new PredefinedSet("RTPYR_ADDR", "납부자기본주소"));
|
|
|
|
|
|
|
|
predefinedSetList.add(new PredefinedSet("RTPYR_DTL_ADDR", "납부자상세주소"));
|
|
|
|
|
|
|
|
predefinedSetList.add(new PredefinedSet("RTPYR_ZIP", "납부자우편번호"));
|
|
|
|
|
|
|
|
predefinedSetList.add(new PredefinedSet("RTPYR_NM", "납부자명"));
|
|
|
|
|
|
|
|
predefinedSetList.add(new PredefinedSet("CRDN_SE_NM", "단속구분명"));
|
|
|
|
|
|
|
|
predefinedSetList.add(new PredefinedSet("ATCH_FILE_CNT", "첨부파일갯수"));
|
|
|
|
|
|
|
|
predefinedSetList.add(new PredefinedSet("FFNLG_CRDN_AMT", "과태료단속금액"));
|
|
|
|
|
|
|
|
predefinedSetList.add(new PredefinedSet("SUM_AMT", "합계금액"));
|
|
|
|
|
|
|
|
predefinedSetList.add(new PredefinedSet("RG_NO", "등기번호"));
|
|
|
|
|
|
|
|
predefinedSetList.add(new PredefinedSet("OCR0", "OCR0"));
|
|
|
|
|
|
|
|
predefinedSetList.add(new PredefinedSet("OCR0_1", "OCR0_1"));
|
|
|
|
|
|
|
|
predefinedSetList.add(new PredefinedSet("OCR0_2", "OCR0_2"));
|
|
|
|
|
|
|
|
predefinedSetList.add(new PredefinedSet("OCR_BAND1", "OCR_BAND1"));
|
|
|
|
|
|
|
|
predefinedSetList.add(new PredefinedSet("OCR_BAND2", "OCR_BAND2"));
|
|
|
|
|
|
|
|
predefinedSetList.add(new PredefinedSet("BANK_NM", "가상계좌은행명"));
|
|
|
|
|
|
|
|
predefinedSetList.add(new PredefinedSet("VR_ACTNO", "가상계좌"));
|
|
|
|
|
|
|
|
predefinedSetList.add(new PredefinedSet("EPAYNO", "전자납부번호"));
|
|
|
|
|
|
|
|
predefinedSetList.add(new PredefinedSet("EMPTY", "공백"));
|
|
|
|
|
|
|
|
outsourcingStngMap.put("predefinedSetList", predefinedSetList);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//
|
|
|
|
|
|
|
|
List<DataObject> outsourcingArtclStngList = outsourcingStngMapper.selectArtclStngList(query);
|
|
|
|
|
|
|
|
if(outsourcingArtclStngList == null) {
|
|
|
|
|
|
|
|
outsourcingArtclStngList = new ArrayList<DataObject>();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
for(DataObject outsourcingArtclStng : outsourcingArtclStngList) {
|
|
|
|
|
|
|
|
String outsourcingArtclNm = (String) outsourcingArtclStng.get("ARTCL_NM");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Optional<PredefinedSet> optional = predefinedSetList.stream()
|
|
|
|
|
|
|
|
.filter(item -> item.getExtrArtclNm().equals(outsourcingArtclNm)).findFirst();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if(optional.isEmpty()) {
|
|
|
|
|
|
|
|
outsourcingArtclStng.set("DSCRP", outsourcingArtclStng.get("ARTCL_NM"));
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
PredefinedSet predefinedSet = optional.get();
|
|
|
|
|
|
|
|
outsourcingArtclStng.set("DSCRP", predefinedSet.getExtrArtclDscrp());
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
outsourcingStngMap.put("dataList", outsourcingArtclStngList);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return outsourcingStngMap;
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|