コード例 #1
0
 @RequestMapping(value = "/deleteCompanyDepartment/{departmentId}", method = RequestMethod.GET)
 @ResponseBody
 public Boolean deleteCompanyDepartment(
     HttpServletRequest request,
     HttpServletResponse response,
     @PathVariable Integer departmentId) {
   return departmentService.deleteCompanyDepartment(departmentId);
 }
コード例 #2
0
 @RequestMapping(value = "/saveDepartment", method = RequestMethod.POST)
 @ResponseBody
 public Boolean saveDepartment(
     HttpServletRequest request,
     HttpServletResponse response,
     @RequestBody DepartmentJson departmentJson) {
   return departmentService.saveDepartment(departmentJson);
 }
コード例 #3
0
 @RequestMapping(value = "/getAllDepartmentsList/{companyId}", method = RequestMethod.GET)
 @ResponseBody
 public List<DepartmentJson> getAllDepartmentsList(
     HttpServletRequest request, HttpServletResponse response, @PathVariable Integer companyId) {
   return departmentService.getAllDepartmentsList(companyId);
 }