|
|
@ -158,12 +158,12 @@ public class WaylineJobServiceImpl implements IWaylineJobService { |
|
|
|
} |
|
|
|
|
|
|
|
@Override |
|
|
|
public PaginationData<WaylineJobDTO> getJobsByWorkspaceId(String workspaceId, long page, long pageSize,List<Integer> proIds) { |
|
|
|
public PaginationData<WaylineJobDTO> getJobsByWorkspaceId(String workspaceId, long page, long pageSize,List<Integer> proIds,String name) { |
|
|
|
Page<WaylineJobEntity> pageData = mapper.selectPage( |
|
|
|
new Page<WaylineJobEntity>(page, pageSize), |
|
|
|
new LambdaQueryWrapper<WaylineJobEntity>() |
|
|
|
.eq(WaylineJobEntity::getWorkspaceId, workspaceId) |
|
|
|
.eq(WaylineJobEntity::getWorkspaceId, workspaceId) |
|
|
|
.like(WaylineJobEntity::getName, name).or().like(WaylineJobEntity::getWaylineName,name) |
|
|
|
.in(ObjectUtil.isAllNotEmpty(proIds),WaylineJobEntity::getProId,proIds) |
|
|
|
.orderByDesc(WaylineJobEntity::getId)); |
|
|
|
List<WaylineJobDTO> records = pageData.getRecords() |
|
|
|