后端列表
(@RequestParam Map<String, Object> params,ChatEntity chat, HttpServletRequest request)
| 55 | * 后端列表 |
| 56 | */ |
| 57 | @RequestMapping("/page") |
| 58 | public R page(@RequestParam Map<String, Object> params,ChatEntity chat, |
| 59 | HttpServletRequest request){ |
| 60 | if(!request.getSession().getAttribute("role").toString().equals("管理员")) { |
| 61 | chat.setUserid((Long)request.getSession().getAttribute("userId")); |
| 62 | } |
| 63 | |
| 64 | EntityWrapper<ChatEntity> ew = new EntityWrapper<ChatEntity>(); |
| 65 | PageUtils page = chatService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, chat), params), params)); |
| 66 | return R.ok().put("data", page); |
| 67 | } |
| 68 | |
| 69 | /** |
| 70 | * 前端列表 |