From 77a884dfeef83e6129cfc0d64f148022d2b3980c Mon Sep 17 00:00:00 2001 From: Leeyh1121 <130335980+Leeyh1121@users.noreply.github.com> Date: Thu, 20 Jun 2024 18:13:38 +0900 Subject: [PATCH] =?UTF-8?q?fit=20:=20=EA=B4=80=ED=95=A0=20=EA=B4=80?= =?UTF-8?q?=EC=B2=AD=20=EB=B0=8F=20=EC=B2=98=EB=A6=AC=EC=83=81=ED=83=9C=20?= =?UTF-8?q?=EC=A1=B0=EA=B1=B4=20=EC=B6=94=EA=B0=80.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../xit/adds/nims/DsuseMgtReceiptQuery.java | 22 ++++++++++++++----- .../adds/nims/dsuseMgtReceipt-mapper.xml | 9 ++++++-- 2 files changed, 23 insertions(+), 8 deletions(-) diff --git a/src/main/java/cokr/xit/adds/nims/DsuseMgtReceiptQuery.java b/src/main/java/cokr/xit/adds/nims/DsuseMgtReceiptQuery.java index e78d01c..789e1c9 100644 --- a/src/main/java/cokr/xit/adds/nims/DsuseMgtReceiptQuery.java +++ b/src/main/java/cokr/xit/adds/nims/DsuseMgtReceiptQuery.java @@ -10,10 +10,11 @@ public class DsuseMgtReceiptQuery extends QueryRequest{ private static final long serialVersionUID = 1L; //검색조건 - private String schDateOpt; + private String schSggCd; // 관활 관청 private String schDateFrom; // 검색 일자 시작 private String schDateTo; // 검색 일자 종료 - private String schBsshCd; // 검색 일자 종료 + private String schBsshCd; // 업체코드 + private String schSttsCd; // 진행상태코드 //폐기관리 private String dscdmngId; // 폐기관리 ID @@ -59,12 +60,12 @@ public class DsuseMgtReceiptQuery extends QueryRequest{ private String bsshSttsNm; // 상태 private String prmisnNo; // 허가 번호 - public String getschDateOpt() { - return ifEmpty(schDateOpt, () -> null); + public String getSchSggCd() { + return ifEmpty(schSggCd, () -> null); } - public T setschDateOpt(String schDateOpt) { - this.schDateOpt = schDateOpt; + public T setSchSggCd(String schSggCd) { + this.schSggCd = schSggCd; return self(); } @@ -95,6 +96,15 @@ public class DsuseMgtReceiptQuery extends QueryRequest{ return self(); } + public String getSchSttsCd() { + return ifEmpty(schSttsCd, () -> null); + } + + public T setSchSttsCd(String schSttsCd) { + this.schSttsCd = schSttsCd; + return self(); + } + public String getdscdmngId() { return ifEmpty(dscdmngId, () -> null); } diff --git a/src/main/resources/sql/mapper/adds/nims/dsuseMgtReceipt-mapper.xml b/src/main/resources/sql/mapper/adds/nims/dsuseMgtReceipt-mapper.xml index 81dde78..c9c3e4e 100644 --- a/src/main/resources/sql/mapper/adds/nims/dsuseMgtReceipt-mapper.xml +++ b/src/main/resources/sql/mapper/adds/nims/dsuseMgtReceipt-mapper.xml @@ -50,15 +50,20 @@ WHERE 1=1 + + AND A.DEPT_CD = #{schSggCd} + AND A.HDR_DE =]]> #{schDateFrom} AND A.HDR_DE #{schDateTo} - - + AND B.BSSH_CD = #{schBsshCd} + + + AND A.PRGRS_STTS_CD = #{schSttsCd}