MCPcopy Create free account
hub / github.com/bsxj97/flower-mall / page

Method page

src/main/java/com/controller/ChatController.java:57–67  ·  view source on GitHub ↗

后端列表

(@RequestParam Map<String, Object> params,ChatEntity chat, 
		HttpServletRequest request)

Source from the content-addressed store, hash-verified

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 * 前端列表

Callers

nothing calls this directly

Calls 2

queryPageMethod · 0.65
setUseridMethod · 0.45

Tested by

no test coverage detected