修改:hpc查询根据任务状态查询
This commit is contained in:
@@ -10,6 +10,9 @@ public class QueryJobReq extends BaseReq {
|
||||
@Schema(description = "计算任务名称")
|
||||
private String jobName;
|
||||
|
||||
@Schema(description = "计算任务状态")
|
||||
private String jobStatus;
|
||||
|
||||
@Schema(description = "求解器名称")
|
||||
private String solverName;
|
||||
|
||||
|
||||
@@ -243,6 +243,10 @@ public class PbsServiceDecorator implements IPbsServiceDecorator {
|
||||
// like,实现 包含关键词 的模糊查询(%关键词%)
|
||||
queryChain.like(SimulationJob::getJobName, req.getJobName().trim());
|
||||
}
|
||||
if (req.getJobStatus() != null && !req.getJobStatus().trim().isEmpty()) {
|
||||
// like,实现 包含关键词 的模糊查询(%关键词%)
|
||||
queryChain.like(SimulationJob::getJobStatus, req.getJobStatus().trim());
|
||||
}
|
||||
if (req.getSolverName() != null && !req.getSolverName().trim().isEmpty()) {
|
||||
// like,实现 包含关键词 的模糊查询(%关键词%)
|
||||
queryChain.like(SimulationJob::getSolverName, req.getSolverName().trim());
|
||||
|
||||
Reference in New Issue
Block a user