동일차량 단속건수 조회 쿼리 추가

main
이범준 10 months ago
parent b77161b385
commit 584c2593f4

@ -56,4 +56,10 @@ public interface CrdnListMapper extends AbstractMapper {
*/ */
List<DataObject> selectTagInformationUndefinedDataList(CrdnQuery query); List<DataObject> selectTagInformationUndefinedDataList(CrdnQuery query);
/** .
* @param crdnQuery
* @return
*/
int countCrdn(CrdnQuery crdnQuery);
} }

@ -79,6 +79,16 @@ public interface CrdnService {
*/ */
boolean removeEquipmentLinkFile(String workPath, String fileName); boolean removeEquipmentLinkFile(String workPath, String fileName);
/** .
* @param crdn , processList
* @return
*/
String changeCrdnImageFile(Crdn crdn, List<Map<String, Object>> processList); String changeCrdnImageFile(Crdn crdn, List<Map<String, Object>> processList);
/** .
* @param crdnQuery
* @return
*/
int countCrdn(CrdnQuery crdnQuery);
} }

@ -36,22 +36,22 @@ import cokr.xit.foundation.data.DataObject;
public class CrdnServiceBean extends AbstractServiceBean implements CrdnService { public class CrdnServiceBean extends AbstractServiceBean implements CrdnService {
@Resource(name="crdnCvlcptMapper") @Resource(name="crdnCvlcptMapper")
protected CrdnCvlcptMapper crdnCvlcptMapper; private CrdnCvlcptMapper crdnCvlcptMapper;
@Resource(name="crdnListMapper") @Resource(name="crdnListMapper")
protected CrdnListMapper crdnListMapper; private CrdnListMapper crdnListMapper;
@Resource(name="crdnInstMapper") @Resource(name="crdnInstMapper")
protected CrdnInstMapper crdnInstMapper; private CrdnInstMapper crdnInstMapper;
@Resource(name="crdnUpdtMapper") @Resource(name="crdnUpdtMapper")
protected CrdnUpdtMapper crdnUpdtMapper; private CrdnUpdtMapper crdnUpdtMapper;
@Resource(name="crdnInfoMapper") @Resource(name="crdnInfoMapper")
private CrdnInfoMapper crdnInfoMapper; private CrdnInfoMapper crdnInfoMapper;
@Resource(name="globalStngMapper") @Resource(name="globalStngMapper")
protected GlobalStngMapper globalStngMapper; private GlobalStngMapper globalStngMapper;
@Resource(name="totalInfoMapper") @Resource(name="totalInfoMapper")
private TotalInfoMapper totalInfoMapper; private TotalInfoMapper totalInfoMapper;
@ -69,22 +69,22 @@ public class CrdnServiceBean extends AbstractServiceBean implements CrdnService
private ImportMapper importMapper; private ImportMapper importMapper;
@Resource(name="crdnStngBean") @Resource(name="crdnStngBean")
protected CrdnStngBean crdnStngBean; private CrdnStngBean crdnStngBean;
@Resource(name="crdnCvlcptMainBean") @Resource(name="crdnCvlcptMainBean")
protected CrdnCvlcptMainBean crdnCvlcptMainBean; private CrdnCvlcptMainBean crdnCvlcptMainBean;
@Resource(name="crdnBean") @Resource(name="crdnBean")
protected CrdnBean crdnBean; private CrdnBean crdnBean;
@Resource(name = "levyExclBean") @Resource(name = "levyExclBean")
protected LevyExclBean levyExclBean; private LevyExclBean levyExclBean;
@Resource(name="crdnSttsHstryBean") @Resource(name="crdnSttsHstryBean")
protected CrdnSttsHstryBean crdnSttsHstryBean; private CrdnSttsHstryBean crdnSttsHstryBean;
@Resource(name="crdnPayerHstryBean") @Resource(name="crdnPayerHstryBean")
protected CrdnPayerHstryBean crdnPayerHstryBean; private CrdnPayerHstryBean crdnPayerHstryBean;
@Override @Override
public List<DataObject> getCrackdownList(CrdnQuery query) { public List<DataObject> getCrackdownList(CrdnQuery query) {
@ -332,4 +332,9 @@ public class CrdnServiceBean extends AbstractServiceBean implements CrdnService
return rtnMsg; return rtnMsg;
} }
@Override
public int countCrdn(CrdnQuery crdnQuery) {
return crdnListMapper.countCrdn(crdnQuery);
}
} }

@ -40,6 +40,7 @@ public class Crdn06Controller extends ApplicationController {
crackdownManagementMain = "/010/main.do" crackdownManagementMain = "/010/main.do"
, getCrackdownList = "/010/list.do" , getCrackdownList = "/010/list.do"
, removeCrackdown = "/010/remove.do" , removeCrackdown = "/010/remove.do"
, countCrdn = "/010/countCrdn.do"
, getCrackdownInfo = "/020/info.do" , getCrackdownInfo = "/020/info.do"
, updateCrackdown = "/020/update.do" , updateCrackdown = "/020/update.do"
, getCrackdownStatusInfo = "/030/info.do" , getCrackdownStatusInfo = "/030/info.do"
@ -158,6 +159,21 @@ public class Crdn06Controller extends ApplicationController {
.addObject("rtnMsg", rtnMsg); .addObject("rtnMsg", rtnMsg);
} }
/** .
* @param CrdnQuery
* @return jsonView
*/
public ModelAndView countCrdn(CrdnQuery crdnQuery) {
ModelAndView mav = new ModelAndView("jsonView");
int crdnCount = crdnService.countCrdn(crdnQuery);
mav.addObject("crdnCount", crdnCount);
return mav;
}
/** ID (info) . /** ID (info) .
* @param query * @param query
* @return fims/crdn/crdn06020-info jsonView * @return fims/crdn/crdn06020-info jsonView

@ -285,6 +285,12 @@ public class BpvController {
return super.removeCrackdown(crdn); return super.removeCrackdown(crdn);
} }
@Override
@RequestMapping(name="전용차로과태료업무 단속 건수 조회", value=METHOD_URL.countCrdn)
public ModelAndView countCrdn(CrdnQuery query) {
return super.countCrdn(query);
}
@Override @Override
@RequestMapping(name="전용차로과태료업무 단속자료 조회", value=METHOD_URL.getCrackdownStatusInfo) @RequestMapping(name="전용차로과태료업무 단속자료 조회", value=METHOD_URL.getCrackdownStatusInfo)
public ModelAndView getCrackdownStatusInfo(CrdnQuery query) { public ModelAndView getCrackdownStatusInfo(CrdnQuery query) {

@ -325,6 +325,12 @@ public class DpvController {
return super.removeCrackdown(crdn); return super.removeCrackdown(crdn);
} }
@Override
@RequestMapping(name="장애인과태료업무 단속 건수 조회", value=METHOD_URL.countCrdn)
public ModelAndView countCrdn(CrdnQuery query) {
return super.countCrdn(query);
}
@Override @Override
@RequestMapping(name="장애인과태료업무 단속자료 조회", value=METHOD_URL.getCrackdownStatusInfo) @RequestMapping(name="장애인과태료업무 단속자료 조회", value=METHOD_URL.getCrackdownStatusInfo)
public ModelAndView getCrackdownStatusInfo(CrdnQuery query) { public ModelAndView getCrackdownStatusInfo(CrdnQuery query) {

@ -284,6 +284,12 @@ public class EcaController {
return super.removeCrackdown(crdn); return super.removeCrackdown(crdn);
} }
@Override
@RequestMapping(name="전기차과태료업무 단속 건수 조회", value=METHOD_URL.countCrdn)
public ModelAndView countCrdn(CrdnQuery query) {
return super.countCrdn(query);
}
@Override @Override
@RequestMapping(name="전기차과태료업무 단속자료 조회", value=METHOD_URL.getCrackdownStatusInfo) @RequestMapping(name="전기차과태료업무 단속자료 조회", value=METHOD_URL.getCrackdownStatusInfo)
public ModelAndView getCrackdownStatusInfo(CrdnQuery query) { public ModelAndView getCrackdownStatusInfo(CrdnQuery query) {

@ -297,6 +297,12 @@ public class PvsController {
return super.removeCrackdown(crdn); return super.removeCrackdown(crdn);
} }
@Override
@RequestMapping(name="주정차과태료업무 단속 건수 조회", value=METHOD_URL.countCrdn)
public ModelAndView countCrdn(CrdnQuery query) {
return super.countCrdn(query);
}
@Override @Override
@RequestMapping(name="주정차과태료업무 단속자료 조회", value=METHOD_URL.getCrackdownStatusInfo) @RequestMapping(name="주정차과태료업무 단속자료 조회", value=METHOD_URL.getCrackdownStatusInfo)
public ModelAndView getCrackdownStatusInfo(CrdnQuery query) { public ModelAndView getCrackdownStatusInfo(CrdnQuery query) {

@ -441,5 +441,15 @@ SELECT C.CRDN_ID <!-- 단속 ID -->
<include refid="utility.paging-suffix"/> <include refid="utility.paging-suffix"/>
</select> </select>
<select id="countCrdn" parameterType="map" resultType="int">
/* 단속 건수 조회(crdnListMapper.countCrdn) */
SELECT COUNT(*)
FROM TB_CRDN C
LEFT OUTER JOIN TB_PAYER P ON (C.RTPYR_ID = P.RTPYR_ID)
WHERE C.DEL_YN = 'N'
AND C.CRDN_STTS_CD != '01'
AND C.TASK_SE_CD = #{taskSeCd}
AND C.VHRNO = #{vhrno}
</select>
</mapper> </mapper>

@ -65,6 +65,14 @@
<input type="text" id="vhrno--${pageName}" name="vhrno" data-map="VHRNO" class="form-control" <input type="text" id="vhrno--${pageName}" name="vhrno" data-map="VHRNO" class="form-control"
data-maxlengthb="30" /> data-maxlengthb="30" />
</div> </div>
<div class="col-md-12">
<button type="button" id="btnViewCrdnList--${pageName}" class="btn btn-outline-dark float-end mx-2">
동일번호&nbsp;<span id="outputCrdnCount--${pageName}"></span>건
</button>
<button type="button" id="btnViewCvlcptDscsnList--${pageName}" class="btn btn-outline-dark float-end mx-2">
차량민원&nbsp;<span id="outputCvlcptDscsnCount--${pageName}"></span>건
</button>
</div>
<div class="col-md-6"> <div class="col-md-6">
<label for="vltnCd--${pageName}" class="w-px-130 bg-lighter pe-2 col-form-label text-sm-end"> <label for="vltnCd--${pageName}" class="w-px-130 bg-lighter pe-2 col-form-label text-sm-end">
위반내용 위반내용
@ -572,6 +580,9 @@ $(document).ready(function(){
crdnInfo.CVLCPT_APLY_CN = escapeHTMLEntity(crdnInfo.CVLCPT_APLY_CN); crdnInfo.CVLCPT_APLY_CN = escapeHTMLEntity(crdnInfo.CVLCPT_APLY_CN);
$P.crdnControl.setData([crdnInfo]); $P.crdnControl.setData([crdnInfo]);
$("#btnViewCrdnList--${pageName}").attr("hidden","hidden");
$("#btnViewCvlcptDscsnList--${pageName}").attr("hidden","hidden");
//보안모드 //보안모드
fn_securityModeToggle($("#securityMode--top").is(":checked")); fn_securityModeToggle($("#securityMode--top").is(":checked"));
@ -893,6 +904,14 @@ $(document).ready(function(){
var resp = null; var resp = null;
resp = await countCrdnByVhrno(vhrno, "${taskSeCd}");
if(resp.crdnCount > 0){
$("#outputCrdnCount--${pageName}").html(resp.crdnCount);
$("#btnViewCrdnList--${pageName}").removeAttr("hidden");
} else {
$("#btnViewCrdnList--${pageName}").attr("hidden","hidden");
}
resp = await getVhclInfo($("#sggCd--${pageName}").val(), vhrno, crdnYmd); resp = await getVhclInfo($("#sggCd--${pageName}").val(), vhrno, crdnYmd);
@ -976,6 +995,17 @@ $(document).ready(function(){
}); });
//단속내역 보기
$("#btnViewCrdnList--${pageName}").on("click", function(){
});
//민원내역 보기
$("#btnViewCvlcptDscsnList--${pageName}").on("click", function(){
});
if("${taskSeCd}" == "DPV"){ if("${taskSeCd}" == "DPV"){
$("#vltnCd--${pageName}").on("change", function(){ $("#vltnCd--${pageName}").on("change", function(){
if(this.value == "01"){ if(this.value == "01"){
@ -1007,18 +1037,6 @@ $(document).ready(function(){
**************************************************************************/ **************************************************************************/
initDatepicker("frmEdit--${pageName}"); //달력 초기화 initDatepicker("frmEdit--${pageName}"); //달력 초기화
$("#frmEdit--${pageName}").find(".form-date").each(function(){
$(this).on("input",function(){
var value = this.value.replaceAll("-","");
if(value.length > 7){
this.value = value.substring(0,4)+"-"+value.substring(4,6)+"-"+value.substring(6);
} else if(value.length > 5){
this.value = value.substring(0,4)+"-"+value.substring(4);
}
});
});
$("#frmEdit--${pageName}").find(".form-time").each(function(){ $("#frmEdit--${pageName}").find(".form-time").each(function(){
$(this).on("input",function(){ $(this).on("input",function(){
var value = this.value.replaceAll(":",""); var value = this.value.replaceAll(":","");
@ -1032,6 +1050,9 @@ $(document).ready(function(){
}); });
}); });
$("#btnViewCrdnList--${pageName}").attr("hidden","hidden");
$("#btnViewCvlcptDscsnList--${pageName}").attr("hidden","hidden");
var crdnInfo = ${crdnInfo}; var crdnInfo = ${crdnInfo};
crdnInfo.CVLCPT_APLY_CN = escapeHTMLEntity(crdnInfo.CVLCPT_APLY_CN); crdnInfo.CVLCPT_APLY_CN = escapeHTMLEntity(crdnInfo.CVLCPT_APLY_CN);
$P.crdnControl.setData([crdnInfo]); $P.crdnControl.setData([crdnInfo]);
@ -1137,6 +1158,8 @@ $(document).ready(function(){
} }
); );
//사진영역 초기화 //사진영역 초기화
var existVideo = false; var existVideo = false;
if(crdnInfo.VIDEO_EXIST_YN == "Y"){ if(crdnInfo.VIDEO_EXIST_YN == "Y"){

@ -16,6 +16,26 @@ function searchFromGridTitle(byValue, byOutputValue, mainOption, subOption){
document.getElementById(subOptionElementId).value = subOption; document.getElementById(subOptionElementId).value = subOption;
} }
/**************************************************************************
* 차량번호로 단속 건수 조회
**************************************************************************/
async function countCrdnByVhrno(vhrno, taskSeCd){
return new Promise((resolve, reject) => {
json.get({
url: wctx.url("/"+taskSeCd+"/crdn/crdn06/010/countCrdn.do"),
data: {
vhrno : vhrno,
taskSeCd : taskSeCd
},
success: function(resp, textStatus, jqXHR) {
resolve(resp);
},
error: function(jqXHR, textStatus, error) {
}
});
});
}
/************************************************************************** /**************************************************************************
* 시군구코드, 차량번호, 기준일자로 차적 조회 * 시군구코드, 차량번호, 기준일자로 차적 조회
**************************************************************************/ **************************************************************************/

Loading…
Cancel
Save