Ejemplo n.º 1
0
 @RequestMapping("/transaction/get-user-of-dept")
 public @ResponseBody List<Employee> getEmployeeOfDept(@RequestParam Integer deptId) {
   List<Employee> list = cmsUserService.getEmployeeOfDept(deptId);
   return list;
 }
Ejemplo n.º 2
0
 @RequestMapping("/transaction/get-all-complaint-repair-employee")
 public @ResponseBody List<ComplaintRepairEmployee> getComplaintRepairEmployee() {
   return cmsUserService.getComplaintRepairEmployee();
 }
Ejemplo n.º 3
0
 @RequestMapping(value = "/transaction/add-cms-user", method = RequestMethod.POST)
 private String createCMSUser(@ModelAttribute ComplaintRepairEmployee employee) {
   logger.info("employee : " + employee);
   cmsUserService.addEmployeeOfDept(employee);
   return "redirect:/transaction/user-list";
 }