From bae094980faec9f9b07aff3269a9d014a7d4a7f1 Mon Sep 17 00:00:00 2001 From: JoJH Date: Fri, 1 Nov 2024 18:00:14 +0900 Subject: [PATCH] =?UTF-8?q?=EA=B8=B0=ED=83=80=20=EC=88=98=EC=A0=95.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../xit/fims/crdn/web/Crdn06Controller.java | 23 ++++++++----------- 1 file changed, 10 insertions(+), 13 deletions(-) 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 ef9d4327..fce54350 100644 --- a/src/main/java/cokr/xit/fims/crdn/web/Crdn06Controller.java +++ b/src/main/java/cokr/xit/fims/crdn/web/Crdn06Controller.java @@ -333,9 +333,8 @@ public class Crdn06Controller extends ApplicationController { } return mav - .addObject("pageName", "crdn06020") // jsp pageName - .addObject("infoPrefix", "crdn") // prefix - .addObject("infoPrefixUrl", CLASS_URL) // prefixUrl + .addObject("pageName", "crdn06020") // jsp pageName + .addObject("prefixUrl", CLASS_URL) // prefixUrl .addObject("crdnInfo", json ? crdnInfo : toJson(crdnInfo)) ; } @@ -375,21 +374,19 @@ public class Crdn06Controller extends ApplicationController { @Task @RequestMapping(name="단속자료 상태 조회", value=METHOD_URL.getCrackdownStatusInfo) public ModelAndView getCrackdownStatusInfo(HttpServletRequest hReq, CrdnQuery query) { - DataObject crdnInfo = crdnService.getCrackdownInfo(query); - boolean json = jsonResponse(); - ModelAndView mav = new ModelAndView(json ? "jsonView" : "fims/crdn/crdn06030-info"); + DataObject crdnInfo = crdnService.getCrackdownInfo(query); + Map> commonCodes = getCodesOf("FIM010"); - return mav - .addObject("pageName", "crdn06030") // jsp pageName - .addObject("infoPrefix", "crdnSttsCd") // prefix - .addObject("infoPrefixUrl", CLASS_URL) // prefixUrl - .addObject("FIM010List", commonCodes.get("FIM010")) // 단속 처리 상태 코드(CRDN_STTS_CD) - .addObject("crdnSttsCdInfo", json ? crdnInfo : toJson(crdnInfo)) - ; + return mav + .addObject("pageName", "crdn06030") // jsp pageName + .addObject("prefixUrl", CLASS_URL) // prefixUrl + .addObject("crdnSttsCdInfo", json ? crdnInfo : toJson(crdnInfo)) + .addObject("FIM010List", commonCodes.get("FIM010")) // 단속 처리 상태 코드(CRDN_STTS_CD) + ; } /**지정한 단속 ID에 해당하는 단속 처리 상태를 수정한다.