| | |
| | | package kr.wisestone.owl.web.controller; |
| | | |
| | | import kr.wisestone.owl.constant.Constants; |
| | | import kr.wisestone.owl.service.DepartmentService; |
| | | import kr.wisestone.owl.service.UserDepartmentService; |
| | | import kr.wisestone.owl.service.WorkflowService; |
| | | import kr.wisestone.owl.util.ConvertUtil; |
| | | import kr.wisestone.owl.vo.AttachedFileVo; |
| | | import kr.wisestone.owl.web.condition.DepartmentCondition; |
| | | import kr.wisestone.owl.web.condition.WorkflowCondition; |
| | | import kr.wisestone.owl.web.form.WorkflowForm; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | |
| | | |
| | | @Autowired |
| | | private WorkflowService workflowService; |
| | | |
| | | @Autowired |
| | | private DepartmentService departmentService; |
| | | |
| | | // 워크플로우 생성 |
| | | @RequestMapping(value = "/workflow/add", produces = MediaType.APPLICATION_JSON_VALUE) |
| | |
| | | } |
| | | |
| | | // 워크플로우 삭제 |
| | | @SuppressWarnings("unchecked") |
| | | @RequestMapping(value = "/workflow/remove", produces = MediaType.APPLICATION_JSON_VALUE) |
| | | public |
| | | @ResponseBody |
| | |
| | | public ModelAndView downloadExcel(HttpServletRequest request, Model model) { |
| | | return this.workflowService.downloadExcel(request, model); |
| | | } |
| | | |
| | | // 워크플로우 담당부서 가져오기 |
| | | @RequestMapping(value = "/workflow/findDepartments", produces = MediaType.APPLICATION_JSON_VALUE) |
| | | public |
| | | @ResponseBody |
| | | Map<String, Object> findDepartments(@RequestBody Map<String, Map<String, Object>> params) { |
| | | Map<String, Object> resJsonData = new HashMap<>(); |
| | | Pageable pageable = this.pageUtil.convertPageable(this.getPageVo(params)); |
| | | |
| | | this.departmentService.find(resJsonData, DepartmentCondition.make(params.get(Constants.REQ_KEY_CONTENT)), pageable); |
| | | |
| | | return this.setSuccessMessage(resJsonData); |
| | | } |
| | | } |