@RequiresPermissions("oa:oaCommendPenalize:edit")
 @RequestMapping(value = "delete")
 public String delete(OaCommendPenalize oaCommendPenalize, RedirectAttributes redirectAttributes) {
   oaCommendPenalizeService.delete(oaCommendPenalize);
   addMessage(redirectAttributes, "删除奖惩记录成功");
   return "redirect:" + Global.getAdminPath() + "/oa/oaCommendPenalize/?repage";
 }
Exemplo n.º 2
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";
 }
Exemplo 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";
 }
 @RequiresPermissions("oa:oaCommendPenalize:edit")
 @RequestMapping(value = "save")
 public String save(
     OaCommendPenalize oaCommendPenalize, Model model, RedirectAttributes redirectAttributes) {
   if (!beanValidator(model, oaCommendPenalize)) {
     return form(oaCommendPenalize, model);
   }
   oaCommendPenalizeService.save(oaCommendPenalize);
   addMessage(redirectAttributes, "保存奖惩记录成功");
   return "redirect:" + Global.getAdminPath() + "/oa/oaCommendPenalize/?repage";
 }