|
|
@ -69,9 +69,8 @@ public class MonitorService { |
|
|
|
|
|
|
|
public IPage<Object> pageQuery(MonitorQueDto queDto) { |
|
|
|
MonitorSourceEnum table = queDto.getMonitorType(); |
|
|
|
String path = paths.get(table.getTableName()); |
|
|
|
// todo 水库总揽临时 等淮哥来
|
|
|
|
initPath(paths); |
|
|
|
String path = paths.get(table.getTableName()); |
|
|
|
if (path == null) { |
|
|
|
log.error("未找到对应的路径配置, table:{}", table); |
|
|
|
return table.getMockData(queDto); |
|
|
@ -213,6 +212,7 @@ public class MonitorService { |
|
|
|
private <T> IPage<T> queryDataPage(MonitorSourceEnum source, MonitorQueDto queDto) { |
|
|
|
MonitorSourceEnum.ResultWrapper resultWrapper = new MonitorSourceEnum.ResultWrapper(); |
|
|
|
resultWrapper.setQueDto(queDto); |
|
|
|
initPath(paths); |
|
|
|
String path = paths.get(source.getTableName()); |
|
|
|
if (path == null) { |
|
|
|
resultWrapper.setResultJson(source.getMockData()); |
|
|
|