diff --git a/backend/src/main/java/ai/basic/x1/adapter/api/controller/DatasetController.java b/backend/src/main/java/ai/basic/x1/adapter/api/controller/DatasetController.java index 89641c2f..667b925a 100644 --- a/backend/src/main/java/ai/basic/x1/adapter/api/controller/DatasetController.java +++ b/backend/src/main/java/ai/basic/x1/adapter/api/controller/DatasetController.java @@ -93,9 +93,7 @@ public Page findByPage(@RequestParam(defaultValue = "1") Integer pag } if (CollectionUtil.isNotEmpty(datasetBO.getDatas())) { var dataInfoDTOS = new ArrayList(); - datasetBO.getDatas().forEach(dataInfoBO -> { - dataInfoDTOS.add(convertDataInfoDTO(dataInfoBO)); - }); + datasetBO.getDatas().forEach(dataInfoBO -> dataInfoDTOS.add(convertDataInfoDTO(dataInfoBO))); datasetDTO.setDatas(dataInfoDTOS); } return datasetDTO; diff --git a/backend/src/main/resources/mybatis/mapper/DataInfoMapper.xml b/backend/src/main/resources/mybatis/mapper/DataInfoMapper.xml index f5431ec3..a5b47362 100644 --- a/backend/src/main/resources/mybatis/mapper/DataInfoMapper.xml +++ b/backend/src/main/resources/mybatis/mapper/DataInfoMapper.xml @@ -61,7 +61,7 @@ close=")"> #{datasetId} - AND d.is_deleted = 0 + AND d.type = 'SINGLE_DATA' AND d.is_deleted = 0 GROUP BY dataset_id