From fe0abca40ddfea067b459e8d3eaa9ca4678ef942 Mon Sep 17 00:00:00 2001 From: leebeomjun Date: Mon, 15 Apr 2024 09:46:18 +0900 Subject: [PATCH] =?UTF-8?q?=EA=B3=BC=ED=83=9C=EB=A3=8C=EC=97=85=EB=AC=B4UR?= =?UTF-8?q?L=20=EC=96=B4=EB=85=B8=ED=85=8C=EC=9D=B4=EC=85=98=20=EC=88=98?= =?UTF-8?q?=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../xit/fims/crdn/web/Crdn06Controller.java | 24 +++++++++ src/main/java/cokr/xit/fims/task/Task.java | 2 +- .../TaskRequestMappingHandlerMapping.java | 3 ++ .../cokr/xit/fims/task/web/BpvController.java | 54 ------------------- .../cokr/xit/fims/task/web/CmnController.java | 13 ----- .../cokr/xit/fims/task/web/DpvController.java | 53 ------------------ .../cokr/xit/fims/task/web/EcaController.java | 47 ---------------- .../cokr/xit/fims/task/web/PvsController.java | 53 ------------------ 8 files changed, 28 insertions(+), 221 deletions(-) diff --git a/src/main/java/cokr/xit/fims/crdn/web/Crdn06Controller.java b/src/main/java/cokr/xit/fims/crdn/web/Crdn06Controller.java index 6f9a990d..ffbb0fda 100644 --- a/src/main/java/cokr/xit/fims/crdn/web/Crdn06Controller.java +++ b/src/main/java/cokr/xit/fims/crdn/web/Crdn06Controller.java @@ -7,6 +7,8 @@ import java.util.Map; import javax.annotation.Resource; import org.apache.poi.ss.usermodel.CellStyle; +import org.springframework.stereotype.Controller; +import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.servlet.ModelAndView; import cokr.xit.base.code.CommonCode; @@ -27,12 +29,15 @@ import cokr.xit.fims.crdn.CrdnQuery; import cokr.xit.fims.crdn.dao.CrdnStngMapper; import cokr.xit.fims.crdn.service.CrdnService; import cokr.xit.fims.crdn.service.CrdnStngService; +import cokr.xit.fims.task.Task; import cokr.xit.foundation.data.DataObject; /**단속 관리 서비스 웹 컨트롤러.
* {웹 컨텍스트}/crdn/crdn06 로 접근할 수 있다. * @author leebj */ +@Controller +@RequestMapping(name="단속 관리", value=Crdn06Controller.CLASS_URL) public class Crdn06Controller extends ApplicationController { public static final String CLASS_URL = "/crdn/crdn06"; @@ -73,6 +78,7 @@ public class Crdn06Controller extends ApplicationController { /** 단속 관리 메인화면을 연다. * @return fims/crdn/crdn06010-main */ + @RequestMapping(name="단속 관리 메인", value=METHOD_URL.crackdownManagementMain) public ModelAndView crackdownManagementMain(String openType, String taskSeCd) { ModelAndView mav = new ModelAndView(); mav.setViewName("fims/crdn/crdn06010-main"); @@ -96,6 +102,8 @@ public class Crdn06Controller extends ApplicationController { * @param query 단속자료 목록 조회 조건 * @return jsonView */ + @Task + @RequestMapping(name="단속자료 목록", value=METHOD_URL.getCrackdownList) public ModelAndView getCrackdownList(CrdnQuery query) { setFetchSize(query); @@ -180,6 +188,8 @@ public class Crdn06Controller extends ApplicationController { * "saved": 저장되었으면 true, 그렇지 않으면 false * } */ + @Task + @RequestMapping(name="단속자료 삭제", value=METHOD_URL.removeCrackdown) public ModelAndView removeCrackdown(Crdn crdn) { boolean saved = false; String rtnMsg = crdnService.removeCrackdown(crdn); @@ -203,6 +213,8 @@ public class Crdn06Controller extends ApplicationController { * "saved": 저장되었으면 true, 그렇지 않으면 false * } */ + @Task + @RequestMapping(name="단속자료 납부자 삭제", value=METHOD_URL.removeCrackdownPayer) public ModelAndView removeCrackdownPayer(Crdn crdn) { boolean saved = false; String rtnMsg = crdnService.removeCrackdownPayer(crdn); @@ -222,6 +234,8 @@ public class Crdn06Controller extends ApplicationController { * @param CrdnQuery 조회조건 * @return jsonView */ + @Task + @RequestMapping(name="단속 건수 조회", value=METHOD_URL.countCrdn) public ModelAndView countCrdn(CrdnQuery crdnQuery) { ModelAndView mav = new ModelAndView("jsonView"); @@ -240,6 +254,8 @@ public class Crdn06Controller extends ApplicationController { * "saved": 저장되었으면 true, 그렇지 않으면 false * } */ + @Task + @RequestMapping(name="단속자료압축파일 세외수입 전송", value=METHOD_URL.sendCrdn) public ModelAndView sendCrdn(String... crdnIds) { ModelAndView mav = new ModelAndView("jsonView"); boolean saved = false; @@ -259,6 +275,8 @@ public class Crdn06Controller extends ApplicationController { * "crdnInfo": 단속 정보 * } */ + @Task + @RequestMapping(name="단속자료 상세 조회", value=METHOD_URL.getCrackdownInfo) public ModelAndView getCrackdownInfo(CrdnQuery query) { DataObject crdnInfo = crdnService.getCrackdownInfo(query); @@ -329,6 +347,8 @@ public class Crdn06Controller extends ApplicationController { * "saved": 저장되었으면 true, 그렇지 않으면 false * } */ + @Task + @RequestMapping(name="단속자료 수정", value=METHOD_URL.updateCrackdown) public ModelAndView updateCrackdown(Crdn crdn) { boolean saved = false; String rtnMsg = crdnService.updateCrackdown(crdn); @@ -351,6 +371,8 @@ public class Crdn06Controller extends ApplicationController { * "crdnInfo": 단속 정보 * } */ + @Task + @RequestMapping(name="단속자료 상태 조회", value=METHOD_URL.getCrackdownStatusInfo) public ModelAndView getCrackdownStatusInfo(CrdnQuery query) { DataObject crdnInfo = crdnService.getCrackdownInfo(query); @@ -375,6 +397,8 @@ public class Crdn06Controller extends ApplicationController { * "saved": 저장되었으면 true, 그렇지 않으면 false * } */ + @Task + @RequestMapping(name="단속처리상태 수정", value=METHOD_URL.updateCrackdownStatus) public ModelAndView updateCrackdownStatus(Crdn crdn) { boolean saved = false; String rtnMsg = crdnService.updateCrackdownStatus(crdn); diff --git a/src/main/java/cokr/xit/fims/task/Task.java b/src/main/java/cokr/xit/fims/task/Task.java index 132435fd..e33ad40a 100644 --- a/src/main/java/cokr/xit/fims/task/Task.java +++ b/src/main/java/cokr/xit/fims/task/Task.java @@ -8,5 +8,5 @@ import java.lang.annotation.Target; @Target(ElementType.METHOD) @Retention(RetentionPolicy.RUNTIME) public @interface Task { - String[] value(); + String[] value() default "ALL"; } diff --git a/src/main/java/cokr/xit/fims/task/TaskRequestMappingHandlerMapping.java b/src/main/java/cokr/xit/fims/task/TaskRequestMappingHandlerMapping.java index 531c68b8..e9a5df97 100644 --- a/src/main/java/cokr/xit/fims/task/TaskRequestMappingHandlerMapping.java +++ b/src/main/java/cokr/xit/fims/task/TaskRequestMappingHandlerMapping.java @@ -32,6 +32,9 @@ public class TaskRequestMappingHandlerMapping extends RequestMappingHandlerMappi RequestMappingInfo info) { String[] prefix = task.value(); + if(prefix[0].equals("ALL")) { + prefix = new String[] {"PVS","BPV","DPV","ECA","PES","DVS"}; + } RequestMapping rm = AnnotatedElementUtils.findMergedAnnotation(method, RequestMapping.class); diff --git a/src/main/java/cokr/xit/fims/task/web/BpvController.java b/src/main/java/cokr/xit/fims/task/web/BpvController.java index d529bf53..bda72f28 100644 --- a/src/main/java/cokr/xit/fims/task/web/BpvController.java +++ b/src/main/java/cokr/xit/fims/task/web/BpvController.java @@ -299,60 +299,6 @@ public class BpvController { } - @Controller - @RequestMapping(name="전용차로과태료업무 단속업무", value=CLASS_URL+Crdn06Controller.CLASS_URL) - class Crdn06Controller extends cokr.xit.fims.crdn.web.Crdn06Controller { - - @Override - @RequestMapping(name="전용차로과태료업무 단속자료 목록", value=METHOD_URL.getCrackdownList) - public ModelAndView getCrackdownList(CrdnQuery query) { - return super.getCrackdownList(query); - } - - @Override - @RequestMapping(name="전용차로과태료업무 단속자료 수정", value=METHOD_URL.updateCrackdown) - public ModelAndView updateCrackdown(Crdn crdn) { - return super.updateCrackdown(crdn); - } - - @Override - @RequestMapping(name="전용차로과태료업무 단속자료 삭제", value=METHOD_URL.removeCrackdown) - public ModelAndView removeCrackdown(Crdn crdn) { - return super.removeCrackdown(crdn); - } - - @Override - @RequestMapping(name="전용차로과태료업무 단속자료 납부자 삭제", value=METHOD_URL.removeCrackdownPayer) - public ModelAndView removeCrackdownPayer(Crdn crdn) { - return super.removeCrackdownPayer(crdn); - } - - @Override - @RequestMapping(name="전용차로과태료업무 단속 건수 조회", value=METHOD_URL.countCrdn) - public ModelAndView countCrdn(CrdnQuery query) { - return super.countCrdn(query); - } - - @Override - @RequestMapping(name="전용차로과태료업무 단속자료압축파일 세외수입 전송", value=METHOD_URL.sendCrdn) - public ModelAndView sendCrdn(String... crdnIds) { - return super.sendCrdn(crdnIds); - } - - @Override - @RequestMapping(name="전용차로과태료업무 단속자료 조회", value=METHOD_URL.getCrackdownStatusInfo) - public ModelAndView getCrackdownStatusInfo(CrdnQuery query) { - return super.getCrackdownStatusInfo(query); - } - - @Override - @RequestMapping(name="전용차로과태료업무 단속처리상태 수정", value=METHOD_URL.updateCrackdownStatus) - public ModelAndView updateCrackdownStatus(Crdn crdn) { - return super.updateCrackdownStatus(crdn); - } - - } - 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 c660e778..2f600545 100644 --- a/src/main/java/cokr/xit/fims/task/web/CmnController.java +++ b/src/main/java/cokr/xit/fims/task/web/CmnController.java @@ -164,19 +164,6 @@ public class CmnController { } } - @Controller - @RequestMapping(name="단속 관리", value=Crdn06Controller.CLASS_URL) - class Crdn06Controller extends cokr.xit.fims.crdn.web.Crdn06Controller { - /** 단속 관리 메인화면을 연다. - * @return fims/crdn/crdn06010-main - */ - @Override - @RequestMapping(name="단속 관리 메인", value=METHOD_URL.crackdownManagementMain) - public ModelAndView crackdownManagementMain(String openType, String taskSeCd) { - return super.crackdownManagementMain(openType, taskSeCd); - } - } - @Controller @RequestMapping(name="부과제외 관리", value=Excl01Controller.CLASS_URL) diff --git a/src/main/java/cokr/xit/fims/task/web/DpvController.java b/src/main/java/cokr/xit/fims/task/web/DpvController.java index c6dee5c3..ec5fbfee 100644 --- a/src/main/java/cokr/xit/fims/task/web/DpvController.java +++ b/src/main/java/cokr/xit/fims/task/web/DpvController.java @@ -336,59 +336,6 @@ public class DpvController { } - @Controller - @RequestMapping(name="장애인과태료업무 단속업무", value=CLASS_URL+Crdn06Controller.CLASS_URL) - class Crdn06Controller extends cokr.xit.fims.crdn.web.Crdn06Controller { - - @Override - @RequestMapping(name="장애인과태료업무 단속자료 목록 조회", value=METHOD_URL.getCrackdownList) - public ModelAndView getCrackdownList(CrdnQuery query) { - return super.getCrackdownList(query); - } - - @Override - @RequestMapping(name="장애인과태료업무 단속자료 조회", value=METHOD_URL.getCrackdownInfo) - public ModelAndView getCrackdownInfo(CrdnQuery query) { - return super.getCrackdownInfo(query); - } - - @Override - @RequestMapping(name="장애인과태료업무 단속자료 수정", value=METHOD_URL.updateCrackdown) - public ModelAndView updateCrackdown(Crdn crdn) { - return super.updateCrackdown(crdn); - } - - @Override - @RequestMapping(name="장애인과태료업무 단속자료 삭제", value=METHOD_URL.removeCrackdown) - public ModelAndView removeCrackdown(Crdn crdn) { - return super.removeCrackdown(crdn); - } - - @Override - @RequestMapping(name="장애인과태료업무 단속자료 납부자 삭제", value=METHOD_URL.removeCrackdownPayer) - public ModelAndView removeCrackdownPayer(Crdn crdn) { - return super.removeCrackdownPayer(crdn); - } - - @Override - @RequestMapping(name="장애인과태료업무 단속 건수 조회", value=METHOD_URL.countCrdn) - public ModelAndView countCrdn(CrdnQuery query) { - return super.countCrdn(query); - } - - @Override - @RequestMapping(name="장애인과태료업무 단속자료 조회", value=METHOD_URL.getCrackdownStatusInfo) - public ModelAndView getCrackdownStatusInfo(CrdnQuery query) { - return super.getCrackdownStatusInfo(query); - } - - @Override - @RequestMapping(name="장애인과태료업무 단속처리상태 수정", value=METHOD_URL.updateCrackdownStatus) - public ModelAndView updateCrackdownStatus(Crdn crdn) { - return super.updateCrackdownStatus(crdn); - } - - } @Controller @RequestMapping(name="장애인과태료업무 부과제외_부과제외 관리", value=CLASS_URL+Excl01Controller.CLASS_URL) diff --git a/src/main/java/cokr/xit/fims/task/web/EcaController.java b/src/main/java/cokr/xit/fims/task/web/EcaController.java index 6d0a10ef..45b9d20a 100644 --- a/src/main/java/cokr/xit/fims/task/web/EcaController.java +++ b/src/main/java/cokr/xit/fims/task/web/EcaController.java @@ -300,53 +300,6 @@ public class EcaController { } - @Controller - @RequestMapping(name="전기차과태료업무 단속업무", value=CLASS_URL+Crdn06Controller.CLASS_URL) - class Crdn06Controller extends cokr.xit.fims.crdn.web.Crdn06Controller { - - @Override - @RequestMapping(name="전기차과태료업무 단속자료 목록", value=METHOD_URL.getCrackdownList) - public ModelAndView getCrackdownList(CrdnQuery query) { - return super.getCrackdownList(query); - } - - @Override - @RequestMapping(name="전기차과태료업무 단속자료 수정", value=METHOD_URL.updateCrackdown) - public ModelAndView updateCrackdown(Crdn crdn) { - return super.updateCrackdown(crdn); - } - - @Override - @RequestMapping(name="전기차과태료업무 단속자료 삭제", value=METHOD_URL.removeCrackdown) - public ModelAndView removeCrackdown(Crdn crdn) { - return super.removeCrackdown(crdn); - } - - @Override - @RequestMapping(name="전기차과태료업무 단속자료 납부자 삭제", value=METHOD_URL.removeCrackdownPayer) - public ModelAndView removeCrackdownPayer(Crdn crdn) { - return super.removeCrackdownPayer(crdn); - } - - @Override - @RequestMapping(name="전기차과태료업무 단속 건수 조회", value=METHOD_URL.countCrdn) - public ModelAndView countCrdn(CrdnQuery query) { - return super.countCrdn(query); - } - - @Override - @RequestMapping(name="전기차과태료업무 단속자료 조회", value=METHOD_URL.getCrackdownStatusInfo) - public ModelAndView getCrackdownStatusInfo(CrdnQuery query) { - return super.getCrackdownStatusInfo(query); - } - - @Override - @RequestMapping(name="전기차과태료업무 단속처리상태 수정", value=METHOD_URL.updateCrackdownStatus) - public ModelAndView updateCrackdownStatus(Crdn crdn) { - return super.updateCrackdownStatus(crdn); - } - - } @Controller @RequestMapping(name="전기차과태료업무 부과제외_부과제외 관리", value=CLASS_URL+Excl01Controller.CLASS_URL) diff --git a/src/main/java/cokr/xit/fims/task/web/PvsController.java b/src/main/java/cokr/xit/fims/task/web/PvsController.java index c47465bc..84b2c215 100644 --- a/src/main/java/cokr/xit/fims/task/web/PvsController.java +++ b/src/main/java/cokr/xit/fims/task/web/PvsController.java @@ -312,59 +312,6 @@ public class PvsController { } - @Controller - @RequestMapping(name="주정차과태료업무 단속업무", value=CLASS_URL+Crdn06Controller.CLASS_URL) - class Crdn06Controller extends cokr.xit.fims.crdn.web.Crdn06Controller { - - @Override - @RequestMapping(name="주정차과태료업무 단속자료 목록", value=METHOD_URL.getCrackdownList) - public ModelAndView getCrackdownList(CrdnQuery query) { - return super.getCrackdownList(query); - } - - @Override - @RequestMapping(name="주정차과태료업무 단속자료 수정", value=METHOD_URL.updateCrackdown) - public ModelAndView updateCrackdown(Crdn crdn) { - return super.updateCrackdown(crdn); - } - - @Override - @RequestMapping(name="주정차과태료업무 단속자료 삭제", value=METHOD_URL.removeCrackdown) - public ModelAndView removeCrackdown(Crdn crdn) { - return super.removeCrackdown(crdn); - } - - @Override - @RequestMapping(name="주정차과태료업무 단속자료 납부자 삭제", value=METHOD_URL.removeCrackdownPayer) - public ModelAndView removeCrackdownPayer(Crdn crdn) { - return super.removeCrackdownPayer(crdn); - } - - @Override - @RequestMapping(name="주정차과태료업무 단속 건수 조회", value=METHOD_URL.countCrdn) - public ModelAndView countCrdn(CrdnQuery query) { - return super.countCrdn(query); - } - - @Override - @RequestMapping(name="주정차과태료업무 단속자료압축파일 세외수입 전송", value=METHOD_URL.sendCrdn) - public ModelAndView sendCrdn(String... crdnIds) { - return super.sendCrdn(crdnIds); - } - - @Override - @RequestMapping(name="주정차과태료업무 단속자료 조회", value=METHOD_URL.getCrackdownStatusInfo) - public ModelAndView getCrackdownStatusInfo(CrdnQuery query) { - return super.getCrackdownStatusInfo(query); - } - - @Override - @RequestMapping(name="주정차과태료업무 단속처리상태 수정", value=METHOD_URL.updateCrackdownStatus) - public ModelAndView updateCrackdownStatus(Crdn crdn) { - return super.updateCrackdownStatus(crdn); - } - - } @Controller