@RequestMapping(value = "/option_01.isnet") public ModelAndView option_01() { ModelAndView mav = new ModelAndView(); mav.setViewName("/option/option_01"); mav.addObject("customerList", commonCodeMap.getCustomerList()); mav.addObject("productList", commonCodeMap.getProductList()); return mav; }
// 고객사별 제품별 옵션파일조회 @RequestMapping(value = "/option_download_01.isnet") public ModelAndView option_download_01( @RequestParam(value = "customer_no") int customer_no, @RequestParam(value = "product_no") int product_no) { logger.debug("[" + getClass().getSimpleName() + "] [option_download_01] start"); ModelAndView mav = new ModelAndView(); logger.info( "[" + getClass().getSimpleName() + "] [option_download_01] customer_no = " + customer_no); logger.info( "[" + getClass().getSimpleName() + "] [option_download_01] product_no = " + product_no); try { Map<String, Object> paramMap = new HashMap<String, Object>(); paramMap.put("CUSTOMER_NO", customer_no); paramMap.put("PRODUCT_NO", product_no); List<Map<String, Object>> optionList = optionService.getOptionList(paramMap); List<Map<String, Object>> optionFileList = optionService.getOptionFileList(paramMap); mav.addObject("optionFileList", optionFileList); mav.addObject("optionFileListSize", optionFileList.size()); mav.addObject("optionList", optionList); mav.addObject("optionListSize", optionList.size()); mav.addObject("customerList", commonCodeMap.getCustomerList()); mav.addObject("productList", commonCodeMap.getProductList()); mav.setViewName("/option/option_01"); } catch (Exception e) { e.printStackTrace(); logger.error("[" + getClass().getSimpleName() + "] [option_download_01] 조회 오류"); mav.addObject("error_msg", "옵션 조회중 오류가 발생하였습니다."); mav.setViewName("error"); } finally { logger.debug("[" + getClass().getSimpleName() + "] [option_download_01] end"); } return mav; }