diff --git a/src/main/java/cokr/xit/fims/sprt/web/Sprt02Controller.java b/src/main/java/cokr/xit/fims/sprt/web/Sprt02Controller.java index f5b3a8ac..a6777971 100644 --- a/src/main/java/cokr/xit/fims/sprt/web/Sprt02Controller.java +++ b/src/main/java/cokr/xit/fims/sprt/web/Sprt02Controller.java @@ -4,6 +4,8 @@ import java.util.List; import javax.annotation.Resource; +import org.springframework.stereotype.Controller; +import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.servlet.ModelAndView; import cokr.xit.base.web.ApplicationController; @@ -25,8 +27,9 @@ import cokr.xit.fims.sndb.service.SndngService; import cokr.xit.fims.sndb.service.SvbtcService; import cokr.xit.fims.sprt.CvlcptDscsnQuery; import cokr.xit.fims.sprt.SprtQuery; -import cokr.xit.fims.sprt.service.Sprt02Service; import cokr.xit.fims.sprt.service.CvlcptDscsnService; +import cokr.xit.fims.sprt.service.Sprt02Service; +import cokr.xit.fims.task.Task; import cokr.xit.foundation.data.DataObject; /**개별총정보 서비스의 웹 컨트롤러 @@ -39,6 +42,8 @@ import cokr.xit.foundation.data.DataObject; * ================================ * */ +@Controller +@RequestMapping(name="개별 총정보", value="/sprt/sprt02") public class Sprt02Controller extends ApplicationController { public static final String CLASS_URL = "/sprt/sprt02"; @@ -110,6 +115,8 @@ public class Sprt02Controller extends ApplicationController { *조건없는 {@link #getCrdnInfo(SprtQuery) 단속 대장 조회 결과}를 포함시킨다. * @return fims/sprt/sprt02010 */ + @Task("CMN") + @RequestMapping(name="개별총정보 메인", value=METHOD_URL.indivTotalInfoMain) public ModelAndView indivTotalInfoMain(SprtQuery req) { DataObject totalInfo = sprt02Service.getCrdnInfo(req); @@ -132,6 +139,8 @@ public class Sprt02Controller extends ApplicationController { * "crdnPayer": {...} * } */ + @Task + @RequestMapping(name="개별총정보 단속, 납부자 정보 조회", value=METHOD_URL.getCrdnPayerInfo) public ModelAndView getCrdnPayerInfo(SprtQuery req) { // 단속(TB_CRDN), 납부자(TB_PAYER) 정보 DataObject crdnPayer = sprt02Service.getCrdnPayerInfo(req); @@ -161,6 +170,8 @@ public class Sprt02Controller extends ApplicationController { * "opnnSbmsn": {...} * } */ + @Task + @RequestMapping(name="개별총정보 의견제출 정보 조회", value=METHOD_URL.getOpnnSbmsnInfo) public ModelAndView getOpnnSbmsnInfo(SprtQuery req) { // 의견제출 정보 LevyExclQuery exclQuery = new LevyExclQuery(); @@ -201,6 +212,8 @@ public class Sprt02Controller extends ApplicationController { * "sndngDtl": {...} * } */ + @Task + @RequestMapping(name="개별총정보 발송, 반송 정보 조회", value=METHOD_URL.getSndngInfo) public ModelAndView getSndngInfo(SprtQuery req) { // 발송상세 정보 SndbQuery sndbQuery = new SndbQuery(); @@ -249,6 +262,8 @@ public class Sprt02Controller extends ApplicationController { * "sndngDtl": {...} * } */ + @Task + @RequestMapping(name="개별총정보 처리 상세 정보 조회", value=METHOD_URL.getPrcsDtlInfo) public ModelAndView getPrcsDtlInfo(SprtQuery req) { // 과태료 감경(TB_RDUCT) 대장 조회 LevyQuery levyQuery = new LevyQuery(); @@ -320,6 +335,8 @@ public class Sprt02Controller extends ApplicationController { * "sndngDtl": {...} * } */ + @Task + @RequestMapping(name="개별총정보 부과, 체납 정보 조회", value=METHOD_URL.getLevyNpmntInfo) public ModelAndView getLevyNpmntInfo(SprtQuery req) { // 부과 정보 LevyQuery levyQuery = new LevyQuery(); @@ -360,6 +377,8 @@ public class Sprt02Controller extends ApplicationController { * "rcvmt": {...} * } */ + @Task + @RequestMapping(name="개별총정보 수납 정보 조회", value=METHOD_URL.getRcvmtInfo) public ModelAndView getRcvmtInfo(SprtQuery req) { // 수납 정보 RcvmtQuery rcvmtQuery = new RcvmtQuery(); @@ -400,6 +419,8 @@ public class Sprt02Controller extends ApplicationController { * "cvlcptDscsnCn": {...} * } */ + @Task + @RequestMapping(name="개별총정보 민원 상담 정보 조회", value=METHOD_URL.getCvlcptDscsnInfo) public ModelAndView getCvlcptDscsnInfo(SprtQuery req) { // 민원 상담 정보 CvlcptDscsnQuery cvlcptDscsnQuery = new CvlcptDscsnQuery(); diff --git a/src/main/java/cokr/xit/fims/task/TaskRequestMappingHandlerMapping.java b/src/main/java/cokr/xit/fims/task/TaskRequestMappingHandlerMapping.java index e9a5df97..8ab66c8b 100644 --- a/src/main/java/cokr/xit/fims/task/TaskRequestMappingHandlerMapping.java +++ b/src/main/java/cokr/xit/fims/task/TaskRequestMappingHandlerMapping.java @@ -34,6 +34,8 @@ public class TaskRequestMappingHandlerMapping extends RequestMappingHandlerMappi String[] prefix = task.value(); if(prefix[0].equals("ALL")) { prefix = new String[] {"PVS","BPV","DPV","ECA","PES","DVS"}; + } else if(prefix[0].equals("CMN")) { + prefix = new String[] {"","PVS","BPV","DPV","ECA","PES","DVS"}; } RequestMapping rm = AnnotatedElementUtils.findMergedAnnotation(method, RequestMapping.class); @@ -43,7 +45,7 @@ public class TaskRequestMappingHandlerMapping extends RequestMappingHandlerMappi String[] news = new String[prefix.length*olds.length]; for(int i=0;i < prefix.length; i++) { for(int j=0;j < olds.length; j++) { - String newPattern = "/"+prefix[i]+olds[j]; + String newPattern = (prefix[i].equals("") ? "" : "/")+prefix[i]+olds[j]; news[i*(olds.length)+j] = newPattern; } } 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 add175e0..68ecbafa 100644 --- a/src/main/java/cokr/xit/fims/task/web/BpvController.java +++ b/src/main/java/cokr/xit/fims/task/web/BpvController.java @@ -8,7 +8,6 @@ import cokr.xit.fims.payer.Payer; import cokr.xit.fims.payer.PayerQuery; import cokr.xit.fims.sprt.CvlcptDscsn; import cokr.xit.fims.sprt.CvlcptDscsnQuery; -import cokr.xit.fims.sprt.SprtQuery; @Controller public class BpvController { @@ -20,55 +19,7 @@ public class BpvController { - @Controller - @RequestMapping(name="전용차로과태료업무 업무지원_개별총정보", value=CLASS_URL+Sprt02Controller.CLASS_URL) - class Sprt02Controller extends cokr.xit.fims.sprt.web.Sprt02Controller { - - @Override - @RequestMapping(name="개별총정보 메인", value=METHOD_URL.indivTotalInfoMain) - public ModelAndView indivTotalInfoMain(SprtQuery req) { - return super.indivTotalInfoMain(req); - } - - @Override - @RequestMapping(name="개별총정보 단속, 납부자 정보 조회", value=METHOD_URL.getCrdnPayerInfo) - public ModelAndView getCrdnPayerInfo(SprtQuery req) { - return super.getCrdnPayerInfo(req); - } - - @Override - @RequestMapping(name="개별총정보 의견제출 정보 조회", value=METHOD_URL.getOpnnSbmsnInfo) - public ModelAndView getOpnnSbmsnInfo(SprtQuery req) { - return super.getOpnnSbmsnInfo(req); - } - @Override - @RequestMapping(name="개별총정보 발송, 반송 정보 조회", value=METHOD_URL.getSndngInfo) - public ModelAndView getSndngInfo(SprtQuery req) { - return super.getSndngInfo(req); - } - @Override - @RequestMapping(name="개별총정보 처리 상세 정보 조회", value=METHOD_URL.getPrcsDtlInfo) - public ModelAndView getPrcsDtlInfo(SprtQuery req) { - return super.getPrcsDtlInfo(req); - } - @Override - @RequestMapping(name="개별총정보 부과, 체납 정보 조회", value=METHOD_URL.getLevyNpmntInfo) - public ModelAndView getLevyNpmntInfo(SprtQuery req) { - return super.getLevyNpmntInfo(req); - } - @Override - @RequestMapping(name="개별총정보 수납 정보 조회", value=METHOD_URL.getRcvmtInfo) - public ModelAndView getRcvmtInfo(SprtQuery req) { - return super.getRcvmtInfo(req); - } - @Override - @RequestMapping(name="개별총정보 민원 상담 정보 조회", value=METHOD_URL.getCvlcptDscsnInfo) - public ModelAndView getCvlcptDscsnInfo(SprtQuery req) { - return super.getCvlcptDscsnInfo(req); - } - - } @Controller @RequestMapping(name="전용차로과태료업무 업무지원_민원상담", value=CLASS_URL+Sprt04Controller.CLASS_URL) 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 bb287f5c..0d219467 100644 --- a/src/main/java/cokr/xit/fims/task/web/CmnController.java +++ b/src/main/java/cokr/xit/fims/task/web/CmnController.java @@ -20,7 +20,6 @@ import cokr.xit.fims.mngt.Schdl; import cokr.xit.fims.mngt.SchdlQuery; import cokr.xit.fims.mngt.Task; import cokr.xit.fims.mngt.VltnQuery; -import cokr.xit.fims.sprt.SprtQuery; import cokr.xit.fims.stat.StatQuery; @Controller @@ -114,17 +113,6 @@ public class CmnController { - @Controller - @RequestMapping(name="개별 총정보", value="/sprt/sprt02") - class Sprt02Controller extends cokr.xit.fims.sprt.web.Sprt02Controller { - - @Override - @RequestMapping(name="개별총정보 메인", value=METHOD_URL.indivTotalInfoMain) - public ModelAndView indivTotalInfoMain(SprtQuery req) { - return super.indivTotalInfoMain(req); - } - - } @Controller @RequestMapping(name="동영상 재생", value="/sprt/sprt03") 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 a306b97e..12f70a5b 100644 --- a/src/main/java/cokr/xit/fims/task/web/DpvController.java +++ b/src/main/java/cokr/xit/fims/task/web/DpvController.java @@ -21,7 +21,6 @@ import cokr.xit.fims.sndb.SndngDtl; import cokr.xit.fims.sndb.Svbtc; import cokr.xit.fims.sprt.CvlcptDscsn; import cokr.xit.fims.sprt.CvlcptDscsnQuery; -import cokr.xit.fims.sprt.SprtQuery; @Controller public class DpvController { @@ -341,55 +340,7 @@ public class DpvController { - @Controller - @RequestMapping(name="장애인과태료업무 업무지원_개별총정보", value=CLASS_URL+Sprt02Controller.CLASS_URL) - class Sprt02Controller extends cokr.xit.fims.sprt.web.Sprt02Controller { - - @Override - @RequestMapping(name="개별총정보 메인", value=METHOD_URL.indivTotalInfoMain) - public ModelAndView indivTotalInfoMain(SprtQuery req) { - return super.indivTotalInfoMain(req); - } - - @Override - @RequestMapping(name="개별총정보 단속, 납부자 정보 조회", value=METHOD_URL.getCrdnPayerInfo) - public ModelAndView getCrdnPayerInfo(SprtQuery req) { - return super.getCrdnPayerInfo(req); - } - - @Override - @RequestMapping(name="개별총정보 의견제출 정보 조회", value=METHOD_URL.getOpnnSbmsnInfo) - public ModelAndView getOpnnSbmsnInfo(SprtQuery req) { - return super.getOpnnSbmsnInfo(req); - } - @Override - @RequestMapping(name="개별총정보 발송, 반송 정보 조회", value=METHOD_URL.getSndngInfo) - public ModelAndView getSndngInfo(SprtQuery req) { - return super.getSndngInfo(req); - } - @Override - @RequestMapping(name="개별총정보 처리 상세 정보 조회", value=METHOD_URL.getPrcsDtlInfo) - public ModelAndView getPrcsDtlInfo(SprtQuery req) { - return super.getPrcsDtlInfo(req); - } - @Override - @RequestMapping(name="개별총정보 부과, 체납 정보 조회", value=METHOD_URL.getLevyNpmntInfo) - public ModelAndView getLevyNpmntInfo(SprtQuery req) { - return super.getLevyNpmntInfo(req); - } - @Override - @RequestMapping(name="개별총정보 수납 정보 조회", value=METHOD_URL.getRcvmtInfo) - public ModelAndView getRcvmtInfo(SprtQuery req) { - return super.getRcvmtInfo(req); - } - @Override - @RequestMapping(name="개별총정보 민원 상담 정보 조회", value=METHOD_URL.getCvlcptDscsnInfo) - public ModelAndView getCvlcptDscsnInfo(SprtQuery req) { - return super.getCvlcptDscsnInfo(req); - } - - } @Controller @RequestMapping(name="장애인과태료업무 업무지원_민원상담", value=CLASS_URL+Sprt04Controller.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 84b6b91f..3bd8f8b6 100644 --- a/src/main/java/cokr/xit/fims/task/web/EcaController.java +++ b/src/main/java/cokr/xit/fims/task/web/EcaController.java @@ -8,7 +8,6 @@ import cokr.xit.fims.payer.Payer; import cokr.xit.fims.payer.PayerQuery; import cokr.xit.fims.sprt.CvlcptDscsn; import cokr.xit.fims.sprt.CvlcptDscsnQuery; -import cokr.xit.fims.sprt.SprtQuery; @Controller public class EcaController { @@ -18,55 +17,7 @@ public class EcaController { - @Controller - @RequestMapping(name="전기차과태료업무 업무지원_개별총정보", value=CLASS_URL+Sprt02Controller.CLASS_URL) - class Sprt02Controller extends cokr.xit.fims.sprt.web.Sprt02Controller { - - @Override - @RequestMapping(name="개별총정보 메인", value=METHOD_URL.indivTotalInfoMain) - public ModelAndView indivTotalInfoMain(SprtQuery req) { - return super.indivTotalInfoMain(req); - } - - @Override - @RequestMapping(name="개별총정보 단속, 납부자 정보 조회", value=METHOD_URL.getCrdnPayerInfo) - public ModelAndView getCrdnPayerInfo(SprtQuery req) { - return super.getCrdnPayerInfo(req); - } - - @Override - @RequestMapping(name="개별총정보 의견제출 정보 조회", value=METHOD_URL.getOpnnSbmsnInfo) - public ModelAndView getOpnnSbmsnInfo(SprtQuery req) { - return super.getOpnnSbmsnInfo(req); - } - @Override - @RequestMapping(name="개별총정보 발송, 반송 정보 조회", value=METHOD_URL.getSndngInfo) - public ModelAndView getSndngInfo(SprtQuery req) { - return super.getSndngInfo(req); - } - @Override - @RequestMapping(name="개별총정보 처리 상세 정보 조회", value=METHOD_URL.getPrcsDtlInfo) - public ModelAndView getPrcsDtlInfo(SprtQuery req) { - return super.getPrcsDtlInfo(req); - } - @Override - @RequestMapping(name="개별총정보 부과, 체납 정보 조회", value=METHOD_URL.getLevyNpmntInfo) - public ModelAndView getLevyNpmntInfo(SprtQuery req) { - return super.getLevyNpmntInfo(req); - } - @Override - @RequestMapping(name="개별총정보 수납 정보 조회", value=METHOD_URL.getRcvmtInfo) - public ModelAndView getRcvmtInfo(SprtQuery req) { - return super.getRcvmtInfo(req); - } - @Override - @RequestMapping(name="개별총정보 민원 상담 정보 조회", value=METHOD_URL.getCvlcptDscsnInfo) - public ModelAndView getCvlcptDscsnInfo(SprtQuery req) { - return super.getCvlcptDscsnInfo(req); - } - - } @Controller @RequestMapping(name="전기차과태료업무 업무지원_민원상담", value=CLASS_URL+Sprt04Controller.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 7781d2ac..f4ab182b 100644 --- a/src/main/java/cokr/xit/fims/task/web/PvsController.java +++ b/src/main/java/cokr/xit/fims/task/web/PvsController.java @@ -8,7 +8,6 @@ import cokr.xit.fims.payer.Payer; import cokr.xit.fims.payer.PayerQuery; import cokr.xit.fims.sprt.CvlcptDscsn; import cokr.xit.fims.sprt.CvlcptDscsnQuery; -import cokr.xit.fims.sprt.SprtQuery; @Controller public class PvsController { @@ -21,55 +20,7 @@ public class PvsController { - @Controller - @RequestMapping(name="주정차과태료업무 업무지원_개별총정보", value=CLASS_URL+Sprt02Controller.CLASS_URL) - class Sprt02Controller extends cokr.xit.fims.sprt.web.Sprt02Controller { - - @Override - @RequestMapping(name="개별총정보 메인", value=METHOD_URL.indivTotalInfoMain) - public ModelAndView indivTotalInfoMain(SprtQuery req) { - return super.indivTotalInfoMain(req); - } - - @Override - @RequestMapping(name="개별총정보 단속, 납부자 정보 조회", value=METHOD_URL.getCrdnPayerInfo) - public ModelAndView getCrdnPayerInfo(SprtQuery req) { - return super.getCrdnPayerInfo(req); - } - - @Override - @RequestMapping(name="개별총정보 의견제출 정보 조회", value=METHOD_URL.getOpnnSbmsnInfo) - public ModelAndView getOpnnSbmsnInfo(SprtQuery req) { - return super.getOpnnSbmsnInfo(req); - } - @Override - @RequestMapping(name="개별총정보 발송, 반송 정보 조회", value=METHOD_URL.getSndngInfo) - public ModelAndView getSndngInfo(SprtQuery req) { - return super.getSndngInfo(req); - } - @Override - @RequestMapping(name="개별총정보 처리 상세 정보 조회", value=METHOD_URL.getPrcsDtlInfo) - public ModelAndView getPrcsDtlInfo(SprtQuery req) { - return super.getPrcsDtlInfo(req); - } - @Override - @RequestMapping(name="개별총정보 부과 체납 정보 조회", value=METHOD_URL.getLevyNpmntInfo) - public ModelAndView getLevyNpmntInfo(SprtQuery req) { - return super.getLevyNpmntInfo(req); - } - @Override - @RequestMapping(name="개별총정보 수납 정보 조회", value=METHOD_URL.getRcvmtInfo) - public ModelAndView getRcvmtInfo(SprtQuery req) { - return super.getRcvmtInfo(req); - } - @Override - @RequestMapping(name="개별총정보 민원 상담 정보 조회", value=METHOD_URL.getCvlcptDscsnInfo) - public ModelAndView getCvlcptDscsnInfo(SprtQuery req) { - return super.getCvlcptDscsnInfo(req); - } - - } @Controller @RequestMapping(name="주정차과태료업무 업무지원_민원상담", value=CLASS_URL+Sprt04Controller.CLASS_URL)