@PostMapping("/searchOfflineMeetingByPage")
@Operation(summary = "查询线下会议分页数据")
@SaCheckLogin
public R searchOfflineMeetingByPage(@Valid @RequestBody SearchOfflineMeetingByPageForm form) {
HashMap param = JSONUtil.parse(form).toBean(HashMap.class);
int page = form.getPage();
int length = form.getLength();
// int start = (Integer)param.get("start");
int start = (page - 1) * length;
param.put("start",start);
param.put("userId", StpUtil.getLoginId());
PageUtils pageUtils = meetingService.searchOfflineMeeting(param);
return R.ok().put("page",pageUtils);
}
@PostMapping("/searchOfflineMeetingByPage")
@Operation(summary = "查询线下会议分页数据")
@SaCheckLogin
public R searchOfflineMeetingByPage(@Valid @RequestBody SearchOfflineMeetingByPageForm form) {
int page = form.getPage();
int length = form.getLength();
int start = (page - 1) * length;
HashMap param = new HashMap() {{
put("date", form.getDate());
put("mold", form.getMold());
put("userId", StpUtil.getLoginId());
put("start", start);
put("length", length);
}};
PageUtils pageUtils = meetingService.searchOfflineMeetingByPage(param);
return R.ok().put("page", pageUtils);
}
老师您好,想请问一下该web方法这两种写法有什么区别吗?