|
@@ -825,13 +825,16 @@ public class TableDataSelectServiceImpl implements TableDataSelectService {
|
|
|
|
|
|
|
|
|
@Override
|
|
|
- public List<TableLayerDTO> dataQueryLayer(String defaultType, String layerId) {
|
|
|
+ public List<TableLayerDTO> dataQueryLayer(String defaultType, String layerId) throws Exception {
|
|
|
List<TableLayerDTO> retList = new ArrayList<>();
|
|
|
if (StringUtils.isNotBlank(layerId)) {
|
|
|
QueryWrapper<TableLayerDTO> queryTableLayerWrapper = new QueryWrapper<>();
|
|
|
queryTableLayerWrapper.eq("layer_id", layerId);
|
|
|
retList = tableLayerMapper.selectList(queryTableLayerWrapper);
|
|
|
}
|
|
|
+ if (retList == null || retList.isEmpty()) {
|
|
|
+ throw new Exception("图层未配置,请配置相应图层信息");
|
|
|
+ }
|
|
|
QueryWrapper<TableLayerDTO> queryTableLayerWrapper = new QueryWrapper<>();
|
|
|
if (StringUtils.isNotBlank(defaultType)) {
|
|
|
queryTableLayerWrapper.eq("default_type", defaultType);
|