|  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @RequestMapping(value = "/getByPage", method = RequestMethod.GET) | 
|---|
|  |  |  | @ApiOperation(value = "分页获取") | 
|---|
|  |  |  | public Result<IPage<Suggest>> getByPage(PageVo page) { | 
|---|
|  |  |  |  | 
|---|
|  |  |  | IPage<Suggest> data = iSuggestService.page(PageUtil.initMpPage(page)); | 
|---|
|  |  |  | public Result<IPage<Suggest>> getByPage(String content,PageVo page) { | 
|---|
|  |  |  | QueryWrapper<Suggest> wrapper = new QueryWrapper<>(); | 
|---|
|  |  |  | if (!StrUtil.isEmpty(content)) | 
|---|
|  |  |  | wrapper.like("a.content","%"+content+"%"); | 
|---|
|  |  |  | IPage<Suggest> data = iSuggestService.page2(PageUtil.initMpPage(page),wrapper); | 
|---|
|  |  |  | return new ResultUtil<IPage<Suggest>>().setData(data); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|