前端列表
(@RequestParam Map<String, Object> params,ChatEntity chat, HttpServletRequest request)
| 70 | * 前端列表 |
| 71 | */ |
| 72 | @RequestMapping("/list") |
| 73 | public R list(@RequestParam Map<String, Object> params,ChatEntity chat, HttpServletRequest request){ |
| 74 | if(!request.getSession().getAttribute("role").toString().equals("管理员")) { |
| 75 | chat.setUserid((Long)request.getSession().getAttribute("userId")); |
| 76 | } |
| 77 | |
| 78 | EntityWrapper<ChatEntity> ew = new EntityWrapper<ChatEntity>(); |
| 79 | PageUtils page = chatService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, chat), params), params)); |
| 80 | return R.ok().put("data", page); |
| 81 | } |
| 82 | |
| 83 | /** |
| 84 | * 列表 |
nothing calls this directly
no test coverage detected