Skip to content

Commit

Permalink
Fix query data under the dataset
Browse files Browse the repository at this point in the history
Signed-off-by: fanyinbo <[email protected]>
  • Loading branch information
fanyinbo committed Nov 29, 2023
1 parent ddbf8bc commit 0d02c69
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -93,9 +93,7 @@ public Page<DatasetDTO> findByPage(@RequestParam(defaultValue = "1") Integer pag
}
if (CollectionUtil.isNotEmpty(datasetBO.getDatas())) {
var dataInfoDTOS = new ArrayList<DataInfoDTO>();
datasetBO.getDatas().forEach(dataInfoBO -> {
dataInfoDTOS.add(convertDataInfoDTO(dataInfoBO));
});
datasetBO.getDatas().forEach(dataInfoBO -> dataInfoDTOS.add(convertDataInfoDTO(dataInfoBO)));
datasetDTO.setDatas(dataInfoDTOS);
}
return datasetDTO;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
close=")">
#{datasetId}
</foreach>
AND d.is_deleted = 0
AND d.type = 'SINGLE_DATA' AND d.is_deleted = 0
GROUP BY
dataset_id
</select>
Expand Down

0 comments on commit 0d02c69

Please sign in to comment.