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 e39f7d00..dea0f0f8 100644 --- a/src/main/java/cokr/xit/fims/crdn/dao/CrdnTeamMapper.java +++ b/src/main/java/cokr/xit/fims/crdn/dao/CrdnTeamMapper.java @@ -16,4 +16,10 @@ public interface CrdnTeamMapper extends AbstractMapper { * @return 단속팀 목록 */ List selectTeamList(CrdnQuery query); + + /**단속팀 정보를 조회한다.
+ * @param teamId 단속팀 ID + * @return 단속팀 정보 + */ + DataObject selectTeamInfo(String teamId); } 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 01fbe529..6a534c2f 100644 --- a/src/main/java/cokr/xit/fims/crdn/service/CrdnStngService.java +++ b/src/main/java/cokr/xit/fims/crdn/service/CrdnStngService.java @@ -13,4 +13,9 @@ public interface CrdnStngService { */ List getTeamList(CrdnQuery query); + /** 단속팀 정보을 조회한다. + * @param teamId 단속팀 ID + * @return 단속팀 정보 + */ + DataObject getTeamInfo(String teamId); } 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 7c42e38c..6f868c43 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 @@ -28,4 +28,12 @@ public class CrdnStngBean extends AbstractComponent { return crdnTeamMapper.selectTeamList(query); } + /**단속팀 정보를 조회한다. + * @param teamId 단속팀 ID + * @return 단속팀 정보 + */ + public DataObject selectTeamInfo(String teamId) { + return crdnTeamMapper.selectTeamInfo(teamId); + } + } diff --git a/src/main/java/cokr/xit/fims/crdn/service/bean/CrdnStngServiceBean.java b/src/main/java/cokr/xit/fims/crdn/service/bean/CrdnStngServiceBean.java index 17afe726..295f3422 100644 --- a/src/main/java/cokr/xit/fims/crdn/service/bean/CrdnStngServiceBean.java +++ b/src/main/java/cokr/xit/fims/crdn/service/bean/CrdnStngServiceBean.java @@ -22,4 +22,9 @@ public class CrdnStngServiceBean extends AbstractServiceBean implements CrdnStng return crdnStngBean.selectTeamList(query); } + @Override + public DataObject getTeamInfo(String teamId) { + return crdnStngBean.selectTeamInfo(teamId); + } + } diff --git a/src/main/java/cokr/xit/fims/crdn/web/Crdn07Controller.java b/src/main/java/cokr/xit/fims/crdn/web/Crdn07Controller.java new file mode 100644 index 00000000..20285c2d --- /dev/null +++ b/src/main/java/cokr/xit/fims/crdn/web/Crdn07Controller.java @@ -0,0 +1,43 @@ +package cokr.xit.fims.crdn.web; + +import javax.annotation.Resource; + +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.servlet.ModelAndView; + +import cokr.xit.base.web.ApplicationController; +import cokr.xit.fims.crdn.service.CrdnStngService; + +/**단속팀 관리 서비스 웹 컨트롤러.
+ * {웹 컨텍스트}/crdn/crdn07 로 접근할 수 있다. + * @author leebj + */ +public class Crdn07Controller extends ApplicationController { + + @Resource(name="crdnStngService") + private CrdnStngService crdnStngService; + + /** 단속팀 관리 메인화면을 연다. + * @return fims/crdn/crdn07010-main + */ + public ModelAndView crackdownTeamManagementMain() { + ModelAndView mav = new ModelAndView(); + mav.setViewName("fims/crdn/crdn07010-main"); + mav.addObject("pageName", "crdn07010-main"); + + return mav; + } + + /**단속팀 목록을 조회한다.
+ * {@link CrdnStngService#getTeamInfo(String)} 참고 + * @param crdn 단속 + * @return jsonView + */ + @RequestMapping(name="단속팀 정보 조회", value="/010/info.do") + public ModelAndView getTeamInfo(String teamId) { + ModelAndView mav = new ModelAndView("jsonView"); + mav.addObject("teamInfo", crdnStngService.getTeamInfo(teamId)); + return mav; + } + +} diff --git a/src/main/java/cokr/xit/fims/crdn/web/Crdn08Controller.java b/src/main/java/cokr/xit/fims/crdn/web/Crdn08Controller.java new file mode 100644 index 00000000..6ffb125e --- /dev/null +++ b/src/main/java/cokr/xit/fims/crdn/web/Crdn08Controller.java @@ -0,0 +1,30 @@ +package cokr.xit.fims.crdn.web; + +import javax.annotation.Resource; + +import org.springframework.web.servlet.ModelAndView; + +import cokr.xit.base.web.ApplicationController; +import cokr.xit.fims.crdn.service.CrdnStngService; + +/**면제차량 관리 서비스 웹 컨트롤러.
+ * {웹 컨텍스트}/crdn/crdn08 로 접근할 수 있다. + * @author leebj + */ +public class Crdn08Controller extends ApplicationController { + + @Resource(name="crdnStngService") + private CrdnStngService crdnStngService; + + /** 면제차량 관리 메인화면을 연다. + * @return fims/crdn/crdn08010-main + */ + public ModelAndView exemptionVehicleManagementMain() { + ModelAndView mav = new ModelAndView(); + mav.setViewName("fims/crdn/crdn08010-main"); + mav.addObject("pageName", "crdn08010-main"); + + return mav; + } + +} 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 55596a91..b22f2d3d 100644 --- a/src/main/java/cokr/xit/fims/task/web/BpvController.java +++ b/src/main/java/cokr/xit/fims/task/web/BpvController.java @@ -23,6 +23,10 @@ public class BpvController { @RequestMapping(name="전용차로과태료업무 단속업무", value="/BPV/crdn/crdn06") class Crdn06Controller extends cokr.xit.fims.crdn.web.Crdn06Controller {} + @Controller + @RequestMapping(name="전용차로과태료업무 단속팀 관리", value="/BPV/crdn/crdn07") + class Crdn07Controller extends cokr.xit.fims.crdn.web.Crdn07Controller {} + @Controller @RequestMapping(name="전용차로과태료업무 업무지원", value="/BPV/sprt/sprt01/") class Sprt01Controller extends cokr.xit.fims.sprt.web.Sprt01Controller {} 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 a95de944..6e83800b 100644 --- a/src/main/java/cokr/xit/fims/task/web/CmnController.java +++ b/src/main/java/cokr/xit/fims/task/web/CmnController.java @@ -105,6 +105,32 @@ public class CmnController { } } + @Controller + @RequestMapping(name="단속팀 관리", value="/crdn/crdn07") + class Crdn07Controller extends cokr.xit.fims.crdn.web.Crdn07Controller { + /** 단속팀 관리 메인화면을 연다. + * @return fims/crdn/crdn07010-main + */ + @Override + @RequestMapping(name="단속팀 관리 메인", value="/010/main.do") + public ModelAndView crackdownTeamManagementMain() { + return super.crackdownTeamManagementMain(); + } + } + + @Controller + @RequestMapping(name="면제차량 관리 관리", value="/crdn/crdn08") + class Crdn08Controller extends cokr.xit.fims.crdn.web.Crdn08Controller { + /** 면제차량 관리 메인화면을 연다. + * @return fims/crdn/crdn08010-main + */ + @Override + @RequestMapping(name="면제차량 관리 메인", value="/010/main.do") + public ModelAndView exemptionVehicleManagementMain() { + return super.exemptionVehicleManagementMain(); + } + } + @Controller @RequestMapping(name="업무지원", value="/sprt/sprt01") class Sprt01Controller extends cokr.xit.fims.sprt.web.Sprt01Controller { 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 4c6054f8..71b4f0be 100644 --- a/src/main/java/cokr/xit/fims/task/web/PvsController.java +++ b/src/main/java/cokr/xit/fims/task/web/PvsController.java @@ -23,6 +23,10 @@ public class PvsController { @RequestMapping(name="주정차과태료업무 단속업무", value="/PVS/crdn/crdn06") class Crdn06Controller extends cokr.xit.fims.crdn.web.Crdn06Controller {} + @Controller + @RequestMapping(name="주정차과태료업무 단속팀 관리", value="/PVS/crdn/crdn07") + class Crdn07Controller extends cokr.xit.fims.crdn.web.Crdn07Controller {} + @Controller @RequestMapping(name="주정차과태료업무 업무지원", value="/PVS/sprt/sprt01/") class Sprt01Controller extends cokr.xit.fims.sprt.web.Sprt01Controller {} diff --git a/src/main/resources/sql/mapper/fims/crdn/crdn-team-mapper.xml b/src/main/resources/sql/mapper/fims/crdn/crdn-team-mapper.xml index 86d4c9b2..7ff87b55 100644 --- a/src/main/resources/sql/mapper/fims/crdn/crdn-team-mapper.xml +++ b/src/main/resources/sql/mapper/fims/crdn/crdn-team-mapper.xml @@ -15,4 +15,16 @@ SELECT TEAM_ID AND TASK_SE_CD = #{taskSeCd} + + \ No newline at end of file diff --git a/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn05030-info.jsp b/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn05030-info.jsp index 82278545..99d52fb5 100644 --- a/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn05030-info.jsp +++ b/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn05030-info.jsp @@ -209,8 +209,7 @@