|
|
|
@ -1,5 +1,6 @@
|
|
|
|
|
package cokr.xit.fims.crdn.service.bean;
|
|
|
|
|
|
|
|
|
|
import java.util.ArrayList;
|
|
|
|
|
import java.util.HashMap;
|
|
|
|
|
import java.util.List;
|
|
|
|
|
import java.util.Map;
|
|
|
|
@ -12,6 +13,7 @@ import org.springframework.stereotype.Service;
|
|
|
|
|
import cokr.xit.base.file.FileInfo;
|
|
|
|
|
import cokr.xit.base.file.service.bean.FileBean;
|
|
|
|
|
import cokr.xit.fims.crdn.Crdn;
|
|
|
|
|
import cokr.xit.fims.crdn.dao.GlobalStngMapper;
|
|
|
|
|
import cokr.xit.fims.crdn.service.CrdnService;
|
|
|
|
|
import cokr.xit.fims.crdn.service.ImportService;
|
|
|
|
|
import cokr.xit.foundation.component.AbstractServiceBean;
|
|
|
|
@ -34,6 +36,9 @@ public class ImportServiceBean extends AbstractServiceBean implements ImportServ
|
|
|
|
|
private CrdnService crdnService;
|
|
|
|
|
@Resource(name = "crdnBean")
|
|
|
|
|
private CrdnBean crdnBean;
|
|
|
|
|
@Resource(name = "globalStngMapper")
|
|
|
|
|
private GlobalStngMapper globalStngMapper;
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public int createCrdns(List<String> interfaceSequences) {
|
|
|
|
|
List<Petition> petitions = smgBean.getPetitions(interfaceSequences);
|
|
|
|
@ -75,9 +80,27 @@ public class ImportServiceBean extends AbstractServiceBean implements ImportServ
|
|
|
|
|
|
|
|
|
|
if(entType.equals("이노")) {
|
|
|
|
|
|
|
|
|
|
//1. 연계파일정보 to Crdn
|
|
|
|
|
|
|
|
|
|
//2. 차적
|
|
|
|
|
crdn.setCrdnYmd(globalStngMapper.selectSggCdForCurrentUser());
|
|
|
|
|
crdn.setVhrno("47너7721");
|
|
|
|
|
crdn.setCrdnYmd("20230922");
|
|
|
|
|
|
|
|
|
|
List<Crdn> crdns = new ArrayList<Crdn>();
|
|
|
|
|
crdns.add(crdn);
|
|
|
|
|
importBean.setVehicleInfo(crdns);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//3.등록
|
|
|
|
|
//saved = crdnBean.create(null, c, null);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//resultMap.put("alertMessage", "년 월 일로 말소된 차량입니다.");
|
|
|
|
|
|
|
|
|
|
//resultMap.put("failReason", "");
|
|
|
|
|
|
|
|
|
|
return resultMap;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|