|
|
|
|
package cokr.xit.fims.crdn.web;
|
|
|
|
|
|
|
|
|
|
import java.util.List;
|
|
|
|
|
import java.util.Map;
|
|
|
|
|
|
|
|
|
|
import javax.annotation.Resource;
|
|
|
|
|
|
|
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
|
|
import org.springframework.web.servlet.ModelAndView;
|
|
|
|
|
|
|
|
|
|
import cokr.xit.base.code.CommonCode;
|
|
|
|
|
import cokr.xit.base.web.ApplicationController;
|
|
|
|
|
import cokr.xit.fims.crdn.CrdnQuery;
|
|
|
|
|
import cokr.xit.fims.crdn.service.Crdn06Service;
|
|
|
|
|
|
|
|
|
|
@RequestMapping(name="단속 관리", value="/crdn/crdn06")
|
|
|
|
|
public class Crdn06Controller extends ApplicationController {
|
|
|
|
|
|
|
|
|
|
@Resource(name="crdn06Service")
|
|
|
|
|
private Crdn06Service crdn06Service;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**단속자료 목록을 조회한다.<br />
|
|
|
|
|
* {@link Crdn06Service#getCrackdownList(CrdnQuery)} 참고
|
|
|
|
|
* @param req 단속자료 목록 조회 조건
|
|
|
|
|
* @return jsonView
|
|
|
|
|
* <pre><code> {
|
|
|
|
|
* "crdnList": [조회결과 목록],
|
|
|
|
|
* "crdnStart": 현재 페이지의 시작 자료 인덱스,
|
|
|
|
|
* "crdnFetchTotal": 한 페이지에 가져오는 자료 건 수,
|
|
|
|
|
* "crdnTotal": 조회 결과 찾은 전체 건 수
|
|
|
|
|
* }</code></pre>
|
|
|
|
|
*/
|
|
|
|
|
public ModelAndView getCrackdownList(CrdnQuery req) {
|
|
|
|
|
setFetchSize(req);
|
|
|
|
|
return setCollectionInfo(
|
|
|
|
|
new ModelAndView("jsonView"),
|
|
|
|
|
crdn06Service.getCrackdownList(req),
|
|
|
|
|
"crdn"
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**검사자료 목록을 조회한다.<br />
|
|
|
|
|
* {@link Crdn06Service#getCrackdownList(CrdnQuery)} 참고
|
|
|
|
|
* @param req 검사자료 목록 조회 조건
|
|
|
|
|
* @return jsonView
|
|
|
|
|
* <pre><code> {
|
|
|
|
|
* "crdnList": [조회결과 목록],
|
|
|
|
|
* "crdnStart": 현재 페이지의 시작 자료 인덱스,
|
|
|
|
|
* "crdnFetchTotal": 한 페이지에 가져오는 자료 건 수,
|
|
|
|
|
* "crdnTotal": 조회 결과 찾은 전체 건 수
|
|
|
|
|
* }</code></pre>
|
|
|
|
|
*/
|
|
|
|
|
public ModelAndView getInspectionDataList(CrdnQuery req) {
|
|
|
|
|
switch(req.getInspectionDataType()) {
|
|
|
|
|
case "photo" -> req.setGrid("photo");
|
|
|
|
|
case "sameVehicleMain" -> req.setGrid("sameVehicleMain");
|
|
|
|
|
case "sameVehicleSub" -> req.setGrid("sameVehicleSub");
|
|
|
|
|
}
|
|
|
|
|
setFetchSize(req);
|
|
|
|
|
return setCollectionInfo(
|
|
|
|
|
new ModelAndView("jsonView"),
|
|
|
|
|
crdn06Service.getCrackdownList(req),
|
|
|
|
|
"crdn"
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**감경자료 목록을 조회한다.<br />
|
|
|
|
|
* {@link Crdn06Service#getCrackdownList(CrdnQuery)} 참고
|
|
|
|
|
* @param req 감경자료 목록 조회 조건
|
|
|
|
|
* @return jsonView
|
|
|
|
|
* <pre><code> {
|
|
|
|
|
* "crdnList": [조회결과 목록],
|
|
|
|
|
* "crdnStart": 현재 페이지의 시작 자료 인덱스,
|
|
|
|
|
* "crdnFetchTotal": 한 페이지에 가져오는 자료 건 수,
|
|
|
|
|
* "crdnTotal": 조회 결과 찾은 전체 건 수
|
|
|
|
|
* }</code></pre>
|
|
|
|
|
*/
|
|
|
|
|
public ModelAndView getFineReductionDataList(CrdnQuery req) {
|
|
|
|
|
req.setGrid("fineReductionData");
|
|
|
|
|
setFetchSize(req);
|
|
|
|
|
return setCollectionInfo(
|
|
|
|
|
new ModelAndView("jsonView"),
|
|
|
|
|
crdn06Service.getCrackdownList(req),
|
|
|
|
|
"crdn"
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
}
|