| | |
| | | import com.nq.service.IUserBankService; |
| | | import com.nq.service.IUserService; |
| | | import javax.servlet.http.HttpServletRequest; |
| | | |
| | | import com.nq.vo.user.UserQueryParams; |
| | | import org.slf4j.Logger; |
| | | import org.slf4j.LoggerFactory; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RequestParam; |
| | | import org.springframework.web.bind.annotation.ResponseBody; |
| | | |
| | | import java.text.ParseException; |
| | | import java.util.Date; |
| | | |
| | | |
| | | @Controller |
| | |
| | | //分页查询所有用户列表信息 及模糊查询用户信息 |
| | | @RequestMapping({"list.do"}) |
| | | @ResponseBody |
| | | public ServerResponse list(@RequestParam(value = "realName", required = false) String realName, @RequestParam(value = "phone", required = false) String phone, @RequestParam(value = "agentId", required = false) Integer agentId, @RequestParam(value = "accountType", required = false) Integer accountType, @RequestParam(value = "pageNum", defaultValue = "1") int pageNum, @RequestParam(value = "pageSize", defaultValue = "10") int pageSize, HttpServletRequest request) { |
| | | return this.iUserService.listByAdmin(realName, phone, agentId, accountType, pageNum, pageSize, request); |
| | | public ServerResponse list(UserQueryParams queryParams, |
| | | HttpServletRequest request) throws ParseException { |
| | | return this.iUserService.listByAdmin(queryParams.getRealName(),queryParams.getPhone(),queryParams.getAgentId(),queryParams.getAccountType(),queryParams.getPageNum(),queryParams.getPageSize(),queryParams.getIsLock(),queryParams.getIsLogin(),queryParams.getRegTime(),queryParams.getIsActive(),request); |
| | | } |
| | | |
| | | //查询用户信息是否存在 |