| | |
| | | this.messageAccessor.getMessage(MsgConstants.COMPANY_REMOVE_NOT_SELECT)); |
| | | } |
| | | for (Long id : companyFieldForm.getRemoveIds()) { |
| | | if (!this.userService.useUserLevel(id)) { |
| | | this.companyFieldRepository.deleteById(id); |
| | | } else { |
| | | throw new OwlRuntimeException( |
| | | this.messageAccessor.getMessage(MsgConstants.DEPARTMENT_ALREADY_IN_USE)); |
| | | } |
| | | |
| | | this.companyFieldRepository.deleteById(id); |
| | | this.companyFieldRepository.flush(); |
| | | } |
| | | this.companyFieldRepository.flush(); |
| | | } |
| | | |
| | | // 업체 목록을 엑셀로 다운로드 한다. |
| | |
| | | |
| | | excelInfo.setDatas(companyFieldVos); |
| | | |
| | | System.out.println(excelInfo); |
| | | model.addAttribute(Constants.EXCEL, excelInfo); |
| | | return new ModelAndView(this.excelView); |
| | | } |