|
@ -789,17 +789,17 @@ public class StatisticsEsService {
|
|
|
Double topicCount = saveModel2.getResult1();//图文复诊数量
|
|
|
Double videoCount = saveModel3.getResult1();//视频复诊数量
|
|
|
Double total = specialistCount+synergyCount+topicCount+videoCount;//总量
|
|
|
DecimalFormat decimalFormat = new DecimalFormat("#.00");
|
|
|
|
|
|
|
|
|
object.put("specialistCount",specialistCount);//专家咨询数
|
|
|
object.put("specialistCount",decimalFormat.format(specialistCount));//专家咨询数
|
|
|
object.put("specialistRate",getRange(specialistCount.intValue(),total.intValue(),0));
|
|
|
object.put("synergyCount",synergyCount);//专家咨询数
|
|
|
object.put("synergyCount",decimalFormat.format(synergyCount));//专家咨询数
|
|
|
object.put("synergyRate",getRange(synergyCount.intValue(),total.intValue(),0));
|
|
|
object.put("topicCount",topicCount);//图文复诊数量
|
|
|
object.put("topicCount",decimalFormat.format(topicCount));//图文复诊数量
|
|
|
object.put("topicRate",getRange(topicCount.intValue(),total.intValue(),0));
|
|
|
object.put("videoCount",videoCount);//视频复诊数量
|
|
|
object.put("videoCount",decimalFormat.format(videoCount));//视频复诊数量
|
|
|
object.put("videoRate",getRange(videoCount.intValue(),total.intValue(),0));
|
|
|
object.put("total",total);
|
|
|
object.put("total",decimalFormat.format(total));
|
|
|
|
|
|
return object;
|
|
|
}
|
|
@ -1396,6 +1396,7 @@ public class StatisticsEsService {
|
|
|
json.put("num",0.0);
|
|
|
result.add(json);
|
|
|
}
|
|
|
DecimalFormat decimalFormat = new DecimalFormat("#.00");
|
|
|
// }
|
|
|
|
|
|
if (saveModels != null) {
|
|
@ -1411,7 +1412,7 @@ public class StatisticsEsService {
|
|
|
for(JSONObject obj : result){
|
|
|
if((obj.get("range")+"").equals(range)){
|
|
|
obj.put("amount", amount);
|
|
|
obj.put("num",num);
|
|
|
obj.put("num",decimalFormat.format(num));
|
|
|
}
|
|
|
}
|
|
|
|
|
@ -1591,7 +1592,7 @@ public class StatisticsEsService {
|
|
|
} else {
|
|
|
saveModels = elasticsearchUtil.findLineChartDateQuotaLevel0(startDate, endDate, area, level, index, timelevel, SaveModel.interval_week);
|
|
|
}
|
|
|
|
|
|
DecimalFormat decimalFormat = new DecimalFormat("#.00");
|
|
|
if (saveModels != null) {
|
|
|
// 计算结果
|
|
|
for (SaveModel saveModel : saveModels) {
|
|
@ -1612,7 +1613,7 @@ public class StatisticsEsService {
|
|
|
long amount = saveModel.getResult2().longValue();
|
|
|
double num = saveModel.getResult1();
|
|
|
json.put("amount", amount);
|
|
|
json.put("num",num);
|
|
|
json.put("num",decimalFormat.format(num));
|
|
|
}
|
|
|
}
|
|
|
|
|
@ -1906,6 +1907,7 @@ public class StatisticsEsService {
|
|
|
} else {
|
|
|
saveModels = elasticsearchUtil.findLineChartDateQuotaLevel0(startDate, endDate, area, level, index, timelevel, SaveModel.interval_month);
|
|
|
}
|
|
|
DecimalFormat decimalFormat = new DecimalFormat("#.00");
|
|
|
|
|
|
if (saveModels != null) {
|
|
|
// 计算结果
|
|
@ -1923,7 +1925,7 @@ public class StatisticsEsService {
|
|
|
long amount = saveModel.getResult2().longValue();
|
|
|
double num = saveModel.getResult1();
|
|
|
json.put("amount", amount);
|
|
|
json.put("num",num);
|
|
|
json.put("num",decimalFormat.format(num));
|
|
|
}
|
|
|
}
|
|
|
|