From 688465893b27f1bb2082b3f155a45f8d14ad58ae Mon Sep 17 00:00:00 2001 From: leebeomjun Date: Mon, 23 Oct 2023 11:32:49 +0900 Subject: [PATCH] =?UTF-8?q?=EB=8B=A8=EC=86=8D=EC=97=B0=EA=B3=84=ED=8C=8C?= =?UTF-8?q?=EC=9D=BC=EB=93=B1=EB=A1=9D=EC=8B=9C=20=EB=8B=A8=EC=86=8D?= =?UTF-8?q?=EC=9E=A5=EB=B9=84=EB=AA=85=EA=B3=BC=20=EB=8B=A8=EC=86=8D?= =?UTF-8?q?=ED=8C=80=EB=AA=85=20=EB=A7=A4=ED=95=91=20=EC=B2=98=EB=A6=AC=20?= =?UTF-8?q?=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../crdn/service/bean/ImportServiceBean.java | 22 +++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) 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 9c705b30..a16648a7 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 @@ -20,6 +20,8 @@ import cokr.xit.base.file.web.FileInfoFactory; import cokr.xit.base.user.ManagedUser; import cokr.xit.base.user.dao.UserMapper; import cokr.xit.fims.crdn.Crdn; +import cokr.xit.fims.crdn.Team; +import cokr.xit.fims.crdn.dao.CrdnTeamMapper; import cokr.xit.fims.crdn.dao.GlobalStngMapper; import cokr.xit.fims.crdn.parsing.SingleFileParser; import cokr.xit.fims.crdn.service.CrdnService; @@ -48,7 +50,8 @@ public class ImportServiceBean extends AbstractServiceBean implements ImportServ private GlobalStngMapper globalStngMapper; @Resource(name="userMapper") protected UserMapper userMapper; - + @Resource(name = "crdnTeamMapper") + private CrdnTeamMapper crdnTeamMapper; @Override public int createCrdns(List interfaceSequences) { @@ -143,7 +146,22 @@ public class ImportServiceBean extends AbstractServiceBean implements ImportServ crdn.setMoscX(metaFileInfo.string("MOSC_X")); crdn.setMoscY(metaFileInfo.string("MOSC_Y")); - //metaFileInfo.string("EQPMNT_CD"); + if(crdn.getTaskSeCd().equals("PVS") || crdn.getTaskSeCd().equals("BPV")) { + if(!crdn.getCrdnSeCd().equals("") && !metaFileInfo.string("EQPMNT_CD").equals("")) { + + Team team = new Team(); + team.setSggCd(crdn.getSggCd()); + team.setTaskSeCd(taskSeCd); + team.setTeamNm(metaFileInfo.string("EQPMNT_CD")); + DataObject teamInfo = crdnTeamMapper.selectTeamInfoByName(team); + + if(teamInfo != null && crdn.getCrdnSeCd().equals(teamInfo.string("CRDN_SE_CD"))) { + crdn.setTeamId(teamInfo.string("TEAM_ID")); + } + + } + } + //metaFileInfo.string("PLATE_WIDTH"); //metaFileInfo.string("PLATE_HEIGHT");