From 4778d740565221277ae80a1ea2e6a3ad3e9d7073 Mon Sep 17 00:00:00 2001 From: "Jonguk. Lim" Date: Tue, 23 Jul 2024 11:51:54 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20=ED=8F=90=EA=B8=B0=EB=B3=B4=EA=B3=A0?= =?UTF-8?q?=ED=86=B5=EA=B3=84=20-=20=EB=A7=88=EC=95=BD=EB=A5=98=EA=B5=AC?= =?UTF-8?q?=EB=B6=84=EB=B3=84=ED=86=B5=EA=B3=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../adds/nims/DsuseMgtStatisticsQuery.java | 103 +++++ .../nims/dao/DsuseMgtStatisticsMapper.java | 23 ++ .../adds/nims/service/AddsNimsService.java | 3 + .../service/bean/AddsNimsServiceBean.java | 10 + .../xit/adds/nims/web/AddsNimsController.java | 25 ++ .../adds/nims/dsuseMgtStatistics-mapper.xml | 59 +++ .../jsp/adds/nims/dsuseMgtStatistics-main.jsp | 374 ++++++++++++++++++ 7 files changed, 597 insertions(+) create mode 100644 src/main/java/cokr/xit/adds/nims/DsuseMgtStatisticsQuery.java create mode 100644 src/main/java/cokr/xit/adds/nims/dao/DsuseMgtStatisticsMapper.java create mode 100644 src/main/resources/sql/mapper/adds/nims/dsuseMgtStatistics-mapper.xml create mode 100644 src/main/webapp/WEB-INF/jsp/adds/nims/dsuseMgtStatistics-main.jsp diff --git a/src/main/java/cokr/xit/adds/nims/DsuseMgtStatisticsQuery.java b/src/main/java/cokr/xit/adds/nims/DsuseMgtStatisticsQuery.java new file mode 100644 index 0000000..509c919 --- /dev/null +++ b/src/main/java/cokr/xit/adds/nims/DsuseMgtStatisticsQuery.java @@ -0,0 +1,103 @@ +package cokr.xit.adds.nims; + +import cokr.xit.foundation.component.QueryRequest; + +/**폐기관리접수 정보 조회 요청 +* +*/ +public class DsuseMgtStatisticsQuery extends QueryRequest{ + + private static final long serialVersionUID = 1L; + + //검색조건 + private String schSggCd; // 관활 관청 + private String schDateFrom; // 검색 일자 시작 + private String schDateTo; // 검색 일자 종료 + private String schBsshCd; // 업체코드 + private String schSttsCd; // 진행상태코드 + private String deptCd; // 부서 코드 + private String userId; // 사용자 ID + private String useYn; // 사용 여부 + private String nimsRptYn; // NIMS 보고 여부 + + public String getNimsRptYn() { + return ifEmpty(nimsRptYn, () -> null); + } + + public T setNimsRptYn(String nimsRptYn) { + this.nimsRptYn = nimsRptYn; + return self(); + } + + public String getSchSggCd() { + return ifEmpty(schSggCd, () -> null); + } + + public T setSchSggCd(String schSggCd) { + this.schSggCd = schSggCd; + return self(); + } + + public String getSchDateFrom() { + return ifEmpty(schDateFrom, () -> null); + } + + public T setSchDateFrom(String schDateFrom) { + this.schDateFrom = schDateFrom; + return self(); + } + + public String getSchDateTo() { + return ifEmpty(schDateTo, () -> null); + } + + public T setSchDateTo(String schDateTo) { + this.schDateTo = schDateTo; + return self(); + } + + public String getSchBsshCd() { + return ifEmpty(schBsshCd, () -> null); + } + + public T setSchBsshCd(String schBsshCd) { + this.schBsshCd = schBsshCd; + return self(); + } + + public String getSchSttsCd() { + return ifEmpty(schSttsCd, () -> null); + } + + public T setSchSttsCd(String schSttsCd) { + this.schSttsCd = schSttsCd; + return self(); + } + + public String getdeptCd() { + return ifEmpty(deptCd, () -> null); + } + + public T setdeptCd(String deptCd) { + this.deptCd = deptCd; + return self(); + } + + public String getuserId() { + return ifEmpty(userId, () -> null); + } + + public T setuserId(String userId) { + this.userId = userId; + return self(); + } + + public String getuseYn() { + return ifEmpty(useYn, () -> null); + } + + public T setuseYn(String useYn) { + this.useYn = useYn; + return self(); + } +} diff --git a/src/main/java/cokr/xit/adds/nims/dao/DsuseMgtStatisticsMapper.java b/src/main/java/cokr/xit/adds/nims/dao/DsuseMgtStatisticsMapper.java new file mode 100644 index 0000000..0b63570 --- /dev/null +++ b/src/main/java/cokr/xit/adds/nims/dao/DsuseMgtStatisticsMapper.java @@ -0,0 +1,23 @@ +package cokr.xit.adds.nims.dao; + +import java.util.List; + +import org.egovframe.rte.psl.dataaccess.mapper.Mapper; + +import cokr.xit.adds.nims.DsuseMgtStatisticsQuery; +import cokr.xit.foundation.component.AbstractMapper; +import cokr.xit.foundation.data.DataObject; + +/** + * 폐기관리 통계 정보 DAO + */ +@Mapper("dsuseMgtStatisticsMapper") +public interface DsuseMgtStatisticsMapper extends AbstractMapper { + + /** + * 마약/항정 and 중점/일반 별 통계 + * @return 마약/항정 and 중점/일반 별 통계 목록 + */ + List selectDsuseMgtNcrdAndPrtmStatistics(DsuseMgtStatisticsQuery query); + +} diff --git a/src/main/java/cokr/xit/adds/nims/service/AddsNimsService.java b/src/main/java/cokr/xit/adds/nims/service/AddsNimsService.java index a028d51..b45bf6e 100644 --- a/src/main/java/cokr/xit/adds/nims/service/AddsNimsService.java +++ b/src/main/java/cokr/xit/adds/nims/service/AddsNimsService.java @@ -4,9 +4,12 @@ import java.util.List; import cokr.xit.adds.nims.DsuseMgtDetailQuery; import cokr.xit.adds.nims.DsuseMgtRsltQuery; +import cokr.xit.adds.nims.DsuseMgtStatisticsQuery; import cokr.xit.foundation.data.DataObject; public interface AddsNimsService { List getDsuseMgtDetailList(DsuseMgtDetailQuery query); List getDsuseMgtRsltImgList(DsuseMgtRsltQuery query); + + List getDsuseMgtNcrdAndPrtmStatistics(DsuseMgtStatisticsQuery query); } diff --git a/src/main/java/cokr/xit/adds/nims/service/bean/AddsNimsServiceBean.java b/src/main/java/cokr/xit/adds/nims/service/bean/AddsNimsServiceBean.java index b2f3005..fa77ef3 100644 --- a/src/main/java/cokr/xit/adds/nims/service/bean/AddsNimsServiceBean.java +++ b/src/main/java/cokr/xit/adds/nims/service/bean/AddsNimsServiceBean.java @@ -8,8 +8,10 @@ import org.springframework.stereotype.Service; import cokr.xit.adds.nims.DsuseMgtDetailQuery; import cokr.xit.adds.nims.DsuseMgtRsltQuery; +import cokr.xit.adds.nims.DsuseMgtStatisticsQuery; import cokr.xit.adds.nims.dao.DsuseMgtDetailMapper; import cokr.xit.adds.nims.dao.DsuseMgtRsltMapper; +import cokr.xit.adds.nims.dao.DsuseMgtStatisticsMapper; import cokr.xit.adds.nims.service.AddsNimsService; import cokr.xit.foundation.component.AbstractServiceBean; import cokr.xit.foundation.data.DataObject; @@ -23,6 +25,9 @@ public class AddsNimsServiceBean extends AbstractServiceBean implements AddsNims @Resource(name = "dsuseMgtRsltMapper") private DsuseMgtRsltMapper dsuseMgtRsltMapper; + @Resource(name = "dsuseMgtStatisticsMapper") + private DsuseMgtStatisticsMapper dsuseMgtStatisticsMapper; + @Override public List getDsuseMgtDetailList(DsuseMgtDetailQuery query){ return dsuseMgtDetailMapper.selectDsuseMgtDetailList(query); @@ -32,4 +37,9 @@ public class AddsNimsServiceBean extends AbstractServiceBean implements AddsNims public List getDsuseMgtRsltImgList(DsuseMgtRsltQuery query) { return dsuseMgtRsltMapper.selectDsuseMgtRsltImgList(query); } + + @Override + public List getDsuseMgtNcrdAndPrtmStatistics(DsuseMgtStatisticsQuery query) { + return dsuseMgtStatisticsMapper.selectDsuseMgtNcrdAndPrtmStatistics(query); + } } diff --git a/src/main/java/cokr/xit/adds/nims/web/AddsNimsController.java b/src/main/java/cokr/xit/adds/nims/web/AddsNimsController.java index 74eb152..75e02ab 100644 --- a/src/main/java/cokr/xit/adds/nims/web/AddsNimsController.java +++ b/src/main/java/cokr/xit/adds/nims/web/AddsNimsController.java @@ -43,6 +43,7 @@ import cokr.xit.adds.nims.DsuseMgtDetailQuery; import cokr.xit.adds.nims.DsuseMgtDocQuery; import cokr.xit.adds.nims.DsuseMgtReceiptQuery; import cokr.xit.adds.nims.DsuseMgtRsltQuery; +import cokr.xit.adds.nims.DsuseMgtStatisticsQuery; import cokr.xit.adds.nims.service.AddsNimsService; import cokr.xit.adds.nims.service.DsuseMgtDocService; import cokr.xit.adds.nims.service.DsuseMgtReceiptService; @@ -336,6 +337,20 @@ public class AddsNimsController extends ApplicationController { // 보고 문서 관리 //------------------------------------------------------------------------------------------------- + //------------------------------------------------------------------------------------------------- + // 폐기 관리 통계 + //------------------------------------------------------------------------------------------------- + @RequestMapping(value = "/getDsuseMgtNcrdAndPrtmStatistics.do", name="마약/항정 and 중점/일반 별 통계") + public ModelAndView getDsuseMgtNcrdAndPrtmStatistics(DsuseMgtStatisticsQuery query) { + //query.setOrderBy("dsuse_de DESC, dsuse_mth_cd, dscdmng_id"); + //setFetchSize(query); + + return setCollectionInfo(new ModelAndView("jsonView"), addsNimsService.getDsuseMgtNcrdAndPrtmStatistics(query),"",""); + // return addsNimsService.getDsuseMgtNcrdAndPrtmStatistics(query); + } + //------------------------------------------------------------------------------------------------- + // 보고 문서 관리 + //------------------------------------------------------------------------------------------------- //------------------------------------------------------------------------------------------------- @@ -394,6 +409,16 @@ public class AddsNimsController extends ApplicationController { mav.addObject("pageName", "dsuseMgtDoc"); return mav; } + + @RequestMapping(value = "/dsuseMgtStatistics.do", name="폐기관리 통계 메인") + public ModelAndView dsuseMgtStatistics() { + ModelAndView mav = new ModelAndView("adds/nims/dsuseMgtStatistics-main"); + setCmmCode("ADDS11", mav); + List deptList = sggDeptService.getDepartmentList(new DepartmentQuery()); + mav.addObject("DEPTList", deptList); + + return mav.addObject("pageName", "dsuseMgtStatistics") /* View(jsp)에서 사용할 id 뒤에 붙일 suffix */; + } //------------------------------------------------------------------------------------------------- // menu 호출 처리 //------------------------------------------------------------------------------------------------- diff --git a/src/main/resources/sql/mapper/adds/nims/dsuseMgtStatistics-mapper.xml b/src/main/resources/sql/mapper/adds/nims/dsuseMgtStatistics-mapper.xml new file mode 100644 index 0000000..a59a309 --- /dev/null +++ b/src/main/resources/sql/mapper/adds/nims/dsuseMgtStatistics-mapper.xml @@ -0,0 +1,59 @@ + + + + + + + diff --git a/src/main/webapp/WEB-INF/jsp/adds/nims/dsuseMgtStatistics-main.jsp b/src/main/webapp/WEB-INF/jsp/adds/nims/dsuseMgtStatistics-main.jsp new file mode 100644 index 0000000..2e703c6 --- /dev/null +++ b/src/main/webapp/WEB-INF/jsp/adds/nims/dsuseMgtStatistics-main.jsp @@ -0,0 +1,374 @@ +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" isELIgnored="false" session="false"%> +<%@ include file="/WEB-INF/jsp/include/taglib.jsp"%> +폐기 보고 확인 + +
+ +
+ +
+ +
+ +
+
+
+
+
+
+ + +
+ +
+ + +
+ + +
+ + +