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에 해당하는 단속 처리 상태를 수정한다.