修改:hpc任务列表查询增加根据算力id查询
This commit is contained in:
@@ -13,4 +13,7 @@ public class QueryJobReq extends BaseReq {
|
||||
@Schema(description = "求解器名称")
|
||||
private String solverName;
|
||||
|
||||
@Schema(description = "算例id")
|
||||
private String runId;
|
||||
|
||||
}
|
||||
|
||||
@@ -246,6 +246,10 @@ public class PbsServiceDecorator implements IPbsServiceDecorator {
|
||||
if (req.getSolverName() != null && !req.getSolverName().trim().isEmpty()) {
|
||||
// like,实现 包含关键词 的模糊查询(%关键词%)
|
||||
queryChain.like(SimulationJob::getSolverName, req.getSolverName().trim());
|
||||
}
|
||||
if (req.getRunId() != null && !req.getRunId().trim().isEmpty()) {
|
||||
// like,实现 包含关键词 的模糊查询(%关键词%)
|
||||
queryChain.like(SimulationJob::getRunId, req.getRunId().trim());
|
||||
}
|
||||
List<SimulationJob> results = queryChain.list();
|
||||
PageInfo<SimulationJob> page = new PageInfo<>(results);
|
||||
|
||||
Reference in New Issue
Block a user