민원,단속 목록 조회시 시군구코드 조회조건 추가

main
이범준 1 year ago
parent 537b667406
commit ce1f71f13d

@ -8,9 +8,12 @@ import javax.annotation.Resource;
import org.springframework.web.servlet.ModelAndView; import org.springframework.web.servlet.ModelAndView;
import cokr.xit.base.code.CommonCode; import cokr.xit.base.code.CommonCode;
import cokr.xit.base.user.ManagedUser;
import cokr.xit.base.user.dao.UserMapper;
import cokr.xit.base.web.ApplicationController; import cokr.xit.base.web.ApplicationController;
import cokr.xit.fims.crdn.CrdnQuery; import cokr.xit.fims.crdn.CrdnQuery;
import cokr.xit.fims.crdn.dao.CrdnInfoMapper; import cokr.xit.fims.crdn.dao.CrdnInfoMapper;
import cokr.xit.fims.crdn.dao.GlobalStngMapper;
import cokr.xit.fims.crdn.service.CrdnService; import cokr.xit.fims.crdn.service.CrdnService;
import cokr.xit.fims.crdn.service.CrdnStngService; import cokr.xit.fims.crdn.service.CrdnStngService;
import cokr.xit.foundation.data.DataObject; import cokr.xit.foundation.data.DataObject;
@ -41,6 +44,12 @@ public class Crdn02Controller extends ApplicationController {
@Resource(name="crdnInfoMapper") @Resource(name="crdnInfoMapper")
private CrdnInfoMapper crdnInfoMapper; private CrdnInfoMapper crdnInfoMapper;
@Resource(name="globalStngMapper")
protected GlobalStngMapper globalStngMapper;
@Resource(name="userMapper")
protected UserMapper userMapper;
/** . /** .
* @return fims/crdn/crdn02010-main * @return fims/crdn/crdn02010-main
*/ */
@ -72,6 +81,12 @@ public class Crdn02Controller extends ApplicationController {
case "sameVehicleSub" -> query.setGridType("sameVehicleSub"); case "sameVehicleSub" -> query.setGridType("sameVehicleSub");
} }
setFetchSize(query); setFetchSize(query);
ManagedUser currentUser = userMapper.getUser(currentUser().getAccount(), currentUser().getInstitute());
String curDeptCode = currentUser.getDeptCode();
String sggCd = globalStngMapper.selectSggCd(curDeptCode);
query.setSggCd(sggCd);
return setCollectionInfo(new ModelAndView("jsonView"), crdnService.getCrackdownList(query),""); return setCollectionInfo(new ModelAndView("jsonView"), crdnService.getCrackdownList(query),"");
} }

@ -8,9 +8,12 @@ import javax.annotation.Resource;
import org.springframework.web.servlet.ModelAndView; import org.springframework.web.servlet.ModelAndView;
import cokr.xit.base.code.CommonCode; import cokr.xit.base.code.CommonCode;
import cokr.xit.base.user.ManagedUser;
import cokr.xit.base.user.dao.UserMapper;
import cokr.xit.base.web.ApplicationController; import cokr.xit.base.web.ApplicationController;
import cokr.xit.fims.crdn.Crdn; import cokr.xit.fims.crdn.Crdn;
import cokr.xit.fims.crdn.CrdnQuery; import cokr.xit.fims.crdn.CrdnQuery;
import cokr.xit.fims.crdn.dao.GlobalStngMapper;
import cokr.xit.fims.crdn.service.CrdnService; import cokr.xit.fims.crdn.service.CrdnService;
import cokr.xit.fims.crdn.service.CrdnStngService; import cokr.xit.fims.crdn.service.CrdnStngService;
@ -36,6 +39,12 @@ public class Crdn03Controller extends ApplicationController {
@Resource(name="crdnStngService") @Resource(name="crdnStngService")
private CrdnStngService crdnStngService; private CrdnStngService crdnStngService;
@Resource(name="globalStngMapper")
protected GlobalStngMapper globalStngMapper;
@Resource(name="userMapper")
protected UserMapper userMapper;
/** . /** .
* @return fims/crdn/crdn03010-main * @return fims/crdn/crdn03010-main
*/ */
@ -57,6 +66,12 @@ public class Crdn03Controller extends ApplicationController {
public ModelAndView getTagInformationUndefinedDataList(CrdnQuery query) { public ModelAndView getTagInformationUndefinedDataList(CrdnQuery query) {
query.setGridType("tagInformationUndefinedData"); query.setGridType("tagInformationUndefinedData");
setFetchSize(query); setFetchSize(query);
ManagedUser currentUser = userMapper.getUser(currentUser().getAccount(), currentUser().getInstitute());
String curDeptCode = currentUser.getDeptCode();
String sggCd = globalStngMapper.selectSggCd(curDeptCode);
query.setSggCd(sggCd);
return setCollectionInfo(new ModelAndView("jsonView"), crdnService.getCrackdownList(query),""); return setCollectionInfo(new ModelAndView("jsonView"), crdnService.getCrackdownList(query),"");
} }

@ -110,6 +110,12 @@ public class Crdn05Controller extends ApplicationController {
setFetchSize(query); setFetchSize(query);
query.setGridType("todayInsert"); query.setGridType("todayInsert");
query.setCurrentUserId(currentUser().getId()); query.setCurrentUserId(currentUser().getId());
ManagedUser currentUser = userMapper.getUser(currentUser().getAccount(), currentUser().getInstitute());
String curDeptCode = currentUser.getDeptCode();
String sggCd = globalStngMapper.selectSggCd(curDeptCode);
query.setSggCd(sggCd);
return setCollectionInfo(new ModelAndView("jsonView"),crdnService.getCrackdownList(query),""); return setCollectionInfo(new ModelAndView("jsonView"),crdnService.getCrackdownList(query),"");
} }

@ -75,6 +75,12 @@ public class Crdn06Controller extends ApplicationController {
*/ */
public ModelAndView getCrackdownList(CrdnQuery query) { public ModelAndView getCrackdownList(CrdnQuery query) {
setFetchSize(query); setFetchSize(query);
ManagedUser currentUser = userMapper.getUser(currentUser().getAccount(), currentUser().getInstitute());
String curDeptCode = currentUser.getDeptCode();
String sggCd = globalStngMapper.selectSggCd(curDeptCode);
query.setSggCd(sggCd);
return setCollectionInfo(new ModelAndView("jsonView"), crdnService.getCrackdownList(query),""); return setCollectionInfo(new ModelAndView("jsonView"), crdnService.getCrackdownList(query),"");
} }

@ -86,6 +86,12 @@ public class Cvlc01Controller extends ApplicationController {
public ModelAndView getCivilComplaintReceiptDataList(CrdnQuery query) { public ModelAndView getCivilComplaintReceiptDataList(CrdnQuery query) {
query.setGridType("receiptData"); query.setGridType("receiptData");
setFetchSize(query); setFetchSize(query);
ManagedUser currentUser = userMapper.getUser(currentUser().getAccount(), currentUser().getInstitute());
String curDeptCode = currentUser.getDeptCode();
String sggCd = globalStngMapper.selectSggCd(curDeptCode);
query.setSggCd(sggCd);
return setCollectionInfo(new ModelAndView("jsonView"), crdnCvlcptService.getCivilComplaintList(query),""); return setCollectionInfo(new ModelAndView("jsonView"), crdnCvlcptService.getCivilComplaintList(query),"");
} }

@ -9,8 +9,11 @@ import javax.servlet.http.HttpServletRequest;
import org.springframework.web.servlet.ModelAndView; import org.springframework.web.servlet.ModelAndView;
import cokr.xit.base.code.CommonCode; import cokr.xit.base.code.CommonCode;
import cokr.xit.base.user.ManagedUser;
import cokr.xit.base.user.dao.UserMapper;
import cokr.xit.base.web.ApplicationController; import cokr.xit.base.web.ApplicationController;
import cokr.xit.fims.crdn.CrdnQuery; import cokr.xit.fims.crdn.CrdnQuery;
import cokr.xit.fims.crdn.dao.GlobalStngMapper;
import cokr.xit.fims.crdn.service.CrdnService; import cokr.xit.fims.crdn.service.CrdnService;
import cokr.xit.fims.cvlc.CrdnCvlcpt; import cokr.xit.fims.cvlc.CrdnCvlcpt;
import cokr.xit.fims.cvlc.service.CrdnCvlcptService; import cokr.xit.fims.cvlc.service.CrdnCvlcptService;
@ -41,6 +44,12 @@ public class Cvlc02Controller extends ApplicationController {
@Resource(name="crdnCvlcptService") @Resource(name="crdnCvlcptService")
private CrdnCvlcptService crdnCvlcptService; private CrdnCvlcptService crdnCvlcptService;
@Resource(name="globalStngMapper")
protected GlobalStngMapper globalStngMapper;
@Resource(name="userMapper")
protected UserMapper userMapper;
/** . /** .
* @return fims/cvlc/cvlc02010-main * @return fims/cvlc/cvlc02010-main
*/ */
@ -65,6 +74,12 @@ public class Cvlc02Controller extends ApplicationController {
public ModelAndView selectCivilComplaintAnswerTargetDataList(CrdnQuery query) { public ModelAndView selectCivilComplaintAnswerTargetDataList(CrdnQuery query) {
query.setGridType("answerTargetData"); query.setGridType("answerTargetData");
setFetchSize(query); setFetchSize(query);
ManagedUser currentUser = userMapper.getUser(currentUser().getAccount(), currentUser().getInstitute());
String curDeptCode = currentUser.getDeptCode();
String sggCd = globalStngMapper.selectSggCd(curDeptCode);
query.setSggCd(sggCd);
return setCollectionInfo(new ModelAndView("jsonView"), crdnCvlcptService.getCivilComplaintList(query), ""); return setCollectionInfo(new ModelAndView("jsonView"), crdnCvlcptService.getCivilComplaintList(query), "");
} }

@ -8,8 +8,11 @@ import javax.annotation.Resource;
import org.springframework.web.servlet.ModelAndView; import org.springframework.web.servlet.ModelAndView;
import cokr.xit.base.code.CommonCode; import cokr.xit.base.code.CommonCode;
import cokr.xit.base.user.ManagedUser;
import cokr.xit.base.user.dao.UserMapper;
import cokr.xit.base.web.ApplicationController; import cokr.xit.base.web.ApplicationController;
import cokr.xit.fims.crdn.CrdnQuery; import cokr.xit.fims.crdn.CrdnQuery;
import cokr.xit.fims.crdn.dao.GlobalStngMapper;
import cokr.xit.fims.crdn.service.CrdnService; import cokr.xit.fims.crdn.service.CrdnService;
import cokr.xit.fims.cvlc.service.CrdnCvlcptService; import cokr.xit.fims.cvlc.service.CrdnCvlcptService;
@ -34,6 +37,12 @@ public class Cvlc03Controller extends ApplicationController {
@Resource(name="crdnCvlcptService") @Resource(name="crdnCvlcptService")
private CrdnCvlcptService crdnCvlcptService; private CrdnCvlcptService crdnCvlcptService;
@Resource(name="globalStngMapper")
protected GlobalStngMapper globalStngMapper;
@Resource(name="userMapper")
protected UserMapper userMapper;
/** . /** .
* @return fims/cvlc/cvlc03010-main * @return fims/cvlc/cvlc03010-main
*/ */
@ -55,6 +64,12 @@ public class Cvlc03Controller extends ApplicationController {
*/ */
public ModelAndView getCivilComplaintList(CrdnQuery query) { public ModelAndView getCivilComplaintList(CrdnQuery query) {
setFetchSize(query); setFetchSize(query);
ManagedUser currentUser = userMapper.getUser(currentUser().getAccount(), currentUser().getInstitute());
String curDeptCode = currentUser.getDeptCode();
String sggCd = globalStngMapper.selectSggCd(curDeptCode);
query.setSggCd(sggCd);
return setCollectionInfo(new ModelAndView("jsonView"),crdnCvlcptService.getCivilComplaintList(query),""); return setCollectionInfo(new ModelAndView("jsonView"),crdnCvlcptService.getCivilComplaintList(query),"");
} }
} }

@ -91,6 +91,7 @@ LEFT OUTER JOIN TB_CRDN_CVLCPT CC ON (C.CVLCPT_LINK_YN = 'Y' AND C.LINK_ID = CC.
LEFT OUTER JOIN TB_LEVY_EXCL LE ON (C.CRDN_ID = LE.CRDN_ID AND LE.DEL_YN = 'N') LEFT OUTER JOIN TB_LEVY_EXCL LE ON (C.CRDN_ID = LE.CRDN_ID AND LE.DEL_YN = 'N')
LEFT OUTER JOIN TB_LEVY L ON (C.CRDN_ID = L.CRDN_ID) LEFT OUTER JOIN TB_LEVY L ON (C.CRDN_ID = L.CRDN_ID)
WHERE C.DEL_YN = 'N' WHERE C.DEL_YN = 'N'
AND C.SGG_CD = #{sggCd}
<if test="crdnId != null">AND C.CRDN_ID = #{crdnId}</if> <if test="crdnId != null">AND C.CRDN_ID = #{crdnId}</if>
<if test="taskSeCd != null">AND C.TASK_SE_CD = #{taskSeCd}</if> <if test="taskSeCd != null">AND C.TASK_SE_CD = #{taskSeCd}</if>
<if test="vhrno != null">AND C.VHRNO LIKE CONCAT('%', #{vhrno}, '%')</if> <if test="vhrno != null">AND C.VHRNO LIKE CONCAT('%', #{vhrno}, '%')</if>
@ -164,6 +165,7 @@ SELECT C.CRDN_ID <!-- 단속 ID -->
, C.DEL_DT , C.DEL_DT
FROM TB_CRDN C FROM TB_CRDN C
WHERE C.DEL_YN = 'N' WHERE C.DEL_YN = 'N'
AND C.SGG_CD = #{sggCd}
AND C.TASK_SE_CD = #{taskSeCd} AND C.TASK_SE_CD = #{taskSeCd}
AND C.RGTR = #{currentUserId} AND C.RGTR = #{currentUserId}
AND SUBSTR(C.REG_DT,1,8) = <include refid="utility.today" /> AND SUBSTR(C.REG_DT,1,8) = <include refid="utility.today" />
@ -193,6 +195,7 @@ SELECT C.CRDN_ID <!-- 단속 ID -->
FROM TB_CRDN C FROM TB_CRDN C
INNER JOIN TB_CRDN_ADI CA ON (C.CRDN_ID = CA.CRDN_ID) INNER JOIN TB_CRDN_ADI CA ON (C.CRDN_ID = CA.CRDN_ID)
WHERE C.DEL_YN = 'N' WHERE C.DEL_YN = 'N'
AND C.SGG_CD = #{sggCd}
AND C.TASK_SE_CD = #{taskSeCd} AND C.TASK_SE_CD = #{taskSeCd}
<if test="schCrdnYmdFrom != null or schCrdnYmdTo != null"> <if test="schCrdnYmdFrom != null or schCrdnYmdTo != null">
<if test="schCrdnYmdFrom != null">AND C.CRDN_YMD <![CDATA[ >= ]]> #{schCrdnYmdFrom} </if> <if test="schCrdnYmdFrom != null">AND C.CRDN_YMD <![CDATA[ >= ]]> #{schCrdnYmdFrom} </if>
@ -266,6 +269,7 @@ SELECT GROUP_CONCAT(C.CRDN_ID) AS CRDN_ID_LIST <!-- 단속 ID -->
LEFT OUTER JOIN TB_TEAM_INFO TI ON (CA.TEAM_ID = TI.TEAM_ID) LEFT OUTER JOIN TB_TEAM_INFO TI ON (CA.TEAM_ID = TI.TEAM_ID)
LEFT OUTER JOIN TB_PAYER P ON (C.RTPYR_ID = P.RTPYR_ID) LEFT OUTER JOIN TB_PAYER P ON (C.RTPYR_ID = P.RTPYR_ID)
WHERE C.DEL_YN = 'N' WHERE C.DEL_YN = 'N'
AND C.SGG_CD = #{sggCd}
AND C.TASK_SE_CD = #{taskSeCd} AND C.TASK_SE_CD = #{taskSeCd}
AND C.VHRNO != '' AND C.VHRNO != ''
<if test="schOnlySamePlace == 'on'"> <if test="schOnlySamePlace == 'on'">
@ -344,6 +348,7 @@ SELECT C.CRDN_ID <!-- 단속 ID -->
LEFT OUTER JOIN TB_TEAM_INFO TI ON (CA.TEAM_ID = TI.TEAM_ID) LEFT OUTER JOIN TB_TEAM_INFO TI ON (CA.TEAM_ID = TI.TEAM_ID)
LEFT OUTER JOIN TB_PAYER P ON (C.RTPYR_ID = P.RTPYR_ID) LEFT OUTER JOIN TB_PAYER P ON (C.RTPYR_ID = P.RTPYR_ID)
WHERE C.DEL_YN = 'N' WHERE C.DEL_YN = 'N'
AND C.SGG_CD = #{sggCd}
AND C.TASK_SE_CD = #{taskSeCd} AND C.TASK_SE_CD = #{taskSeCd}
AND C.CRDN_ID IN (<foreach collection="crdnIDs" item="CRDN_ID" separator=",">#{CRDN_ID}</foreach>) AND C.CRDN_ID IN (<foreach collection="crdnIDs" item="CRDN_ID" separator=",">#{CRDN_ID}</foreach>)
<include refid="utility.sortBy" /> <include refid="utility.sortBy" />
@ -373,6 +378,7 @@ SELECT C.CRDN_ID <!-- 단속 ID -->
LEFT OUTER JOIN TB_TEAM_INFO TI ON (CA.TEAM_ID = TI.TEAM_ID) LEFT OUTER JOIN TB_TEAM_INFO TI ON (CA.TEAM_ID = TI.TEAM_ID)
LEFT OUTER JOIN TB_CRDN_CVLCPT CC ON (C.CVLCPT_LINK_YN = 'Y' AND C.LINK_ID = CC.CVLCPT_LINK_ID) LEFT OUTER JOIN TB_CRDN_CVLCPT CC ON (C.CVLCPT_LINK_YN = 'Y' AND C.LINK_ID = CC.CVLCPT_LINK_ID)
WHERE C.DEL_YN = 'N' WHERE C.DEL_YN = 'N'
AND C.SGG_CD = #{sggCd}
AND C.TASK_SE_CD = 'DPV' AND C.TASK_SE_CD = 'DPV'
AND CA.PARKNG_PSBLTY_RSLT_CD = '0' AND CA.PARKNG_PSBLTY_RSLT_CD = '0'
AND C.CRDN_STTS_CD = '21' AND C.CRDN_STTS_CD = '21'

@ -163,6 +163,7 @@ INNER JOIN TB_CRDN_CVLCPT CC ON (C.CVLCPT_LINK_YN = 'Y' AND C.LINK_ID = CC.CVLCP
LEFT OUTER JOIN TB_LEVY_EXCL LE ON (C.CRDN_ID = LE.CRDN_ID AND LE.DEL_YN = 'N') LEFT OUTER JOIN TB_LEVY_EXCL LE ON (C.CRDN_ID = LE.CRDN_ID AND LE.DEL_YN = 'N')
LEFT OUTER JOIN TB_LEVY L ON (C.CRDN_ID = L.CRDN_ID) LEFT OUTER JOIN TB_LEVY L ON (C.CRDN_ID = L.CRDN_ID)
WHERE C.DEL_YN = 'N' WHERE C.DEL_YN = 'N'
AND C.SGG_CD = #{sggCd}
AND C.TASK_SE_CD = #{taskSeCd} AND C.TASK_SE_CD = #{taskSeCd}
<if test="schCvlcptRcptYmdFrom != null or schCvlcptRcptYmdTo != null"> <if test="schCvlcptRcptYmdFrom != null or schCvlcptRcptYmdTo != null">
<if test="schCvlcptRcptYmdFrom != null">AND CC.CVLCPT_RCPT_YMD <![CDATA[ >= ]]> #{schCvlcptRcptYmdFrom} </if> <if test="schCvlcptRcptYmdFrom != null">AND CC.CVLCPT_RCPT_YMD <![CDATA[ >= ]]> #{schCvlcptRcptYmdFrom} </if>
@ -238,6 +239,7 @@ SELECT C.CRDN_ID <!-- 단속 ID -->
FROM TB_CRDN C FROM TB_CRDN C
INNER JOIN TB_CRDN_CVLCPT CC ON (C.CVLCPT_LINK_YN = 'Y' AND C.LINK_ID = CC.CVLCPT_LINK_ID) INNER JOIN TB_CRDN_CVLCPT CC ON (C.CVLCPT_LINK_YN = 'Y' AND C.LINK_ID = CC.CVLCPT_LINK_ID)
WHERE C.DEL_YN = 'N' WHERE C.DEL_YN = 'N'
AND C.SGG_CD = #{sggCd}
AND C.TASK_SE_CD = #{taskSeCd} AND C.TASK_SE_CD = #{taskSeCd}
AND C.CRDN_STTS_CD = '01' AND C.CRDN_STTS_CD = '01'
<if test="schCvlcptRcptYmdFrom != null or schCvlcptRcptYmdTo != null"> <if test="schCvlcptRcptYmdFrom != null or schCvlcptRcptYmdTo != null">
@ -426,6 +428,7 @@ SELECT C.CRDN_ID <!-- 단속 ID -->
INNER JOIN TB_CRDN_CVLCPT CC ON (C.CVLCPT_LINK_YN = 'Y' AND C.LINK_ID = CC.CVLCPT_LINK_ID) INNER JOIN TB_CRDN_CVLCPT CC ON (C.CVLCPT_LINK_YN = 'Y' AND C.LINK_ID = CC.CVLCPT_LINK_ID)
LEFT OUTER JOIN TB_LEVY_EXCL LE ON (C.CRDN_ID = LE.CRDN_ID AND LE.DEL_YN = 'N') LEFT OUTER JOIN TB_LEVY_EXCL LE ON (C.CRDN_ID = LE.CRDN_ID AND LE.DEL_YN = 'N')
WHERE C.DEL_YN = 'N' WHERE C.DEL_YN = 'N'
AND C.SGG_CD = #{sggCd}
AND C.TASK_SE_CD = #{taskSeCd} AND C.TASK_SE_CD = #{taskSeCd}
AND C.CRDN_STTS_CD IN ('21','81','83') AND C.CRDN_STTS_CD IN ('21','81','83')
AND C.CRDN_REG_SE_CD = '02' AND C.CRDN_REG_SE_CD = '02'
@ -496,7 +499,7 @@ UPDATE TB_CRDN_CVLCPT
SET CVLCPT_PRCS_RSLT_CN = #{cvlcptPrcsRsltCn} SET CVLCPT_PRCS_RSLT_CN = #{cvlcptPrcsRsltCn}
, MDFCN_DT = <include refid="utility.now" /> /* 수정일시 */ , MDFCN_DT = <include refid="utility.now" /> /* 수정일시 */
, MDFR = #{modifiedBy} /* 수정자 */ , MDFR = #{modifiedBy} /* 수정자 */
WHERE CVLCPT_LINK_ID = #{cvlcptLinkId}; WHERE CVLCPT_LINK_ID = #{cvlcptLinkId}
</update> </update>
<select id="selectAnswerTargetList" parameterType="list" resultType="dataobject"> <select id="selectAnswerTargetList" parameterType="list" resultType="dataobject">

Loading…
Cancel
Save