1、任务列表根据异常状态筛选
This commit is contained in:
@@ -38,6 +38,13 @@ public class SpdmTaskListReq {
|
||||
*/
|
||||
private String exeStatus;
|
||||
|
||||
/**
|
||||
* 异常状态
|
||||
*/
|
||||
private String expStatusStr;
|
||||
|
||||
private Integer expStatusValue;
|
||||
|
||||
private List<String> exeStatusList;
|
||||
|
||||
/**
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user