コード例 #1
0
 @RequiresPermissions("luxclub:sendorder:edit")
 @RequestMapping(value = "delete")
 public String delete(Order order, RedirectAttributes redirectAttributes) {
   orderService.delete(order);
   addMessage(redirectAttributes, "删除订单表成功");
   return "redirect:" + Global.getAdminPath() + "/luxclub/sendorder/?repage";
 }
コード例 #2
0
 @RequiresPermissions("luxclub:messageNotify:edit")
 @RequestMapping(value = "delete")
 public String delete(MessageNotify messageNotify, RedirectAttributes redirectAttributes) {
   messageNotifyService.delete(messageNotify);
   addMessage(redirectAttributes, "删除消息通知成功");
   return "redirect:" + Global.getAdminPath() + "/luxclub/messageNotify/?repage";
 }
コード例 #3
0
 @RequiresPermissions("luxclub:messageNotify:edit")
 @RequestMapping(value = "save")
 public String save(
     MessageNotify messageNotify, Model model, RedirectAttributes redirectAttributes) {
   if (!beanValidator(model, messageNotify)) {
     return form(messageNotify, model);
   }
   messageNotifyService.save(messageNotify);
   addMessage(redirectAttributes, "保存消息通知成功");
   return "redirect:" + Global.getAdminPath() + "/luxclub/messageNotify/?repage";
 }
コード例 #4
0
 @RequiresPermissions("luxclub:sendorder:edit")
 @RequestMapping(value = "save")
 public String save(Order order, Model model, RedirectAttributes redirectAttributes) {
   if (!beanValidator(model, order)) {
     return form(order, model);
   }
   String result = "";
   try {
     result = orderService.sendOrder(order);
   } catch (Exception e) {
     log.info("取消订单异常:", e);
   }
   if (BusinessConstants.SUCCESS.equals(result)) {
     addMessage(redirectAttributes, "保存订单表成功");
   } else {
     addMessage(redirectAttributes, result);
   }
   return "redirect:" + Global.getAdminPath() + "/luxclub/sendorder/?repage";
 }