> commonCodes = getCodesOf("FIM039");
mav.addObject("FIM039List", commonCodes.get("FIM039"));
- DataObject info = crdnCvlcptService.getCivilComplaintOriginalInfo(req);
+ DataObject info = crdnCvlcptService.getCivilComplaintOriginalInfo(query);
mav.addObject("cvlcptInfo", json ? info : toJson(info));
return mav;
@@ -107,7 +108,7 @@ public class Crdn01Controller extends ApplicationController {
/**민원접수자료 목록을 조회한다.
* {@link CrdnService#getCrackdownList(CrdnQuery)} 참고
- * @param req 민원접수자료 목록 조회 조건
+ * @param query 민원접수자료 목록 조회 조건
* @return jsonView
* {
* "crdnList": [조회결과 목록],
@@ -117,31 +118,31 @@ public class Crdn01Controller extends ApplicationController {
* }
*/
@RequestMapping(name="민원접수자료 목록", value="/010/list.do")
- public ModelAndView getCivilComplaintReceiptDataList(CrdnQuery req) {
- req.setGridType("receiptData");
- setFetchSize(req);
- return setCollectionInfo(new ModelAndView("jsonView"), crdnCvlcptService.getCrackdownList(req),"");
+ public ModelAndView getCivilComplaintReceiptDataList(CrdnQuery query) {
+ query.setGridType("receiptData");
+ setFetchSize(query);
+ return setCollectionInfo(new ModelAndView("jsonView"), crdnCvlcptService.getCrackdownList(query),"");
}
/**민원접수 초기자료 상세조회 팝업 화면을 연다.
* @return fims/crdn/crdn01020-info
*/
@RequestMapping(name="민원접수 초기자료 조회", value="/020/info.do")
- public ModelAndView getCivilComplaintReceiptInitialDataInfo(CrdnQuery req, HttpServletRequest request) {
+ public ModelAndView getCivilComplaintReceiptInitialDataInfo(HttpServletRequest hReq, CrdnQuery query) {
boolean json = jsonResponse();
String pageName = "crdn01020-info";
ModelAndView mav = new ModelAndView(json ? "jsonView" : "fims/crdn/"+pageName);
mav.addObject("pageName", pageName);
- String urlTaskSeCd = request.getServletPath().split("/")[1];
+ String urlTaskSeCd = hReq.getServletPath().split("/")[1];
mav.addObject("taskSeCd", urlTaskSeCd);
- DataObject info = crdnCvlcptService.getCivilComplaintReceiptInitialDataInfo(req);
+ DataObject info = crdnCvlcptService.getCivilComplaintReceiptInitialDataInfo(query);
mav.addObject("crdnInfo", json ? info : toJson(info));
- mav.addObject("openerPageName", request.getParameter("openerPageName"));
+ mav.addObject("openerPageName", hReq.getParameter("openerPageName"));
String vltnByTask = "";
@@ -180,7 +181,7 @@ public class Crdn01Controller extends ApplicationController {
/**민원답변대상자료 목록을 조회한다.
* {@link CrdnService#getCrackdownList(CrdnQuery)} 참고
- * @param req 민원답변대상자료 목록 조회 조건
+ * @param query 민원답변대상자료 목록 조회 조건
* @return jsonView
* {
* "crdnList": [조회결과 목록],
@@ -190,15 +191,15 @@ public class Crdn01Controller extends ApplicationController {
* }
*/
@RequestMapping(name="민원답변대상자료 목록", value="/030/list.do")
- public ModelAndView selectCivilComplaintAnswerTargetDataList(CrdnQuery req) {
- req.setGridType("answerTargetData");
- setFetchSize(req);
- return setCollectionInfo(new ModelAndView("jsonView"), crdnCvlcptService.getCrackdownList(req), "");
+ public ModelAndView selectCivilComplaintAnswerTargetDataList(CrdnQuery query) {
+ query.setGridType("answerTargetData");
+ setFetchSize(query);
+ return setCollectionInfo(new ModelAndView("jsonView"), crdnCvlcptService.getCrackdownList(query), "");
}
/**민원자료 목록을 조회한다.
* {@link CrdnService#getCrackdownList(CrdnQuery)} 참고
- * @param req 민원자료 목록 조회 조건
+ * @param query 민원자료 목록 조회 조건
* @return jsonView
* {
* "crdnList": [조회결과 목록],
@@ -208,9 +209,9 @@ public class Crdn01Controller extends ApplicationController {
* }
*/
@RequestMapping(name="민원자료 목록", value="/040/list.do")
- public ModelAndView getCivilComplaintList(CrdnQuery req) {
- setFetchSize(req);
- return setCollectionInfo(new ModelAndView("jsonView"),crdnCvlcptService.getCrackdownList(req),"");
+ public ModelAndView getCivilComplaintList(CrdnQuery query) {
+ setFetchSize(query);
+ return setCollectionInfo(new ModelAndView("jsonView"),crdnCvlcptService.getCrackdownList(query),"");
}
/**지정한 민원자료를 제거한다.
@@ -239,12 +240,12 @@ public class Crdn01Controller extends ApplicationController {
* }
*/
@RequestMapping(name="민원 정보 수정", value="/020/save.do")
- public ModelAndView saveCivilComplaintProcess(HttpServletRequest req, Crdn crdn, MultipartFile[] newFileList, MultipartFile[] modifyFileList) {
+ public ModelAndView saveCivilComplaintProcess(HttpServletRequest hReq, CrdnCvlcpt crdnCvlcpt, Crdn crdn, MultipartFile[] newFileList, MultipartFile[] modifyFileList) {
boolean saved = false;
- String[] deleteFileKeyList = req.getParameterValues("deleteFileKeyList");
- String[] modifyFileKeyList = req.getParameterValues("modifyFileKeyList");
+ String[] deleteFileKeyList = hReq.getParameterValues("deleteFileKeyList");
+ String[] modifyFileKeyList = hReq.getParameterValues("modifyFileKeyList");
List newFileInfoList = new ArrayList();
if(newFileList != null || modifyFileList != null) {
@@ -273,9 +274,9 @@ public class Crdn01Controller extends ApplicationController {
Map nonQueryRequest = new HashMap();
nonQueryRequest.put("deleteFileKeyList", deleteFileKeyList);
- String acceptType = req.getParameter("acceptType");
+ String acceptType = hReq.getParameter("acceptType");
nonQueryRequest.put("acceptType", acceptType);
- saved = crdnCvlcptService.updateCvlcptPrcs(nonQueryRequest, crdn, newFileInfoList);
+ saved = crdnCvlcptService.updateCvlcptPrcs(nonQueryRequest, crdnCvlcpt, crdn, newFileInfoList);
return new ModelAndView("jsonView")
@@ -286,9 +287,9 @@ public class Crdn01Controller extends ApplicationController {
* @return hwp파일
*/
@RequestMapping(name="민원내역 원본 한글 파일 생성", value="/050/makeFileFromHwpFormat.do")
- public ModelAndView makeFileFromHwpFormat(CrdnQuery crdnQuery, HttpServletRequest request) {
+ public ModelAndView makeFileFromHwpFormat(CrdnQuery query) {
- Map result = crdnCvlcptService.makeFileFromHwpFormat(crdnQuery);
+ Map result = crdnCvlcptService.makeFileFromHwpFormat(query);
ModelAndView mav = new ModelAndView("jsonView");
mav.addAllObjects(result);
return mav;
@@ -298,16 +299,16 @@ public class Crdn01Controller extends ApplicationController {
* @return
*/
@RequestMapping(name="민원답변내용 미리보기", value="/060/info.do")
- public ModelAndView answerPreviewInfo(CrdnQuery req, HttpServletRequest request) {
+ public ModelAndView answerPreviewInfo(HttpServletRequest hReq, CrdnQuery query) {
boolean json = jsonResponse();
ModelAndView mav = new ModelAndView(json ? "jsonView" : "fims/crdn/crdn01060-info");
mav.addObject("pageName", "crdn01060-info");
- String urlTaskSeCd = request.getServletPath().split("/")[1];
+ String urlTaskSeCd = hReq.getServletPath().split("/")[1];
mav.addObject("taskSeCd", urlTaskSeCd);
- req.setTaskSeCd(urlTaskSeCd);
- DataObject cvlcptInfo = crdnCvlcptService.getAnswerPreview(req);
+ query.setTaskSeCd(urlTaskSeCd);
+ DataObject cvlcptInfo = crdnCvlcptService.getAnswerPreview(query);
mav.addObject("cvlcptInfo", json ? cvlcptInfo : toJson(cvlcptInfo));
return mav;
diff --git a/src/main/java/cokr/xit/fims/crdn/web/Crdn05Controller.java b/src/main/java/cokr/xit/fims/crdn/web/Crdn05Controller.java
index d6bd45a3..6d91fb45 100644
--- a/src/main/java/cokr/xit/fims/crdn/web/Crdn05Controller.java
+++ b/src/main/java/cokr/xit/fims/crdn/web/Crdn05Controller.java
@@ -55,7 +55,7 @@ public class Crdn05Controller extends ApplicationController {
/**당일 등록한 단속자료 목록을 조회한다.
* {@link CrdnService#getCrackdownList(CrdnQuery)} 참고
- * @param req 단속자료 목록 조회 조건
+ * @param query 단속자료 목록 조회 조건
* @return jsonView
* {
* "crdnList": [조회결과 목록],
@@ -65,10 +65,10 @@ public class Crdn05Controller extends ApplicationController {
* }
*/
@RequestMapping(name="당일 입력 단속자료 목록 조회", value="/010/list.do")
- public ModelAndView getTodayCrdnDataList(CrdnQuery req) {
- setFetchSize(req);
- req.setGridType("todayInsert");
- return setCollectionInfo(new ModelAndView("jsonView"),crdnService.getCrackdownList(req),"");
+ public ModelAndView getTodayCrdnDataList(CrdnQuery query) {
+ setFetchSize(query);
+ query.setGridType("todayInsert");
+ return setCollectionInfo(new ModelAndView("jsonView"),crdnService.getCrackdownList(query),"");
}
/**단속자료 수기 등록 팝업화면을 반환한다.
@@ -76,11 +76,11 @@ public class Crdn05Controller extends ApplicationController {
* @return fims/crdn/crdn05030-info
*/
@RequestMapping(name="단속자료 수기 등록 화면", value="/030/info.do")
- public ModelAndView getManualRegistrationScreen(HttpServletRequest request) {
+ public ModelAndView getManualRegistrationScreen(HttpServletRequest hReq) {
ModelAndView mav = new ModelAndView("fims/crdn/crdn05030-info");
mav.addObject("pageName", "crdn05030-info");
- String urlTaskSeCd = request.getServletPath().split("/")[1];
+ String urlTaskSeCd = hReq.getServletPath().split("/")[1];
mav.addObject("taskSeCd", urlTaskSeCd);
String vltnByTask = "";
@@ -126,7 +126,7 @@ public class Crdn05Controller extends ApplicationController {
* }
*/
@PostMapping(name="단속자료 수기 등록", value="/030/create.do")
- public ModelAndView createCrdnDataByManual(HttpServletRequest req, Crdn crdn, MultipartFile[] newFileList) {
+ public ModelAndView createCrdnDataByManual(HttpServletRequest hReq, Crdn crdn, MultipartFile[] newFileList) {
boolean saved = false;
crdn.setCrdnRegSeCd("01");
@@ -137,10 +137,11 @@ public class Crdn05Controller extends ApplicationController {
fileInfoList = new FileInfoFactory().makeFileInfos(null, newFileList);
}
+ String doGuidance = ifEmpty(hReq.getParameter("doGuidance"), () -> "");
+ if(doGuidance.equals("on")) {
+ crdn.setCrdnSttsCd("83");
+ }
Map nonQueryRequest = new HashMap();
-
- nonQueryRequest.put("doGuidance", req.getParameter("doGuidance"));
-
saved = crdnService.create(nonQueryRequest , crdn, fileInfoList);
diff --git a/src/main/java/cokr/xit/fims/crdn/web/Crdn06Controller.java b/src/main/java/cokr/xit/fims/crdn/web/Crdn06Controller.java
index d19c3728..4b3a7397 100644
--- a/src/main/java/cokr/xit/fims/crdn/web/Crdn06Controller.java
+++ b/src/main/java/cokr/xit/fims/crdn/web/Crdn06Controller.java
@@ -87,7 +87,7 @@ public class Crdn06Controller extends ApplicationController {
/**단속자료 목록을 조회한다.
* {@link CrdnService#getCrackdownList(CrdnQuery)} 참고
- * @param req 단속자료 목록 조회 조건
+ * @param query 단속자료 목록 조회 조건
* @return jsonView
* {
* "crdnList": [조회결과 목록],
@@ -97,14 +97,14 @@ public class Crdn06Controller extends ApplicationController {
* }
*/
@RequestMapping(name="단속자료 목록", value="/010/list.do")
- public ModelAndView getCrackdownList(CrdnQuery req) {
- setFetchSize(req);
- return setCollectionInfo(new ModelAndView("jsonView"), crdnService.getCrackdownList(req),"");
+ public ModelAndView getCrackdownList(CrdnQuery query) {
+ setFetchSize(query);
+ return setCollectionInfo(new ModelAndView("jsonView"), crdnService.getCrackdownList(query),"");
}
/**검사자료 목록을 조회한다.
* {@link CrdnService#getCrackdownList(CrdnQuery)} 참고
- * @param req 검사자료 목록 조회 조건
+ * @param query 검사자료 목록 조회 조건
* @return jsonView
* {
* "crdnList": [조회결과 목록],
@@ -114,19 +114,19 @@ public class Crdn06Controller extends ApplicationController {
* }
*/
@RequestMapping(name="검사자료 목록", value="/020/list.do")
- public ModelAndView getInspectionDataList(CrdnQuery req) {
- switch(req.getInspectionDataType()) {
- case "photo" -> req.setGridType("photo");
- case "sameVehicleMain" -> req.setGridType("sameVehicleMain");
- case "sameVehicleSub" -> req.setGridType("sameVehicleSub");
+ public ModelAndView getInspectionDataList(CrdnQuery query) {
+ switch(query.getInspectionDataType()) {
+ case "photo" -> query.setGridType("photo");
+ case "sameVehicleMain" -> query.setGridType("sameVehicleMain");
+ case "sameVehicleSub" -> query.setGridType("sameVehicleSub");
}
- setFetchSize(req);
- return setCollectionInfo(new ModelAndView("jsonView"), crdnService.getCrackdownList(req),"");
+ setFetchSize(query);
+ return setCollectionInfo(new ModelAndView("jsonView"), crdnService.getCrackdownList(query),"");
}
/**감경자료 목록을 조회한다.
* {@link CrdnService#getCrackdownList(CrdnQuery)} 참고
- * @param req 감경자료 목록 조회 조건
+ * @param query 감경자료 목록 조회 조건
* @return jsonView
* {
* "crdnList": [조회결과 목록],
@@ -136,9 +136,9 @@ public class Crdn06Controller extends ApplicationController {
* }
*/
@RequestMapping(name="감경자료 목록", value="/040/list.do")
- public ModelAndView getFineReductionDataList(CrdnQuery req) {
- req.setGridType("fineReductionData");
- setFetchSize(req);
- return setCollectionInfo(new ModelAndView("jsonView"), crdnService.getCrackdownList(req),"");
+ public ModelAndView getFineReductionDataList(CrdnQuery query) {
+ query.setGridType("fineReductionData");
+ setFetchSize(query);
+ return setCollectionInfo(new ModelAndView("jsonView"), crdnService.getCrackdownList(query),"");
}
}
diff --git a/src/main/java/cokr/xit/fims/sprt/service/bean/Sprt03ServiceBean.java b/src/main/java/cokr/xit/fims/sprt/service/bean/Sprt03ServiceBean.java
index 9d3d18de..988ef022 100644
--- a/src/main/java/cokr/xit/fims/sprt/service/bean/Sprt03ServiceBean.java
+++ b/src/main/java/cokr/xit/fims/sprt/service/bean/Sprt03ServiceBean.java
@@ -32,9 +32,9 @@ public class Sprt03ServiceBean extends AbstractServiceBean implements Sprt03Serv
public DataObject getVideoInfo(String crdnId) {
DataObject fileInfo = new DataObject();
- CrdnQuery crdnQuery = new CrdnQuery();
- crdnQuery.setCrdnId(crdnId);
- DataObject cvlcptInfo = crdnCvlcptMapper.selectCivilComplaintReceiptInitialDataInfo(crdnQuery);
+ CrdnQuery query = new CrdnQuery();
+ query.setCrdnId(crdnId);
+ DataObject cvlcptInfo = crdnCvlcptMapper.selectCivilComplaintReceiptInitialDataInfo(query);
String linkTblNm = cvlcptInfo.string("LINK_TBL_NM");
if(!linkTblNm.equals("")) {
FileQuery fileQuery = new FileQuery();
diff --git a/src/main/java/cokr/xit/fims/task/web/DpvController.java b/src/main/java/cokr/xit/fims/task/web/DpvController.java
index b3170823..0530f55a 100644
--- a/src/main/java/cokr/xit/fims/task/web/DpvController.java
+++ b/src/main/java/cokr/xit/fims/task/web/DpvController.java
@@ -47,10 +47,10 @@ public class DpvController {
* }
*/
@RequestMapping(name="장애인과태료업무 표지정보미확인자료 목록", value="/030/list.do")
- public ModelAndView getTagInformationUndefinedDataList(CrdnQuery req) {
- req.setGridType("tagInformationUndefinedData");
- setFetchSize(req);
- return setCollectionInfo(new ModelAndView("jsonView"), crdnService.getCrackdownList(req),"");
+ public ModelAndView getTagInformationUndefinedDataList(CrdnQuery query) {
+ query.setGridType("tagInformationUndefinedData");
+ setFetchSize(query);
+ return setCollectionInfo(new ModelAndView("jsonView"), crdnService.getCrackdownList(query),"");
}
/**표지정보 미확인 자료를 수정한다.