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

Method list

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

前端列表

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 3

queryPageMethod · 0.65
selectListViewMethod · 0.65
setUseridMethod · 0.45

Tested by

no test coverage detected