| | |
| | | |
| | | @RequestMapping(value = "/page", method = RequestMethod.POST) |
| | | public Result<PageInfo<QuestionResponseVO>> pageList(@RequestBody QuestionPageRequestVO model) { |
| | | model.setTitle(model.getContent()); |
| | | model.setContent(null); |
| | | PageInfo<QuestionResponseVO> pageInfo = questionService.page(model); |
| | | PageInfo<QuestionResponseVO> page = PageInfoHelper.copyMap(pageInfo, q -> { |
| | | QuestionResponseVO vo = new QuestionResponseVO(); |
| | |
| | | |
| | | private String content; |
| | | |
| | | private String title; |
| | | |
| | | } |
| | |
| | | <if test="content != null and content != ''"> |
| | | and instr(tq.content, #{content}) |
| | | </if> |
| | | <if test="title != null and title != ''"> |
| | | and title like CONCAT('%', #{title}, '%') |
| | | </if> |
| | | </where> |
| | | </select> |
| | | |