Commit 6367dab9 by guoxuejian Committed by gdj

search wayline job by ids

parent 329e725f
......@@ -23,4 +23,7 @@ public class WaylineJobSearchParam {
@JsonProperty("end_date")
private Long endDate;
@JsonProperty("job_ids")
private String jobIds;
}
......@@ -222,6 +222,14 @@ public class WaylineJobServiceImpl extends ServiceImpl<IWaylineJobMapper, Waylin
waylineJobQueryWrapper.le(WaylineJobEntity::getBeginTime, param.getEndDate());
}
// jobid
if (param.getJobIds() != null) {
List<String> jobIdList = Arrays.asList(param.getJobIds().split(","));
if (!CollectionUtils.isEmpty(jobIdList)) {
waylineJobQueryWrapper.in(WaylineJobEntity::getJobId, jobIdList);
}
}
Page<WaylineJobEntity> pageData = mapper.selectPage(new Page<>(page, pageSize), waylineJobQueryWrapper);
List<WaylineJobDTO> records = pageData.getRecords()
.stream()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment