Compare commits

..

No commits in common. "fe71d980b88330488303c22d9092aadcb955e4a7" and "76b99571a4d965d1a825292024696ea0b3a98f0f" have entirely different histories.

3 changed files with 5 additions and 12 deletions

View File

@ -32,7 +32,7 @@ public class TaskSetUpController extends BaseController {
// 分页查询+模糊查询
@GetMapping("/get")
public TableDataInfo getTasks(@RequestBody TaskQueryDto queryDto) {
public TableDataInfo getTasks(TaskQueryDto queryDto) {
startPage();
List<ExamineTask> tasks = taskService.getTasks(queryDto);
return getDataTable(tasks);

View File

@ -85,7 +85,10 @@ public class TaskServiceImpl implements TaskService {
.collect(Collectors.toList());
item.setUserIdList(existingUserIds);
});
return tasks;
return tasks.stream()
.filter(task -> task.getTaskStatus().equals(queryDto.getTaskStatus()))
.collect(Collectors.toList());
}
@Override

View File

@ -24,16 +24,6 @@
<if test="taskName != null and taskName != ''">
AND task_name LIKE CONCAT('%', #{taskName}, '%')
</if>
<if test="taskStatus != null">
<choose>
<when test="taskStatus == 2">
AND end_time &lt; NOW()
</when>
<when test="taskStatus == 0">
AND end_time > CURRENT_TIMESTAMP
</when>
</choose>
</if>
<if test="year != null">
AND year = #{year}
</if>