관내 시군구 조회 기능 추가

main
이범준 1 year ago
parent f29e328443
commit 51a06a286e

@ -21,10 +21,10 @@ public class SprtQuery extends CmmnQuery {
private String cvlcptDscsnId; // 민원 상담 ID private String cvlcptDscsnId; // 민원 상담 ID
private List<Keyword> ischKeywordSet; // 통합조회 키워드 private List<Keyword> ischKeywordSet; // 통합조회 키워드
private List<String> ischOnlyDataSet; //특정자료만 조회 private List<String> ischOnlyDataSet; //특정자료만 조회
private List<String> ischExclDataSet; //특정자료 제외 private List<String> ischExclDataSet; //특정자료 제외
private List<String> ischInclDataSet; //특정자료 포함 private String schSggGroupYn;
private String instCd;
private String vhrno; // 차량번호 private String vhrno; // 차량번호
private String rtpyrNo; // 납부자 번호 private String rtpyrNo; // 납부자 번호
@ -148,12 +148,22 @@ public class SprtQuery extends CmmnQuery {
return self(); return self();
} }
public List<String> getIschInclDataSet() { public String getSchSggGroupYn() {
return ifEmpty(ischInclDataSet, () -> null); return ifEmpty(schSggGroupYn, () -> null);
}
public <T extends SprtQuery> T setSchSggGroupYn(String schSggGroupYn) {
this.schSggGroupYn = schSggGroupYn;
return self();
}
public String getInstCd() {
return ifEmpty(instCd, () -> null);
} }
public <T extends SprtQuery> T setIschInclDataSet(List<String> ischInclDataSet) { public <T extends SprtQuery> T setInstCd(String instCd) {
this.ischInclDataSet = ischInclDataSet; this.instCd = instCd;
return self(); return self();
} }

@ -115,6 +115,7 @@ public class Sprt01Controller extends ApplicationController {
String deptCd = currentUser.getDeptCode(); String deptCd = currentUser.getDeptCode();
String sggCd = globalStngMapper.selectSggCd(deptCd); String sggCd = globalStngMapper.selectSggCd(deptCd);
query.setSggCd(sggCd); query.setSggCd(sggCd);
query.setInstCd(institute);
List<DataObject> list = null; List<DataObject> list = null;
list = sprt01Service.getIntegrationDataList(query); list = sprt01Service.getIntegrationDataList(query);
@ -136,7 +137,6 @@ public class Sprt01Controller extends ApplicationController {
List<String> ischOnlyDataSet = new ArrayList<>(); List<String> ischOnlyDataSet = new ArrayList<>();
List<String> ischExclDataSet = new ArrayList<>(); List<String> ischExclDataSet = new ArrayList<>();
List<String> ischInclDataSet = new ArrayList<>();
while(pns.hasMoreElements()) { while(pns.hasMoreElements()) {
@ -154,15 +154,13 @@ public class Sprt01Controller extends ApplicationController {
continue; continue;
} }
if(key.startsWith("ischOnlyData") || key.startsWith("ischExclData") || key.startsWith("ischInclData")) { if(key.startsWith("ischOnlyData") || key.startsWith("ischExclData")) {
String word = this.fnFirstLower(key.substring(12)); String word = this.fnFirstLower(key.substring(12));
if(key.startsWith("ischOnlyData")) { if(key.startsWith("ischOnlyData")) {
ischOnlyDataSet.add(word); ischOnlyDataSet.add(word);
} else if(key.startsWith("ischExclData")) { } else if(key.startsWith("ischExclData")) {
ischExclDataSet.add(word); ischExclDataSet.add(word);
} else if(key.startsWith("ischInclData")) {
ischInclDataSet.add(word);
} }
continue; continue;
} }
@ -226,7 +224,6 @@ public class Sprt01Controller extends ApplicationController {
query.setIschKeywordSet(ischKeywordSet); query.setIschKeywordSet(ischKeywordSet);
query.setIschOnlyDataSet(ischOnlyDataSet); query.setIschOnlyDataSet(ischOnlyDataSet);
query.setIschExclDataSet(ischExclDataSet); query.setIschExclDataSet(ischExclDataSet);
query.setIschInclDataSet(ischInclDataSet);
} }
private String fnFirstLower(String string) { private String fnFirstLower(String string) {

@ -159,7 +159,14 @@ LEFT OUTER JOIN TB_PAYER P ON (C.RTPYR_ID = P.RTPYR_ID)
LEFT OUTER JOIN TB_LEVY L ON (C.CRDN_ID = L.CRDN_ID AND L.DEL_YN = 'N') /* 부과 대장 */ LEFT OUTER JOIN TB_LEVY L ON (C.CRDN_ID = L.CRDN_ID AND L.DEL_YN = 'N') /* 부과 대장 */
LEFT OUTER JOIN TB_RCVMT R ON (L.LEVY_ID = R.LEVY_ID AND R.DEL_YN = 'N') /* 수납 대장 */ LEFT OUTER JOIN TB_RCVMT R ON (L.LEVY_ID = R.LEVY_ID AND R.DEL_YN = 'N') /* 수납 대장 */
WHERE C.DEL_YN = 'N' WHERE C.DEL_YN = 'N'
<choose>
<when test='schSggGroupYn == "Y"'>
AND C.SGG_CD IN (SELECT SGG_CD FROM TB_SGG_INFO WHERE INST_CD = #{instCd})
</when>
<otherwise>
AND C.SGG_CD = #{sggCd} AND C.SGG_CD = #{sggCd}
</otherwise>
</choose>
<if test="taskSeCd != null"> <if test="taskSeCd != null">
AND C.TASK_SE_CD = #{taskSeCd} AND C.TASK_SE_CD = #{taskSeCd}
</if> </if>
@ -284,13 +291,6 @@ LEFT OUTER JOIN TB_RCVMT R ON (L.LEVY_ID = R.LEVY_ID AND R.DEL_YN = 'N
</foreach> </foreach>
</if> </if>
<!-- 특정자료 포함 -->
<if test="ischInclDataSet != null">
<foreach collection="ischInclDataSet" item="item">
</foreach>
</if>
<!-- 동적 검색 --> <!-- 동적 검색 -->
<if test="by != null and by != '' and term != null"> <if test="by != null and by != '' and term != null">
<choose> <choose>

@ -211,7 +211,7 @@ integrationSearch.fnSearchList = () => {
if(!key.startsWith("isch")){ if(!key.startsWith("isch")){
continue; continue;
} }
if(key.startsWith("ischOnlyData") || key.startsWith("ischExclData") || key.startsWith("ischInclData") if(key.startsWith("ischOnlyData") || key.startsWith("ischExclData")
|| key.endsWith("Similar")){ || key.endsWith("Similar")){
continue; continue;
} }

@ -52,8 +52,9 @@
<!-- 메인 조건 --> <!-- 메인 조건 -->
<div class="container-search"> <div class="container-search">
<div class="row g-1"> <div class="row g-1">
<!-- 업무구분 --> <!-- 업무구분 -->
<div class="col-12"> <div class="col-8">
<label class="form-label fw-bold form-search-title text-end">업무구분</label> <label class="form-label fw-bold form-search-title text-end">업무구분</label>
<span class="form-search-linebox"> <span class="form-search-linebox">
<label> <label>
@ -70,6 +71,12 @@
</c:forEach> </c:forEach>
</span> </span>
</div> </div>
<div class="col-4">
<label>
<input type="checkbox" id="schSggGroupYn--${pageName}" name="schSggGroupYn"
class="form-check-input" value="Y" />관내 시군구 조회
</label>
</div>
<!-- 차량번호 --> <!-- 차량번호 -->
<div class="col-4"> <div class="col-4">

Loading…
Cancel
Save