From 5095c00ad622825d5a8755682f4226fce3e8a3d9 Mon Sep 17 00:00:00 2001 From: leebeomjun Date: Mon, 23 Oct 2023 10:06:47 +0900 Subject: [PATCH] =?UTF-8?q?=EB=8B=A8=EC=86=8D=ED=8C=80=20=EB=93=B1?= =?UTF-8?q?=EB=A1=9D,=EC=88=98=EC=A0=95=20=EA=B8=B0=EB=8A=A5=20=EC=B6=94?= =?UTF-8?q?=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../xit/fims/crdn/dao/CrdnTeamMapper.java | 20 ++++- .../fims/crdn/service/CrdnStngService.java | 7 ++ .../fims/crdn/service/bean/CrdnStngBean.java | 53 ++++++++++++- .../service/bean/CrdnStngServiceBean.java | 7 ++ .../xit/fims/crdn/web/Crdn07Controller.java | 26 +++++++ .../cokr/xit/fims/task/web/BpvController.java | 7 ++ .../cokr/xit/fims/task/web/PvsController.java | 9 ++- .../sql/mapper/fims/crdn/crdn-team-mapper.xml | 76 ++++++++++++++++++- .../WEB-INF/jsp/fims/crdn/crdn07010-main.jsp | 18 ++++- 9 files changed, 215 insertions(+), 8 deletions(-) diff --git a/src/main/java/cokr/xit/fims/crdn/dao/CrdnTeamMapper.java b/src/main/java/cokr/xit/fims/crdn/dao/CrdnTeamMapper.java index 1cdda9c4..8448d8cc 100644 --- a/src/main/java/cokr/xit/fims/crdn/dao/CrdnTeamMapper.java +++ b/src/main/java/cokr/xit/fims/crdn/dao/CrdnTeamMapper.java @@ -28,7 +28,25 @@ public interface CrdnTeamMapper extends AbstractMapper { * @param team 단속팀 정보 * @return 저장된 정보 수 */ - int removeTeamInfo(Team team); + int deleteTeamInfo(Team team); + + /**단속팀 정보를 등록한다.
+ * @param team 단속팀 정보 + * @return 단속팀 정보 + */ + int insertTeamInfo(Team team); + + /**단속팀 정보를 수정한다.
+ * @param team 단속팀 정보 + * @return 단속팀 정보 + */ + int updateTeamInfo(Team team); + + /**단속팀명으로 단속팀 정보를 조회한다.
+ * @param team 단속팀 정보 + * @return 단속팀 정보 + */ + DataObject selectTeamInfoByName(Team team); /**단속팀 정보를 조회한다.
* @param teamId 단속팀 ID diff --git a/src/main/java/cokr/xit/fims/crdn/service/CrdnStngService.java b/src/main/java/cokr/xit/fims/crdn/service/CrdnStngService.java index ce4b69c1..19ae2c31 100644 --- a/src/main/java/cokr/xit/fims/crdn/service/CrdnStngService.java +++ b/src/main/java/cokr/xit/fims/crdn/service/CrdnStngService.java @@ -4,6 +4,7 @@ import java.util.List; import cokr.xit.fims.crdn.CrdnQuery; import cokr.xit.fims.crdn.ExmptnVhcl; +import cokr.xit.fims.crdn.Team; import cokr.xit.fims.crdn.parsing.LayoutDescriptor; import cokr.xit.foundation.data.DataObject; @@ -33,6 +34,12 @@ public interface CrdnStngService { */ boolean removeTeamInfo(String teamId); + /** 단속팀 정보를 저장한다. + * @param team 단속팀 정보 + * @return 저장여부 + */ + boolean saveTeamInfo(Team team); + /** 단속팀 정보을 조회한다. * @param teamId 단속팀 ID * @return 단속팀 정보 diff --git a/src/main/java/cokr/xit/fims/crdn/service/bean/CrdnStngBean.java b/src/main/java/cokr/xit/fims/crdn/service/bean/CrdnStngBean.java index 8370f0d3..21593928 100644 --- a/src/main/java/cokr/xit/fims/crdn/service/bean/CrdnStngBean.java +++ b/src/main/java/cokr/xit/fims/crdn/service/bean/CrdnStngBean.java @@ -234,7 +234,7 @@ public class CrdnStngBean extends AbstractComponent { return crdnTeamMapper.selectRemovedTeamList(query); } - /**단속팀 정보를 등록한다. + /**단속팀 정보를 삭제한다. * @param teamId 단속팀 ID * @return 저장 여부 *