@RequestMapping(
     value = "/deluser.jsn",
     method = {RequestMethod.POST, RequestMethod.GET})
 @ResponseBody
 public Object delUser(
     HttpServletRequest request, @RequestParam(value = "userId", required = true) String userId) {
   HttpSession session = request.getSession(true);
   User user = (User) session.getAttribute("currestUser");
   LogWirterUtil.saveLogsToFile(user.getFullName() + "于" + new Date() + "执行删除用户操作用户id" + userId);
   return userService.moveUserById(Long.parseLong(userId));
 }
 @RequestMapping(
     value = "/updateUser.jsn",
     method = {RequestMethod.POST, RequestMethod.GET})
 @ResponseBody
 public Object updateUser(HttpServletRequest request, @ModelAttribute User user) {
   if (user.getFullName() == null || "".equals(user.getFullName())) {
     logger.error("用户名为空");
     return 0;
   }
   if (user.getEmail() == null || "".equals(user.getEmail())) {
     logger.error("email为空");
     return 0;
   }
   HttpSession session = request.getSession(true);
   User currestUser = (User) session.getAttribute("currestUser");
   LogWirterUtil.saveLogsToFile(
       currestUser.getFullName() + "于" + new Date() + "执行修改用户操作用户id" + user.getUserId());
   return userService.modifyUser(user);
 }