|
@ -519,10 +519,13 @@ public class EsStatisticsController extends BaseController {
|
|
}
|
|
}
|
|
//20指标一个键绑定一条数据 2018年开始所以改用86指标. 2018-08-27 zd
|
|
//20指标一个键绑定一条数据 2018年开始所以改用86指标. 2018-08-27 zd
|
|
String thisYear = Constant.getNowYearByDate(endDate);
|
|
String thisYear = Constant.getNowYearByDate(endDate);
|
|
|
|
JSONObject json = new JSONObject();
|
|
if ("20".equals(idx) && Integer.valueOf(thisYear)>=2018){
|
|
if ("20".equals(idx) && Integer.valueOf(thisYear)>=2018){
|
|
idx="86";
|
|
|
|
|
|
//@TODO idx="86";1.5.0版本返回前端改为index_86
|
|
|
|
json = statisticsESService.getDateTotal(startDate, endDate, interval, area, level, "86", lowCode, year,SaveModel.timeLevel_DDL);
|
|
|
|
}else {
|
|
|
|
json = statisticsESService.getDateTotal(startDate, endDate, interval, area, level, idx, lowCode, year,SaveModel.timeLevel_DDL);
|
|
}
|
|
}
|
|
JSONObject json = statisticsESService.getDateTotal(startDate, endDate, interval, area, level, idx, lowCode, year,SaveModel.timeLevel_DDL);
|
|
|
|
result.put("index_" + idx, json);
|
|
result.put("index_" + idx, json);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@ -598,7 +601,8 @@ public class EsStatisticsController extends BaseController {
|
|
result.put("index_" + idx, statisticsESService.getLowLevelTotalOnlineTeamLeader(date, area, level, idx, sort, lowLevel, year, ""));
|
|
result.put("index_" + idx, statisticsESService.getLowLevelTotalOnlineTeamLeader(date, area, level, idx, sort, lowLevel, year, ""));
|
|
}else if (idx.equals("20") && Integer.valueOf(year)>=2018){
|
|
}else if (idx.equals("20") && Integer.valueOf(year)>=2018){
|
|
//20指标是一个键绑定一条数据 所以2018年开始使用86指标 2018-08-27 zd
|
|
//20指标是一个键绑定一条数据 所以2018年开始使用86指标 2018-08-27 zd
|
|
result.put("index_" + idx, statisticsESService.getDeviceLowLevelTotal(date, area, level, "86", sort, lowLevel, year));
|
|
|
|
|
|
//@TODO idx="86";
|
|
|
|
result.put("index_" + idx, statisticsESService.getDeviceLowLevelTotal(date, area, level,"86", sort, lowLevel, year));
|
|
}else {
|
|
}else {
|
|
result.put("index_" + idx, statisticsESService.getLowLevelTotal(date, area, level, idx, sort, lowLevel, year));
|
|
result.put("index_" + idx, statisticsESService.getLowLevelTotal(date, area, level, idx, sort, lowLevel, year));
|
|
}
|
|
}
|
|
@ -665,10 +669,13 @@ public class EsStatisticsController extends BaseController {
|
|
JSONObject result = new JSONObject();
|
|
JSONObject result = new JSONObject();
|
|
|
|
|
|
for (String idx : indexes) {
|
|
for (String idx : indexes) {
|
|
|
|
Long total= 0L;
|
|
if ("20".equals(idx) && Integer.valueOf(year)>=2018){
|
|
if ("20".equals(idx) && Integer.valueOf(year)>=2018){
|
|
idx = "86";
|
|
|
|
|
|
//@TODO idx = "86",1.5.0版本改成返回前端改成index_86;
|
|
|
|
total = statisticsESService.getIndexTotal(endDate, area, level, "86", "2");
|
|
|
|
}else {
|
|
|
|
total = statisticsESService.getIndexTotal(endDate, area, level, idx, "2");
|
|
}
|
|
}
|
|
Long total=statisticsESService.getIndexTotal(endDate, area, level, idx, "2");
|
|
|
|
result.put("index_" + idx, total);
|
|
result.put("index_" + idx, total);
|
|
}
|
|
}
|
|
|
|
|