From e91e599c86f21674d85a15e08afeb7c9ad4d74d5 Mon Sep 17 00:00:00 2001 From: Leeyh1121 <130335980+Leeyh1121@users.noreply.github.com> Date: Mon, 8 Jul 2024 10:30:34 +0900 Subject: [PATCH] =?UTF-8?q?fit=20:=20=EA=B2=80=EC=83=89=EC=A1=B0=EA=B1=B4?= =?UTF-8?q?=EC=97=90=20=EA=B4=80=ED=95=A0=EA=B4=80=EC=B2=AD=20=EC=B6=94?= =?UTF-8?q?=EA=B0=80.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/cokr/xit/adds/nims/DsuseMgtDocQuery.java | 11 +++++++++++ .../sql/mapper/adds/nims/dsuseMgtDoc-mapper.xml | 3 +++ 2 files changed, 14 insertions(+) diff --git a/src/main/java/cokr/xit/adds/nims/DsuseMgtDocQuery.java b/src/main/java/cokr/xit/adds/nims/DsuseMgtDocQuery.java index b34bc87..538ec6b 100644 --- a/src/main/java/cokr/xit/adds/nims/DsuseMgtDocQuery.java +++ b/src/main/java/cokr/xit/adds/nims/DsuseMgtDocQuery.java @@ -10,6 +10,7 @@ public class DsuseMgtDocQuery extends QueryRequest{ private static final long serialVersionUID = 1L; //검색조건 + private String schSggCd; private String schDateOpt; private String schDateFrom; // 검색 일자 시작 private String schDateTo; // 검색 일자 종료 @@ -52,6 +53,16 @@ public class DsuseMgtDocQuery extends QueryRequest{ private String bsshSttsNm; // 상태 private String prmisnNo; // 허가 번호 + + public String getSchSggCd() { + return ifEmpty(schSggCd, () -> null); + } + + public T setSchSggCd(String schSggCd) { + this.schSggCd = schSggCd; + return self(); + } + public String getSchDateOpt() { return ifEmpty(schDateOpt, () -> null); } diff --git a/src/main/resources/sql/mapper/adds/nims/dsuseMgtDoc-mapper.xml b/src/main/resources/sql/mapper/adds/nims/dsuseMgtDoc-mapper.xml index 5b8efe9..0ceec03 100644 --- a/src/main/resources/sql/mapper/adds/nims/dsuseMgtDoc-mapper.xml +++ b/src/main/resources/sql/mapper/adds/nims/dsuseMgtDoc-mapper.xml @@ -47,6 +47,9 @@ WHERE tdm.use_yn = 'Y' + + AND tdm.dept_cd = #{schSggCd} + AND tdm.hdr_de =]]> #{schDateFrom}