Commit f8215b2e authored by chenzhao's avatar chenzhao

修改电量排名接口

parent 14663fb4
...@@ -898,7 +898,7 @@ public class MonitorFanIdxController extends BaseController { ...@@ -898,7 +898,7 @@ public class MonitorFanIdxController extends BaseController {
monthDataFJ.add(monthMap); monthDataFJ.add(monthMap);
yearDataFJ.add(yearMap); yearDataFJ.add(yearMap);
} else { } else {
querySql = " and frontModule = '逆变器'"; querySql = " and frontModule =~/逆变器/";
Map<String, Object> map = monitorFanIndicator.generatingCapacity(gatewayId,querySql); Map<String, Object> map = monitorFanIndicator.generatingCapacity(gatewayId,querySql);
Map<String, Object> dayMap = new HashMap<>(); Map<String, Object> dayMap = new HashMap<>();
Map<String, Object> monthMap = new HashMap<>(); Map<String, Object> monthMap = new HashMap<>();
......
...@@ -1870,7 +1870,7 @@ public class MonitorFanIndicatorImpl implements IMonitorFanIndicator { ...@@ -1870,7 +1870,7 @@ public class MonitorFanIndicatorImpl implements IMonitorFanIndicator {
public Map<String, Object> generatingCapacity (String gatewayId,String query){ public Map<String, Object> generatingCapacity (String gatewayId,String query){
String querySql = " SELECT * FROM indicators_"+gatewayId+" WHERE equipmentIndexName='日发电量' or equipmentIndexName='月发电量' or equipmentIndexName='年发电量'"; String querySql = " SELECT * FROM indicators_"+gatewayId+" WHERE equipmentIndexName=~/发电量/";
if (null != query){ if (null != query){
querySql = querySql + " "+ query; querySql = querySql + " "+ query;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment