forked from github/dataease
Merge pull request #7008 from dataease/pr@dev-v2@fix_template-error-tips
fix: 修复模版中存在过滤组件时应用有报错提示问题
This commit is contained in:
commit
805118dc2f
@ -6,6 +6,7 @@ import io.dataease.api.dataset.dto.PreviewSqlDTO;
|
|||||||
import io.dataease.api.dataset.union.DatasetGroupInfoDTO;
|
import io.dataease.api.dataset.union.DatasetGroupInfoDTO;
|
||||||
import io.dataease.dataset.manage.DatasetDataManage;
|
import io.dataease.dataset.manage.DatasetDataManage;
|
||||||
import io.dataease.dto.dataset.DatasetTableFieldDTO;
|
import io.dataease.dto.dataset.DatasetTableFieldDTO;
|
||||||
|
import io.dataease.utils.LogUtil;
|
||||||
import jakarta.annotation.Resource;
|
import jakarta.annotation.Resource;
|
||||||
import org.springframework.web.bind.annotation.RequestMapping;
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
import org.springframework.web.bind.annotation.RestController;
|
import org.springframework.web.bind.annotation.RestController;
|
||||||
@ -43,8 +44,15 @@ public class DatasetDataServer implements DatasetDataApi {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public List<String> getFieldEnum(List<Long> ids) throws Exception {
|
public List<String> getFieldEnum(List<Long> ids) {
|
||||||
|
try{
|
||||||
return datasetDataManage.getFieldEnum(ids);
|
return datasetDataManage.getFieldEnum(ids);
|
||||||
|
}catch (Exception e){
|
||||||
|
e.printStackTrace();
|
||||||
|
LogUtil.error(e);
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
Loading…
Reference in New Issue
Block a user