From 584c2593f46e7104727cdddd1f9eb435250eb01b Mon Sep 17 00:00:00 2001 From: leebeomjun Date: Fri, 26 Jan 2024 10:33:47 +0900 Subject: [PATCH] =?UTF-8?q?=EB=8F=99=EC=9D=BC=EC=B0=A8=EB=9F=89=20?= =?UTF-8?q?=EB=8B=A8=EC=86=8D=EA=B1=B4=EC=88=98=20=EC=A1=B0=ED=9A=8C=20?= =?UTF-8?q?=EC=BF=BC=EB=A6=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/crdn/dao/CrdnListMapper.java | 6 +++ .../xit/fims/crdn/service/CrdnService.java | 10 ++++ .../crdn/service/bean/CrdnServiceBean.java | 27 ++++++----- .../xit/fims/crdn/web/Crdn06Controller.java | 16 +++++++ .../cokr/xit/fims/task/web/BpvController.java | 6 +++ .../cokr/xit/fims/task/web/DpvController.java | 6 +++ .../cokr/xit/fims/task/web/EcaController.java | 6 +++ .../cokr/xit/fims/task/web/PvsController.java | 6 +++ .../sql/mapper/fims/crdn/crdn-list-mapper.xml | 10 ++++ .../WEB-INF/jsp/fims/cvlc/cvlc01020-info.jsp | 47 ++++++++++++++----- .../js/fims/framework/cmm/searchUtil.js | 20 ++++++++ 11 files changed, 137 insertions(+), 23 deletions(-) diff --git a/src/main/java/cokr/xit/fims/crdn/dao/CrdnListMapper.java b/src/main/java/cokr/xit/fims/crdn/dao/CrdnListMapper.java index 5801a4eb..bf320171 100644 --- a/src/main/java/cokr/xit/fims/crdn/dao/CrdnListMapper.java +++ b/src/main/java/cokr/xit/fims/crdn/dao/CrdnListMapper.java @@ -56,4 +56,10 @@ public interface CrdnListMapper extends AbstractMapper { */ List selectTagInformationUndefinedDataList(CrdnQuery query); + /**단속 건수를 반환한다. + * @param crdnQuery 조회조건 + * @return 단속 건수 + */ + int countCrdn(CrdnQuery crdnQuery); + } diff --git a/src/main/java/cokr/xit/fims/crdn/service/CrdnService.java b/src/main/java/cokr/xit/fims/crdn/service/CrdnService.java index 38ffba56..ff41dcc2 100644 --- a/src/main/java/cokr/xit/fims/crdn/service/CrdnService.java +++ b/src/main/java/cokr/xit/fims/crdn/service/CrdnService.java @@ -79,6 +79,16 @@ public interface CrdnService { */ boolean removeEquipmentLinkFile(String workPath, String fileName); + /** 단속 사진에 대한 파일 처리를 실행한다. + * @param crdn 단속정보, processList 파일 처리 목록 + * @return 처리 결과 메시지 + */ String changeCrdnImageFile(Crdn crdn, List> processList); + /** 단속자료 건수를 조회한다. + * @param crdnQuery 단속자료 조회조건 + * @return 단속자료 건수 + */ + int countCrdn(CrdnQuery crdnQuery); + } diff --git a/src/main/java/cokr/xit/fims/crdn/service/bean/CrdnServiceBean.java b/src/main/java/cokr/xit/fims/crdn/service/bean/CrdnServiceBean.java index a4c29049..ac2df297 100644 --- a/src/main/java/cokr/xit/fims/crdn/service/bean/CrdnServiceBean.java +++ b/src/main/java/cokr/xit/fims/crdn/service/bean/CrdnServiceBean.java @@ -36,22 +36,22 @@ import cokr.xit.foundation.data.DataObject; public class CrdnServiceBean extends AbstractServiceBean implements CrdnService { @Resource(name="crdnCvlcptMapper") - protected CrdnCvlcptMapper crdnCvlcptMapper; + private CrdnCvlcptMapper crdnCvlcptMapper; @Resource(name="crdnListMapper") - protected CrdnListMapper crdnListMapper; + private CrdnListMapper crdnListMapper; @Resource(name="crdnInstMapper") - protected CrdnInstMapper crdnInstMapper; + private CrdnInstMapper crdnInstMapper; @Resource(name="crdnUpdtMapper") - protected CrdnUpdtMapper crdnUpdtMapper; + private CrdnUpdtMapper crdnUpdtMapper; @Resource(name="crdnInfoMapper") private CrdnInfoMapper crdnInfoMapper; @Resource(name="globalStngMapper") - protected GlobalStngMapper globalStngMapper; + private GlobalStngMapper globalStngMapper; @Resource(name="totalInfoMapper") private TotalInfoMapper totalInfoMapper; @@ -69,22 +69,22 @@ public class CrdnServiceBean extends AbstractServiceBean implements CrdnService private ImportMapper importMapper; @Resource(name="crdnStngBean") - protected CrdnStngBean crdnStngBean; + private CrdnStngBean crdnStngBean; @Resource(name="crdnCvlcptMainBean") - protected CrdnCvlcptMainBean crdnCvlcptMainBean; + private CrdnCvlcptMainBean crdnCvlcptMainBean; @Resource(name="crdnBean") - protected CrdnBean crdnBean; + private CrdnBean crdnBean; @Resource(name = "levyExclBean") - protected LevyExclBean levyExclBean; + private LevyExclBean levyExclBean; @Resource(name="crdnSttsHstryBean") - protected CrdnSttsHstryBean crdnSttsHstryBean; + private CrdnSttsHstryBean crdnSttsHstryBean; @Resource(name="crdnPayerHstryBean") - protected CrdnPayerHstryBean crdnPayerHstryBean; + private CrdnPayerHstryBean crdnPayerHstryBean; @Override public List getCrackdownList(CrdnQuery query) { @@ -332,4 +332,9 @@ public class CrdnServiceBean extends AbstractServiceBean implements CrdnService return rtnMsg; } + + @Override + public int countCrdn(CrdnQuery crdnQuery) { + return crdnListMapper.countCrdn(crdnQuery); + } } 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 69cecc55..a60f4ab0 100644 --- a/src/main/java/cokr/xit/fims/crdn/web/Crdn06Controller.java +++ b/src/main/java/cokr/xit/fims/crdn/web/Crdn06Controller.java @@ -40,6 +40,7 @@ public class Crdn06Controller extends ApplicationController { crackdownManagementMain = "/010/main.do" , getCrackdownList = "/010/list.do" , removeCrackdown = "/010/remove.do" + , countCrdn = "/010/countCrdn.do" , getCrackdownInfo = "/020/info.do" , updateCrackdown = "/020/update.do" , getCrackdownStatusInfo = "/030/info.do" @@ -158,6 +159,21 @@ public class Crdn06Controller extends ApplicationController { .addObject("rtnMsg", rtnMsg); } + /**지정한 조회조건으로 단속 건수를 반환한다. + * @param CrdnQuery 조회조건 + * @return jsonView + */ + public ModelAndView countCrdn(CrdnQuery crdnQuery) { + ModelAndView mav = new ModelAndView("jsonView"); + + int crdnCount = crdnService.countCrdn(crdnQuery); + + mav.addObject("crdnCount", crdnCount); + + return mav; + } + + /**지정한 ID의 단속 정보(info)를 반환한다. * @param query 단속 대장 조회 조건 * @return fims/crdn/crdn06020-info 또는 jsonView 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 d039e79a..8dcac925 100644 --- a/src/main/java/cokr/xit/fims/task/web/BpvController.java +++ b/src/main/java/cokr/xit/fims/task/web/BpvController.java @@ -285,6 +285,12 @@ public class BpvController { return super.removeCrackdown(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) { 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 cf386a8c..43d1ff1d 100644 --- a/src/main/java/cokr/xit/fims/task/web/DpvController.java +++ b/src/main/java/cokr/xit/fims/task/web/DpvController.java @@ -325,6 +325,12 @@ public class DpvController { return super.removeCrackdown(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) { 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 d956f260..61b8bf92 100644 --- a/src/main/java/cokr/xit/fims/task/web/EcaController.java +++ b/src/main/java/cokr/xit/fims/task/web/EcaController.java @@ -284,6 +284,12 @@ public class EcaController { return super.removeCrackdown(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) { 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 5d34155f..ec2ac685 100644 --- a/src/main/java/cokr/xit/fims/task/web/PvsController.java +++ b/src/main/java/cokr/xit/fims/task/web/PvsController.java @@ -297,6 +297,12 @@ public class PvsController { return super.removeCrackdown(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) { diff --git a/src/main/resources/sql/mapper/fims/crdn/crdn-list-mapper.xml b/src/main/resources/sql/mapper/fims/crdn/crdn-list-mapper.xml index cba9250b..dc74b8db 100644 --- a/src/main/resources/sql/mapper/fims/crdn/crdn-list-mapper.xml +++ b/src/main/resources/sql/mapper/fims/crdn/crdn-list-mapper.xml @@ -441,5 +441,15 @@ SELECT C.CRDN_ID + \ No newline at end of file diff --git a/src/main/webapp/WEB-INF/jsp/fims/cvlc/cvlc01020-info.jsp b/src/main/webapp/WEB-INF/jsp/fims/cvlc/cvlc01020-info.jsp index 4a5fb7a4..53cfd991 100644 --- a/src/main/webapp/WEB-INF/jsp/fims/cvlc/cvlc01020-info.jsp +++ b/src/main/webapp/WEB-INF/jsp/fims/cvlc/cvlc01020-info.jsp @@ -65,6 +65,14 @@ +
+ + +