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}