@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";
 }
 @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";
 }
 private void prepareGetResponse(
     final HttpServletRequest request, final HttpServletResponse response, final boolean post)
     throws ServletException {
   Principal principal = (Principal) UserUtils.getPrincipal();
   if (principal == null) {
     return;
   }
   String command = request.getParameter("command");
   String type = request.getParameter("type");
   // 初始化时,如果startupPath文件夹不存在,则自动创建startupPath文件夹
   if ("Init".equals(command)) {
     String startupPath = request.getParameter("startupPath"); // 当前文件夹可指定为模块名
     if (startupPath != null) {
       String[] ss = startupPath.split(":");
       if (ss.length == 2) {
         String realPath =
             Global.getUserfilesBaseDir()
                 + Global.USERFILES_BASE_URL
                 + principal
                 + "/"
                 + ss[0]
                 + ss[1];
         FileUtils.createDirectory(FileUtils.path(realPath));
       }
     }
   }
   // 快捷上传,自动创建当前文件夹,并上传到该路径
   else if ("QuickUpload".equals(command) && type != null) {
     String currentFolder = request.getParameter("currentFolder"); // 当前文件夹可指定为模块名
     String realPath =
         Global.getUserfilesBaseDir()
             + Global.USERFILES_BASE_URL
             + principal
             + "/"
             + type
             + (currentFolder != null ? currentFolder : "");
     FileUtils.createDirectory(FileUtils.path(realPath));
   }
   //		System.out.println("------------------------");
   //		for (Object key : request.getParameterMap().keySet()){
   //			System.out.println(key + ": " + request.getParameter(key.toString()));
   //		}
 }
 @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";
 }
 @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";
 }