diff --git a/core/core-backend/src/main/java/io/dataease/dataset/server/DatasetDataServer.java b/core/core-backend/src/main/java/io/dataease/dataset/server/DatasetDataServer.java index c6e41b1e4d..eb87de325b 100644 --- a/core/core-backend/src/main/java/io/dataease/dataset/server/DatasetDataServer.java +++ b/core/core-backend/src/main/java/io/dataease/dataset/server/DatasetDataServer.java @@ -6,6 +6,7 @@ import io.dataease.api.dataset.dto.PreviewSqlDTO; import io.dataease.api.dataset.union.DatasetGroupInfoDTO; import io.dataease.dataset.manage.DatasetDataManage; import io.dataease.dto.dataset.DatasetTableFieldDTO; +import io.dataease.utils.LogUtil; import jakarta.annotation.Resource; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RestController; @@ -43,8 +44,15 @@ public class DatasetDataServer implements DatasetDataApi { } @Override - public List getFieldEnum(List ids) throws Exception { - return datasetDataManage.getFieldEnum(ids); + public List getFieldEnum(List ids) { + try{ + return datasetDataManage.getFieldEnum(ids); + }catch (Exception e){ + e.printStackTrace(); + LogUtil.error(e); + return null; + } + } @Override