From ec753a758b65520df64f62ccc03525bc874b229a Mon Sep 17 00:00:00 2001 From: leebeomjun Date: Thu, 8 Feb 2024 16:11:07 +0900 Subject: [PATCH] =?UTF-8?q?=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../service/StngService.java} | 10 ++++------ .../service/bean/StngServiceBean.java} | 16 +++++++++------- .../cokr/xit/fims/mngt/web/Mngt03Controller.java | 10 +++++----- 3 files changed, 18 insertions(+), 18 deletions(-) rename src/main/java/cokr/xit/fims/{mngt/service/TaskVltnService.java => cmmn/service/StngService.java} (75%) rename src/main/java/cokr/xit/fims/{mngt/service/bean/TaskVltnServiceBean.java => cmmn/service/bean/StngServiceBean.java} (85%) diff --git a/src/main/java/cokr/xit/fims/mngt/service/TaskVltnService.java b/src/main/java/cokr/xit/fims/cmmn/service/StngService.java similarity index 75% rename from src/main/java/cokr/xit/fims/mngt/service/TaskVltnService.java rename to src/main/java/cokr/xit/fims/cmmn/service/StngService.java index 82c14979..e2cbf756 100644 --- a/src/main/java/cokr/xit/fims/mngt/service/TaskVltnService.java +++ b/src/main/java/cokr/xit/fims/cmmn/service/StngService.java @@ -1,12 +1,11 @@ -package cokr.xit.fims.mngt.service; +package cokr.xit.fims.cmmn.service; import java.util.List; import cokr.xit.fims.mngt.Task; import cokr.xit.fims.mngt.Vltn; -public interface TaskVltnService { - +public interface StngService { /**업무 설정, 위반 설정을 수정한다. * @param task 업무 설정, vltnList 위반 설정 * @return 저장 여부 @@ -14,7 +13,7 @@ public interface TaskVltnService { *
  • 그렇지 않으면 false
  • * */ - boolean update(Task task, List vltnList); + boolean updateTaskStng(Task task, List vltnList); /**시군구별 업무 설정, 위반 설정을 추가한다. * @param sggCd 시군구 코드, taskSeCd 업무구분 코드 @@ -23,6 +22,5 @@ public interface TaskVltnService { *
  • 그렇지 않으면 false
  • * */ - boolean create(String sggCd, String taskSeCd); - + boolean createTaskStng(String sggCd, String taskSeCd); } diff --git a/src/main/java/cokr/xit/fims/mngt/service/bean/TaskVltnServiceBean.java b/src/main/java/cokr/xit/fims/cmmn/service/bean/StngServiceBean.java similarity index 85% rename from src/main/java/cokr/xit/fims/mngt/service/bean/TaskVltnServiceBean.java rename to src/main/java/cokr/xit/fims/cmmn/service/bean/StngServiceBean.java index 461324bf..9f490864 100644 --- a/src/main/java/cokr/xit/fims/mngt/service/bean/TaskVltnServiceBean.java +++ b/src/main/java/cokr/xit/fims/cmmn/service/bean/StngServiceBean.java @@ -1,4 +1,4 @@ -package cokr.xit.fims.mngt.service.bean; +package cokr.xit.fims.cmmn.service.bean; import java.util.ArrayList; import java.util.List; @@ -9,15 +9,16 @@ import org.springframework.stereotype.Service; import cokr.xit.base.code.service.CodeQuery; import cokr.xit.base.code.service.bean.CodeBean; +import cokr.xit.fims.cmmn.service.StngService; import cokr.xit.fims.mngt.Task; import cokr.xit.fims.mngt.Vltn; -import cokr.xit.fims.mngt.service.TaskVltnService; +import cokr.xit.fims.mngt.service.bean.TaskBean; +import cokr.xit.fims.mngt.service.bean.VltnBean; import cokr.xit.foundation.component.AbstractServiceBean; import cokr.xit.foundation.data.DataObject; -@Service("taskVltnService") -public class TaskVltnServiceBean extends AbstractServiceBean implements TaskVltnService { - +@Service("stngService") +public class StngServiceBean extends AbstractServiceBean implements StngService { /** 업무 정보 Bean */ @Resource(name = "taskBean") private TaskBean taskBean; @@ -30,7 +31,7 @@ public class TaskVltnServiceBean extends AbstractServiceBean implements TaskVltn private CodeBean codeBean; @Override - public boolean update(Task task, List vltnList) { + public boolean updateTaskStng(Task task, List vltnList) { boolean result = taskBean.update(task); if(!result) { @@ -48,7 +49,7 @@ public class TaskVltnServiceBean extends AbstractServiceBean implements TaskVltn } @Override - public boolean create(String sggCd, String taskSeCd) { + public boolean createTaskStng(String sggCd, String taskSeCd) { Task task = new Task(); task.setSggCd(sggCd); task.setTaskSeCd(taskSeCd); @@ -97,4 +98,5 @@ public class TaskVltnServiceBean extends AbstractServiceBean implements TaskVltn return result; } + } diff --git a/src/main/java/cokr/xit/fims/mngt/web/Mngt03Controller.java b/src/main/java/cokr/xit/fims/mngt/web/Mngt03Controller.java index 4e691382..c5185e3b 100644 --- a/src/main/java/cokr/xit/fims/mngt/web/Mngt03Controller.java +++ b/src/main/java/cokr/xit/fims/mngt/web/Mngt03Controller.java @@ -13,12 +13,12 @@ import org.springframework.web.servlet.ModelAndView; import cokr.xit.base.web.ApplicationController; import cokr.xit.fims.cmmn.CmmnQuery; +import cokr.xit.fims.cmmn.service.StngService; import cokr.xit.fims.mngt.FineIntegrationSigungu; import cokr.xit.fims.mngt.Task; import cokr.xit.fims.mngt.VltnQuery; import cokr.xit.fims.mngt.dao.FactionMapper; import cokr.xit.fims.mngt.service.FactionService; -import cokr.xit.fims.mngt.service.TaskVltnService; import cokr.xit.fims.mngt.service.bean.FactionBean; import cokr.xit.fims.mngt.service.bean.TaskBean; import cokr.xit.fims.mngt.service.bean.VltnBean; @@ -50,8 +50,8 @@ public class Mngt03Controller extends ApplicationController { private FactionService factionService; /** 업무 정보 서비스 */ - @Resource(name = "taskVltnService") - private TaskVltnService taskVltnService; + @Resource(name = "stngService") + private StngService stngService; /** 업무 정보 Bean */ @Resource(name = "taskBean") @@ -201,7 +201,7 @@ public class Mngt03Controller extends ApplicationController { public ModelAndView updateTaskStng(Task task) { ModelAndView mav = new ModelAndView("jsonView"); - boolean saved = taskVltnService.update(task, task.getVltnStngList()); + boolean saved = stngService.updateTaskStng(task, task.getVltnStngList()); mav.addObject("saved", saved); return mav; @@ -217,7 +217,7 @@ public class Mngt03Controller extends ApplicationController { public ModelAndView createTaskStng(String sggCd, String taskSeCd) { ModelAndView mav = new ModelAndView("jsonView"); - boolean saved = taskVltnService.create(sggCd, taskSeCd); + boolean saved = stngService.createTaskStng(sggCd, taskSeCd); mav.addObject("saved", saved); return mav;