Commit d09591f2 authored by 黎博's avatar 黎博

获取提测列表接口增加模糊搜索

parent 0fdc10c2
...@@ -40,10 +40,10 @@ public class QualityController { ...@@ -40,10 +40,10 @@ public class QualityController {
@RequestParam(defaultValue = "10") Integer pageSize) { @RequestParam(defaultValue = "10") Integer pageSize) {
QueryWrapper<SubmitTestInstruction> queryWrapper = new QueryWrapper<>(); QueryWrapper<SubmitTestInstruction> queryWrapper = new QueryWrapper<>();
if (!StringUtils.isEmpty(projectName)) { if (!StringUtils.isEmpty(projectName)) {
queryWrapper.eq("project_name", projectName); queryWrapper.like("project_name", projectName);
} }
if (!StringUtils.isEmpty(jiraProjectKey)) { if (!StringUtils.isEmpty(jiraProjectKey)) {
queryWrapper.eq("jira_project_key", jiraProjectKey); queryWrapper.like("jira_project_key", jiraProjectKey);
} }
IPage<SubmitTestInstruction> instructionIPage = new Page<>(pageNum, pageSize); IPage<SubmitTestInstruction> instructionIPage = new Page<>(pageNum, pageSize);
IPage<SubmitTestInstruction> page = instructionService.page(instructionIPage, queryWrapper); IPage<SubmitTestInstruction> page = instructionService.page(instructionIPage, queryWrapper);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment