fix:添加查询

上级 c022ce11
......@@ -55,12 +55,16 @@ public class InterviewQuestionController {
@GetMapping("/page")
public Result selectAll(@RequestParam Integer page
, @RequestParam Integer pageSize
, @RequestParam String question) {
, @RequestParam String question
, @RequestParam Integer type) {
Page<InterviewQuestion> pageParm = new Page<>();
pageParm.setCurrent(page);
pageParm.setSize(pageSize);
QueryWrapper<InterviewQuestion> wrapper = new QueryWrapper<>();
wrapper.orderByDesc("id");
if (type != 0) {
wrapper.eq("type", type);
}
wrapper.eq("is_delete", 0);
if (StringUtils.isNotEmpty(question)) {
wrapper.like("question", question);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册