From 0ffd8dd0c4dcfc5464c14636fa091685b2ad85f4 Mon Sep 17 00:00:00 2001 From: leebeomjun Date: Fri, 22 Sep 2023 11:59:49 +0900 Subject: [PATCH] =?UTF-8?q?=EC=86=8C=EC=8A=A4=20=EC=A0=95=EB=A6=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../crdn/service/bean/ImportServiceBean.java | 23 +++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/src/main/java/cokr/xit/fims/crdn/service/bean/ImportServiceBean.java b/src/main/java/cokr/xit/fims/crdn/service/bean/ImportServiceBean.java index 02d6b711..e85c347b 100644 --- a/src/main/java/cokr/xit/fims/crdn/service/bean/ImportServiceBean.java +++ b/src/main/java/cokr/xit/fims/crdn/service/bean/ImportServiceBean.java @@ -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 interfaceSequences) { List 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 crdns = new ArrayList(); + crdns.add(crdn); + importBean.setVehicleInfo(crdns); + + //3.등록 + //saved = crdnBean.create(null, c, null); } + + //resultMap.put("alertMessage", "년 월 일로 말소된 차량입니다."); + + //resultMap.put("failReason", ""); + return resultMap; }