class UserAdminController {

    @Autowired
    private UserManager userManager;
    @Autowired
    private FormAuthenticationWithLockFilter formAuthFilter;

    @RequestMapping(value = "/list.do",method = RequestMethod.GET)
    @ResponseBody
    public PageResult<User> list(PageResult<User> pageResult,Integer status, String loginName, String name, String email,String cellphone) {
        Page page = ResultUtils.getPageByPageResult(pageResult);
        page = userManager.findPage(page, status, loginName, name, email, cellphone);
        pageResult = ResultUtils.getPageResultByPage(page,pageResult);
        return pageResult;
    }

    /**
     * 添加
     * @param user
     * @return
     */
    @RequestMapping(value = "/add.do",method = RequestMethod.POST)
    @ResponseBody
    public HttpResult add(@RequestBody User user) {
        try{
            if("demo".equals(DWSurveyConfig.DWSURVEY_SITE)) return HttpResult.FAILURE("DEMO环境不允许操作");
            User result = userManager.adminSave(user);
            if(result!=null) return HttpResult.SUCCESS();
        }catch (Exception e){
            e.printStackTrace();
        }
        return HttpResult.FAILURE();
    }

    /**
     * 修改
     * @param user
     * @return
     */
    @RequestMapping(value = "/edit.do",method = RequestMethod.PUT)
    @ResponseBody
    public HttpResult up(@RequestBody User user) {
        try{
            if("demo".equals(DWSurveyConfig.DWSURVEY_SITE)) return HttpResult.FAILURE("DEMO环境不允许操作");
            HttpResult httpResult = userManager.upData(user);
            return httpResult;
        }catch (Exception e){
            e.printStackTrace();
            return HttpResult.FAILURE(e.getMessage());
        }
    }

    /**
     * 修改分组
     * @return
     */
    @RequestMapping(value = "/delete.do",method = RequestMethod.DELETE)
    @ResponseBody
    public HttpResult delete(@RequestBody Map<String, String[]> map) {<FILL_FUNCTION_BODY>}


    /**
     * 修改
     * @param user
     * @return
     */
    @RequestMapping(value = "/reset-login.do",method = RequestMethod.PUT)
    @ResponseBody
    public HttpResult resetLogin(@RequestBody User user) {
        try{
            formAuthFilter.resetAccountLock(user.getLoginName());
            return HttpResult.SUCCESS();
        }catch (Exception e){
            e.printStackTrace();
            return HttpResult.FAILURE(e.getMessage());
        }
    }

}

        try{
            if("demo".equals(DWSurveyConfig.DWSURVEY_SITE)) return HttpResult.FAILURE("DEMO环境不允许操作");
            if(map!=null){
                if(map.containsKey("id")){
                    String[] ids = map.get("id");
                    if(ids!=null){
                        userManager.deleteData(ids);
                    }
                }
            }
            return HttpResult.SUCCESS();
        }catch (Exception e){
            e.printStackTrace();
        }
        return HttpResult.FAILURE();
    
<no_super_class>