解决数据资源表数据示例查询异常问题

master
GuoXin 1 year ago
parent 3e6c019881
commit d86a677ecd
  1. 4
      shandan-system/src/main/java/com/keyware/shandan/bianmu/service/impl/MetadataServiceImpl.java

@ -149,13 +149,11 @@ public class MetadataServiceImpl extends BaseServiceImpl<MetadataBasicMapper, Me
return new Page<>(); return new Page<>();
} }
String sql = MetadataUtils.generateSql(metadataBasic, dataSource); String sql = MetadataUtils.generateSql(metadataBasic, dataSource);
List<HashMap<String, Object>> list = dynamicDatasourceMapper.page(new Page<>(1, 10), sql).getRecords();
Page<HashMap<String, Object>> page = new Page<>(1, 10); Page<HashMap<String, Object>> page = new Page<>(1, 10);
page = dynamicDatasourceMapper.page(page, sql);
// 处理Clob类型 // 处理Clob类型
covertClobFieldType(page.getRecords()); covertClobFieldType(page.getRecords());
page.setTotal(list.size());
return page; return page;
} }