From 853c8826ebfd60d70d8a80f5c1b9ea4146e9bf30 Mon Sep 17 00:00:00 2001 From: leebeomjun Date: Wed, 3 Jan 2024 17:52:52 +0900 Subject: [PATCH] =?UTF-8?q?=EC=8B=9C=EA=B5=B0=EA=B5=AC=EA=B4=80=EB=A6=AC,?= =?UTF-8?q?=EB=B6=80=EC=84=9C=EA=B4=80=EB=A6=AC=20=EC=BB=A8=ED=8A=B8?= =?UTF-8?q?=EB=A1=A4=EB=9F=AC=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../xit/fims/mngt/web/Mngt03Controller.java | 60 ++++++++++++++++++ .../xit/fims/mngt/web/Mngt04Controller.java | 32 ++++++++++ .../cokr/xit/fims/task/web/CmnController.java | 37 +++++++++++ .../sql/mapper/fims/cmmn/stng-mapper.xml | 16 +++-- .../sql/mapper/fims/cmmn/vltn-mapper.xml | 2 + .../WEB-INF/jsp/fims/crdn/crdn05020-info.jsp | 2 +- .../WEB-INF/jsp/fims/mngt/mngt03010-main.jsp | 4 ++ .../WEB-INF/jsp/fims/mngt/mngt04010-main.jsp | 4 ++ src/main/webapp/resources/image/no-image.png | Bin 0 -> 2259 bytes 9 files changed, 150 insertions(+), 7 deletions(-) create mode 100644 src/main/java/cokr/xit/fims/mngt/web/Mngt03Controller.java create mode 100644 src/main/java/cokr/xit/fims/mngt/web/Mngt04Controller.java create mode 100644 src/main/webapp/WEB-INF/jsp/fims/mngt/mngt03010-main.jsp create mode 100644 src/main/webapp/WEB-INF/jsp/fims/mngt/mngt04010-main.jsp create mode 100644 src/main/webapp/resources/image/no-image.png diff --git a/src/main/java/cokr/xit/fims/mngt/web/Mngt03Controller.java b/src/main/java/cokr/xit/fims/mngt/web/Mngt03Controller.java new file mode 100644 index 00000000..78c1e98a --- /dev/null +++ b/src/main/java/cokr/xit/fims/mngt/web/Mngt03Controller.java @@ -0,0 +1,60 @@ +package cokr.xit.fims.mngt.web; + +import java.util.List; + +import javax.annotation.Resource; + +import org.springframework.web.servlet.ModelAndView; + +import cokr.xit.base.web.ApplicationController; +import cokr.xit.fims.cmmn.CmmnQuery; +import cokr.xit.fims.cmmn.VltnQuery; +import cokr.xit.fims.cmmn.service.TaskService; +import cokr.xit.fims.cmmn.service.VltnService; + +/**시군구관리 서비스 웹 컨트롤러.
+ * {웹 컨텍스트}/mngt/mngt03 로 접근할 수 있다. + * @author leebj + */ +public class Mngt03Controller extends ApplicationController { + + public static final String CLASS_URL = "/mngt/mngt03"; + + public class METHOD_URL { + public static final String + sggMngtMain = "/010/main.do", + getTasks = "/getTasks.do", + getVltns = "/getVltns.do" + ; + } + + /** 업무 정보 서비스 */ + @Resource(name = "taskService") + private TaskService taskService; + + /**위반 정보 서비스*/ + @Resource(name = "vltnService") + private VltnService vltnService; + + /** 시군구관리 메인화면을 연다. + * @return fims/mngt/mngt03010-main + */ + public ModelAndView sggMngtMain() { + ModelAndView mav = new ModelAndView(); + mav.setViewName("fims/mngt/mngt03010-main"); + mav.addObject("pageName", "mngt03010-main"); + + return mav; + } + + public ModelAndView getTasks(CmmnQuery req) { + List result = taskService.getTasks(req); + + return setCollectionInfo(new ModelAndView("jsonView"), result, "task"); + } + + public ModelAndView getVltns(VltnQuery req) { + List result = vltnService.getVltns(req); + return setCollectionInfo(new ModelAndView("jsonView"), result, "vltn"); + } +} diff --git a/src/main/java/cokr/xit/fims/mngt/web/Mngt04Controller.java b/src/main/java/cokr/xit/fims/mngt/web/Mngt04Controller.java new file mode 100644 index 00000000..aa5345d1 --- /dev/null +++ b/src/main/java/cokr/xit/fims/mngt/web/Mngt04Controller.java @@ -0,0 +1,32 @@ +package cokr.xit.fims.mngt.web; + +import org.springframework.web.servlet.ModelAndView; + +import cokr.xit.base.web.ApplicationController; + +/**부서관리 서비스 웹 컨트롤러.
+ * {웹 컨텍스트}/mngt/mngt04 로 접근할 수 있다. + * @author leebj + */ +public class Mngt04Controller extends ApplicationController { + + public static final String CLASS_URL = "/mngt/mngt04"; + + public class METHOD_URL { + public static final String + deptMngtMain = "/010/main.do" + ; + } + + + /** 부서관리 메인화면을 연다. + * @return fims/mngt/mngt04010-main + */ + public ModelAndView deptMngtMain() { + ModelAndView mav = new ModelAndView(); + mav.setViewName("fims/mngt/mngt04010-main"); + mav.addObject("pageName", "mngt04010-main"); + + return mav; + } +} diff --git a/src/main/java/cokr/xit/fims/task/web/CmnController.java b/src/main/java/cokr/xit/fims/task/web/CmnController.java index 297ea6eb..73ad3f9a 100644 --- a/src/main/java/cokr/xit/fims/task/web/CmnController.java +++ b/src/main/java/cokr/xit/fims/task/web/CmnController.java @@ -7,6 +7,8 @@ import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.multipart.MultipartFile; import org.springframework.web.servlet.ModelAndView; +import cokr.xit.fims.cmmn.CmmnQuery; +import cokr.xit.fims.cmmn.VltnQuery; import cokr.xit.fims.crdn.Crdn; import cokr.xit.fims.sprt.OtptForm; import cokr.xit.fims.sprt.OtptStngQuery; @@ -587,6 +589,41 @@ public class CmnController { } + @Controller + @RequestMapping(name="시군구 정보 관리", value=Mngt03Controller.CLASS_URL) + class Mngt03Controller extends cokr.xit.fims.mngt.web.Mngt03Controller { + + @Override + @RequestMapping(name="시군구 정보 관리 메인", value=METHOD_URL.sggMngtMain) + public ModelAndView sggMngtMain() { + return super.sggMngtMain(); + } + + @Override + @RequestMapping(name="업무 조회", value=METHOD_URL.getTasks) + public ModelAndView getTasks(CmmnQuery req) { + return super.getTasks(req); + } + + @Override + @RequestMapping(name="위반정보 조회", value=METHOD_URL.getVltns) + public ModelAndView getVltns(VltnQuery req) { + return super.getVltns(req); + } + } + + @Controller + @RequestMapping(name="부서 정보 관리", value=Mngt04Controller.CLASS_URL) + class Mngt04Controller extends cokr.xit.fims.mngt.web.Mngt04Controller { + + @Override + @RequestMapping(name="부서 정보 관리 메인", value=METHOD_URL.deptMngtMain) + public ModelAndView deptMngtMain() { + return super.deptMngtMain(); + } + + } + @Controller @RequestMapping(name="우편통합", value=Epst01Controller.CLASS_URL) class Epst01Controller extends cokr.xit.fims.epst.web.Epst01Controller { diff --git a/src/main/resources/sql/mapper/fims/cmmn/stng-mapper.xml b/src/main/resources/sql/mapper/fims/cmmn/stng-mapper.xml index 26aae079..02dc25a0 100644 --- a/src/main/resources/sql/mapper/fims/cmmn/stng-mapper.xml +++ b/src/main/resources/sql/mapper/fims/cmmn/stng-mapper.xml @@ -32,19 +32,23 @@ SELECT DEPT_CD /* 위반 정보 객체 가져오기(vltnMapper.selectVltns) */ WHERE V.SGG_CD = #{sggCd} + AND V.TASK_SE_CD = #{taskSeCd} + AND V.VLTN_ID = #{vltnId} diff --git a/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn05020-info.jsp b/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn05020-info.jsp index c44574f4..cf0f9d4f 100644 --- a/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn05020-info.jsp +++ b/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn05020-info.jsp @@ -60,7 +60,7 @@