From 0acc774a062ad13ef084a6352d0aae02220c8fd9 Mon Sep 17 00:00:00 2001 From: leebeomjun Date: Tue, 20 Jun 2023 18:18:16 +0900 Subject: [PATCH] =?UTF-8?q?=EC=97=85=EB=AC=B4=EC=A7=80=EC=9B=90(=ED=86=B5?= =?UTF-8?q?=ED=95=A9=EC=A1=B0=ED=9A=8C,=EA=B0=9C=EB=B3=84=EC=B4=9D?= =?UTF-8?q?=EC=A0=95=EB=B3=B4)=20=EA=B4=80=EB=A0=A8=20=ED=8C=8C=EC=9D=BC?= =?UTF-8?q?=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/cokr/xit/fims/sprt/Sprt.java | 14 ++++++ .../cokr/xit/fims/sprt/dao/Sprt01Mapper.java | 23 +++++++++ .../xit/fims/sprt/service/Sprt01Service.java | 18 +++++++ .../cokr/xit/fims/sprt/service/SprtQuery.java | 19 +++++++ .../fims/sprt/service/bean/Sprt01Bean.java | 28 +++++++++++ .../sprt/service/bean/Sprt01ServiceBean.java | 25 ++++++++++ .../sprt/web/AbstractSprt01Controller.java | 49 +++++++++++++++++++ .../xit/fims/sprt/web/Sprt01Controller.java | 33 +++++++++++++ .../sql/mapper/fims/sprt/sprt01-mapper.xml | 12 +++++ .../WEB-INF/jsp/fims/sprt/sprt01010-main.jsp | 2 + .../WEB-INF/jsp/fims/sprt/sprt01020-info.jsp | 2 + 11 files changed, 225 insertions(+) create mode 100644 src/main/java/cokr/xit/fims/sprt/Sprt.java create mode 100644 src/main/java/cokr/xit/fims/sprt/dao/Sprt01Mapper.java create mode 100644 src/main/java/cokr/xit/fims/sprt/service/Sprt01Service.java create mode 100644 src/main/java/cokr/xit/fims/sprt/service/SprtQuery.java create mode 100644 src/main/java/cokr/xit/fims/sprt/service/bean/Sprt01Bean.java create mode 100644 src/main/java/cokr/xit/fims/sprt/service/bean/Sprt01ServiceBean.java create mode 100644 src/main/java/cokr/xit/fims/sprt/web/AbstractSprt01Controller.java create mode 100644 src/main/java/cokr/xit/fims/sprt/web/Sprt01Controller.java create mode 100644 src/main/resources/sql/mapper/fims/sprt/sprt01-mapper.xml create mode 100644 src/main/webapp/WEB-INF/jsp/fims/sprt/sprt01010-main.jsp create mode 100644 src/main/webapp/WEB-INF/jsp/fims/sprt/sprt01020-info.jsp diff --git a/src/main/java/cokr/xit/fims/sprt/Sprt.java b/src/main/java/cokr/xit/fims/sprt/Sprt.java new file mode 100644 index 00000000..851c9315 --- /dev/null +++ b/src/main/java/cokr/xit/fims/sprt/Sprt.java @@ -0,0 +1,14 @@ +package cokr.xit.fims.sprt; + +import cokr.xit.foundation.AbstractEntity; +import lombok.Getter; +import lombok.Setter; + +/** 업무지원 엔티티 + * @author leebj + */ +@Getter +@Setter +public class Sprt extends AbstractEntity { + +} diff --git a/src/main/java/cokr/xit/fims/sprt/dao/Sprt01Mapper.java b/src/main/java/cokr/xit/fims/sprt/dao/Sprt01Mapper.java new file mode 100644 index 00000000..402cb12c --- /dev/null +++ b/src/main/java/cokr/xit/fims/sprt/dao/Sprt01Mapper.java @@ -0,0 +1,23 @@ +package cokr.xit.fims.sprt.dao; + +import java.util.List; + +import org.egovframe.rte.psl.dataaccess.mapper.Mapper; + +import cokr.xit.fims.sprt.service.SprtQuery; +import cokr.xit.foundation.component.AbstractMapper; +import cokr.xit.foundation.data.DataObject; + +/**업무지원 DAO + * @author leebj + */ +@Mapper("sprt01Mapper") +public interface Sprt01Mapper extends AbstractMapper { + + /**지정하는 단속 아이디의 개별총정보를 반환한다. + * @param crdnId 단속 아이디 + * @return 개별총정보 + */ + DataObject getTotalDataInfo(String crdnId); + +} diff --git a/src/main/java/cokr/xit/fims/sprt/service/Sprt01Service.java b/src/main/java/cokr/xit/fims/sprt/service/Sprt01Service.java new file mode 100644 index 00000000..dca1387b --- /dev/null +++ b/src/main/java/cokr/xit/fims/sprt/service/Sprt01Service.java @@ -0,0 +1,18 @@ +package cokr.xit.fims.sprt.service; + + +import cokr.xit.foundation.data.DataObject; + +/**업무지원 서비스를 제공한다. + * + * @author leebj + */ +public interface Sprt01Service { + + /**지정하는 단속아이디의 개별총정보를 반환한다. + * @param crdnId 단속 아이디 + * @return 개별총정보 + */ + DataObject getTotalDataInfo(String crdnId); +} diff --git a/src/main/java/cokr/xit/fims/sprt/service/SprtQuery.java b/src/main/java/cokr/xit/fims/sprt/service/SprtQuery.java new file mode 100644 index 00000000..e2ffded3 --- /dev/null +++ b/src/main/java/cokr/xit/fims/sprt/service/SprtQuery.java @@ -0,0 +1,19 @@ +package cokr.xit.fims.sprt.service; + +import cokr.xit.foundation.component.QueryRequest; + +public class SprtQuery extends QueryRequest { + + private static final long serialVersionUID = 1L; + + private String crdnId; + + public String getCrdnId() { + return ifEmpty(crdnId, () -> null); + } + + public T setCrdnId(String crdnId) { + this.crdnId = crdnId; + return self(); + } +} diff --git a/src/main/java/cokr/xit/fims/sprt/service/bean/Sprt01Bean.java b/src/main/java/cokr/xit/fims/sprt/service/bean/Sprt01Bean.java new file mode 100644 index 00000000..370eba84 --- /dev/null +++ b/src/main/java/cokr/xit/fims/sprt/service/bean/Sprt01Bean.java @@ -0,0 +1,28 @@ +package cokr.xit.fims.sprt.service.bean; + +import javax.annotation.Resource; + +import org.springframework.stereotype.Component; + +import cokr.xit.fims.sprt.dao.Sprt01Mapper; +import cokr.xit.foundation.AbstractComponent; +import cokr.xit.foundation.data.DataObject; + +/** 업무지원 Bean + * @author leebj + */ +@Component("sprt01Bean") +public class Sprt01Bean extends AbstractComponent { + + @Resource(name = "sprt01Mapper") + private Sprt01Mapper sprt01Mapper; + + /**지정하는 단속아이디의 개별총정보를 반환한다. + * @param crdnId 단속 아이디 + * @return 개별총정보 + */ + public DataObject getTotalDataInfo(String crdnId) { + return sprt01Mapper.getTotalDataInfo(crdnId); + } + +} diff --git a/src/main/java/cokr/xit/fims/sprt/service/bean/Sprt01ServiceBean.java b/src/main/java/cokr/xit/fims/sprt/service/bean/Sprt01ServiceBean.java new file mode 100644 index 00000000..b4cd2cce --- /dev/null +++ b/src/main/java/cokr/xit/fims/sprt/service/bean/Sprt01ServiceBean.java @@ -0,0 +1,25 @@ +package cokr.xit.fims.sprt.service.bean; + +import javax.annotation.Resource; + +import org.springframework.stereotype.Service; + +import cokr.xit.fims.sprt.service.Sprt01Service; +import cokr.xit.foundation.component.AbstractServiceBean; +import cokr.xit.foundation.data.DataObject; + +/**업무지원 서비스 인터페이스의 구현체 + * @author leebj + */ +@Service("sprt01Service") +public class Sprt01ServiceBean extends AbstractServiceBean implements Sprt01Service { + + /** 업무지원 Bean */ + @Resource(name="sprt01Bean") + protected Sprt01Bean sprt01Bean; + + @Override + public DataObject getTotalDataInfo(String crdnId) { + return sprt01Bean.getTotalDataInfo(crdnId); + } +} diff --git a/src/main/java/cokr/xit/fims/sprt/web/AbstractSprt01Controller.java b/src/main/java/cokr/xit/fims/sprt/web/AbstractSprt01Controller.java new file mode 100644 index 00000000..87451b41 --- /dev/null +++ b/src/main/java/cokr/xit/fims/sprt/web/AbstractSprt01Controller.java @@ -0,0 +1,49 @@ +package cokr.xit.fims.sprt.web; + +import java.util.List; +import java.util.Map; + +import javax.annotation.Resource; + +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.servlet.ModelAndView; +import cokr.xit.fims.sprt.service.Sprt01Service; +import cokr.xit.base.code.CommonCode; +import cokr.xit.base.web.ApplicationController; + + +@RequestMapping(name="업무지원", value="/sprt/sprt01") +public class AbstractSprt01Controller extends ApplicationController { + + @Resource(name="sprt01Service") + private Sprt01Service sprt01Service; + + /** 통합조회 메인화면을 연다. + * @return fims/sprt/sprt01010-main + */ + @RequestMapping(name="통합조회 메인", value="/010/main.do") + public ModelAndView integratedInquireMain() { + ModelAndView mav = new ModelAndView(); + mav.setViewName("fims/sprt/sprt01010-main"); + mav.addObject("pageSuffix", "sprt01010-main"); + + + return mav; + } + + /**지정하는 단속아이디의 개별총정보를 반환한다. + * @param crdnId 단속 아이디 + * @return fims/sprt/sprt01020-info + *
 {
+	 *     "totalDataInfo": {...}
+	 * }
+ */ + public ModelAndView getTotalDataInfo(String crdnId) { + ModelAndView mav = new ModelAndView("fims/sprt/sprt01020-info"); + if (!isEmpty(crdnId)) { + mav.addObject("totalDataInfo", sprt01Service.getTotalDataInfo(crdnId)); + } + return mav; + } + +} diff --git a/src/main/java/cokr/xit/fims/sprt/web/Sprt01Controller.java b/src/main/java/cokr/xit/fims/sprt/web/Sprt01Controller.java new file mode 100644 index 00000000..956b01cc --- /dev/null +++ b/src/main/java/cokr/xit/fims/sprt/web/Sprt01Controller.java @@ -0,0 +1,33 @@ +package cokr.xit.fims.sprt.web; + + +import org.springframework.stereotype.Controller; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.servlet.ModelAndView; + +/**업무지원 서비스 웹 컨트롤러.
+ * {웹 컨텍스트}/sprt/sprt01 로 접근할 수 있다. + * @author leebj + */ +@Controller +public class Sprt01Controller extends AbstractSprt01Controller { + + + @RequestMapping(name="주정차과태료업무 개별총정보 조회", value="/020/PVS/info.do") + public ModelAndView getPvsTotalDataInfo(String crdnId) { + return getTotalDataInfo(crdnId); + } + @RequestMapping(name="전용차로과태료업무 개별총정보 조회", value="/020/BPV/info.do") + public ModelAndView getBpvTotalDataInfo(String crdnId) { + return getTotalDataInfo(crdnId); + } + @RequestMapping(name="장애인과태료업무 개별총정보 조회", value="/020/DPV/info.do") + public ModelAndView getDpvTotalDataInfo(String crdnId) { + return getTotalDataInfo(crdnId); + } + @RequestMapping(name="전기차과태료업무 개별총정보 조회", value="/020/ECA/info.do") + public ModelAndView getEcaTotalDataInfo(String crdnId) { + return getTotalDataInfo(crdnId); + } + +} diff --git a/src/main/resources/sql/mapper/fims/sprt/sprt01-mapper.xml b/src/main/resources/sql/mapper/fims/sprt/sprt01-mapper.xml new file mode 100644 index 00000000..ec5cb218 --- /dev/null +++ b/src/main/resources/sql/mapper/fims/sprt/sprt01-mapper.xml @@ -0,0 +1,12 @@ + + + + + + + \ No newline at end of file diff --git a/src/main/webapp/WEB-INF/jsp/fims/sprt/sprt01010-main.jsp b/src/main/webapp/WEB-INF/jsp/fims/sprt/sprt01010-main.jsp new file mode 100644 index 00000000..fb7f94eb --- /dev/null +++ b/src/main/webapp/WEB-INF/jsp/fims/sprt/sprt01010-main.jsp @@ -0,0 +1,2 @@ +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" isELIgnored="false" session="false"%> +<%@ include file="/WEB-INF/jsp/include/taglib.jsp"%> \ No newline at end of file diff --git a/src/main/webapp/WEB-INF/jsp/fims/sprt/sprt01020-info.jsp b/src/main/webapp/WEB-INF/jsp/fims/sprt/sprt01020-info.jsp new file mode 100644 index 00000000..de9c714b --- /dev/null +++ b/src/main/webapp/WEB-INF/jsp/fims/sprt/sprt01020-info.jsp @@ -0,0 +1,2 @@ +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" isELIgnored="false" session="false"%> +<%@ include file="/WEB-INF/jsp/include/taglib.jsp"%>