fit : 검색조건에 관할관청 추가.

dev
Leeyh1121 4 months ago
parent ba74ccd52f
commit e91e599c86

@ -10,6 +10,7 @@ public class DsuseMgtDocQuery extends QueryRequest{
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
//검색조건 //검색조건
private String schSggCd;
private String schDateOpt; private String schDateOpt;
private String schDateFrom; // 검색 일자 시작 private String schDateFrom; // 검색 일자 시작
private String schDateTo; // 검색 일자 종료 private String schDateTo; // 검색 일자 종료
@ -52,6 +53,16 @@ public class DsuseMgtDocQuery extends QueryRequest{
private String bsshSttsNm; // 상태 private String bsshSttsNm; // 상태
private String prmisnNo; // 허가 번호 private String prmisnNo; // 허가 번호
public String getSchSggCd() {
return ifEmpty(schSggCd, () -> null);
}
public <T extends DsuseMgtDocQuery> T setSchSggCd(String schSggCd) {
this.schSggCd = schSggCd;
return self();
}
public String getSchDateOpt() { public String getSchDateOpt() {
return ifEmpty(schDateOpt, () -> null); return ifEmpty(schDateOpt, () -> null);
} }

@ -47,6 +47,9 @@
<include refid="utility.paging-prefix" /> <include refid="utility.paging-prefix" />
<include refid="select" /> <include refid="select" />
WHERE tdm.use_yn = 'Y' WHERE tdm.use_yn = 'Y'
<if test="schSggCd != null">
AND tdm.dept_cd = #{schSggCd} <!-- 관할 관청 -->
</if>
<if test="schDateFrom != null"> <if test="schDateFrom != null">
AND tdm.hdr_de <![CDATA[>=]]> #{schDateFrom} <!-- 취급 일자 시작 --> AND tdm.hdr_de <![CDATA[>=]]> #{schDateFrom} <!-- 취급 일자 시작 -->
</if> </if>

Loading…
Cancel
Save