🔨 添加执行用户条件.

This commit is contained in:
lijiahang
2024-12-26 14:03:47 +08:00
parent 5ee18436b8
commit 8f1e976c2f
7 changed files with 40 additions and 12 deletions

View File

@@ -56,6 +56,9 @@ public class ExecJobQueryRequest extends PageRequest {
@Schema(description = "任务状态")
private Integer status;
@Schema(description = "执行用户id")
private Long execUserId;
@Schema(description = "是否查询最近执行任务")
private Boolean queryRecentLog;

View File

@@ -408,6 +408,7 @@ public class ExecJobServiceImpl implements ExecJobService {
.like(ExecJobDO::getName, request.getName())
.like(ExecJobDO::getCommand, request.getCommand())
.eq(ExecJobDO::getStatus, request.getStatus())
.eq(ExecJobDO::getExecUserId, request.getExecUserId())
.orderByDesc(ExecJobDO::getId);
}