관내시군구 조회 수정

main
이범준 1 year ago
parent fbd1cdb289
commit 1deee8a296

@ -23,8 +23,6 @@ public class SprtQuery extends CmmnQuery {
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 String schSggGroupYn;
private String instCd;
private String vhrno; // 차량번호 private String vhrno; // 차량번호
private String rtpyrNo; // 납부자 번호 private String rtpyrNo; // 납부자 번호
@ -148,26 +146,6 @@ public class SprtQuery extends CmmnQuery {
return self(); return self();
} }
public String getSchSggGroupYn() {
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 setInstCd(String instCd) {
this.instCd = instCd;
return self();
}
public String getVhrno() { public String getVhrno() {
return ifEmpty(vhrno, () -> null); return ifEmpty(vhrno, () -> null);
} }

@ -59,13 +59,19 @@ public class Sprt01Controller extends ApplicationController {
* @return /fims/sprt/sprt01010 * @return /fims/sprt/sprt01010
*/ */
public ModelAndView integrationSearchMain(HttpServletRequest req) { public ModelAndView integrationSearchMain(HttpServletRequest req) {
ModelAndView mav = new ModelAndView("fims/sprt/sprt01010-main"); ModelAndView mav = new ModelAndView("fims/sprt/sprt01010-main");
String institute = currentUser().getInstitute();
String account = currentUser().getAccount();
ManagedUser currentUser = userMapper.getUser(account, institute);
String deptCd = currentUser.getDeptCode();
String sggCd = globalStngMapper.selectSggCd(deptCd);
mav.addObject("sggCd", sggCd);
Map<String, List<CommonCode>> commonCodes = getCodesOf("FIM003", "FIM010", "FIM026", "FIM054" Map<String, List<CommonCode>> commonCodes = getCodesOf("FIM003", "FIM010", "FIM026", "FIM054"
,"FIM004","FIM005","FIM006","FIM061","FIM064"); ,"FIM004","FIM005","FIM006","FIM061","FIM064");
mav.addObject("VLTNList", null);
mav.addObject("FIM003List", commonCodes.get("FIM003")); mav.addObject("FIM003List", commonCodes.get("FIM003"));
mav.addObject("FIM010List", commonCodes.get("FIM010")); mav.addObject("FIM010List", commonCodes.get("FIM010"));
mav.addObject("FIM026List", commonCodes.get("FIM026")); mav.addObject("FIM026List", commonCodes.get("FIM026"));
@ -109,14 +115,6 @@ public class Sprt01Controller extends ApplicationController {
this.makeIntegrationSearchQuery(query, req); this.makeIntegrationSearchQuery(query, req);
String institute = currentUser().getInstitute();
String account = currentUser().getAccount();
ManagedUser currentUser = userMapper.getUser(account, institute);
String deptCd = currentUser.getDeptCode();
String sggCd = globalStngMapper.selectSggCd(deptCd);
query.setSggCd(sggCd);
query.setInstCd(institute);
List<DataObject> list = null; List<DataObject> list = null;
list = sprt01Service.getIntegrationDataList(query); list = sprt01Service.getIntegrationDataList(query);

@ -159,14 +159,9 @@ 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> <if test='sggCd != null'>
<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> </if>
</choose>
<if test="taskSeCd != null"> <if test="taskSeCd != null">
AND C.TASK_SE_CD = #{taskSeCd} AND C.TASK_SE_CD = #{taskSeCd}
</if> </if>

@ -73,8 +73,8 @@
</div> </div>
<div class="col-4"> <div class="col-4">
<label> <label>
<input type="checkbox" id="schSggGroupYn--${pageName}" name="schSggGroupYn" <input type="checkbox" id="sggCd--${pageName}" name="sggCd"
class="form-check-input" value="Y" />관내 시군구 조회 class="form-check-input" value="${sggCd}" />관내 시군구 조회
</label> </label>
</div> </div>

Loading…
Cancel
Save