1、任务列表根据异常状态筛选

This commit is contained in:
2026-03-17 07:59:48 +08:00
parent cda26fda14
commit 3657da3eeb
3 changed files with 16 additions and 0 deletions

View File

@@ -38,6 +38,13 @@ public class SpdmTaskListReq {
*/
private String exeStatus;
/**
* 异常状态
*/
private String expStatusStr;
private Integer expStatusValue;
private List<String> exeStatusList;
/**

View File

@@ -1172,6 +1172,9 @@ public class TaskServiceImpl implements ITaskService {
// 2. 基础任务列表查询
req.setUserId(userId);
if (StringUtils.isNotBlank(req.getExpStatusStr())) {
req.setExpStatusValue(Integer.parseInt(req.getExpStatusStr()));
}
StopWatch stopWatch = new StopWatch("所有任务方法计时");
stopWatch.start("查所有任务");
List<SpdmTaskVo> allTaskList = mapper.optimisedGtTaskList(tenantId, req);

View File

@@ -773,6 +773,9 @@
<if test="req.progress != null and req.progress != ''">
and progress = #{req.progress}
</if>
<if test="req.expStatusValue != null and req.expStatusValue != ''">
and expStatus = #{req.expStatusValue}
</if>
<if test="(req.exeStatusList != null and req.exeStatusList.size > 0) or (req.todayTmrTasks != null and req.todayTmrTasks != '')">
and (
<choose>
@@ -893,6 +896,9 @@
<if test="req.progress != null and req.progress != ''">
and progress = #{req.progress}
</if>
<if test="req.expStatusValue != null and req.expStatusValue != ''">
and expStatus = #{req.expStatusValue}
</if>
<if test="(req.exeStatusList != null and req.exeStatusList.size > 0) or (req.todayTmrTasks != null and req.todayTmrTasks != '')">
and (
<choose>