Esempio n. 1
0
 @RequiresPermissions("oa:oaRoom:edit")
 @RequestMapping(value = "delete")
 public String delete(OaRoom oaRoom, RedirectAttributes redirectAttributes) {
   oaRoomService.delete(oaRoom);
   addMessage(redirectAttributes, "删除会议室管理成功");
   return "redirect:" + Global.getAdminPath() + "/oa/oaRoom/?repage";
 }
Esempio n. 2
0
 @RequiresPermissions("oa:oaRoom:view")
 @RequestMapping(value = {"list", ""})
 public String list(
     OaRoom oaRoom, HttpServletRequest request, HttpServletResponse response, Model model) {
   Page<OaRoom> page = oaRoomService.findPage(new Page<OaRoom>(request, response), oaRoom);
   model.addAttribute("page", page);
   return "modules/oa/oaRoomList";
 }
Esempio n. 3
0
 @RequiresPermissions("oa:oaRoom:edit")
 @RequestMapping(value = "save")
 public String save(OaRoom oaRoom, Model model, RedirectAttributes redirectAttributes) {
   if (!beanValidator(model, oaRoom)) {
     return form(oaRoom, model);
   }
   oaRoomService.save(oaRoom);
   addMessage(redirectAttributes, "保存会议室管理成功");
   return "redirect:" + Global.getAdminPath() + "/oa/oaRoom/?repage";
 }
Esempio n. 4
0
 @ModelAttribute
 public OaRoom get(@RequestParam(required = false) String id) {
   OaRoom entity = null;
   if (StringUtils.isNotBlank(id)) {
     entity = oaRoomService.get(id);
   }
   if (entity == null) {
     entity = new OaRoom();
   }
   return entity;
 }