|
@ -5000,10 +5000,13 @@ public class MedicinedeviceService extends BaseJpaService<Mediicinedevice, Medi
|
|
|
if (noOnlineTotalMap!=null){
|
|
|
noOnlineTotal1 = Integer.parseInt(noOnlineTotalMap.get("count").toString());
|
|
|
}
|
|
|
DecimalFormat df = new DecimalFormat("#.##");
|
|
|
String rate = df.format(onlineTotal1/total1);
|
|
|
Double rate1 = Double.parseDouble(rate)*100;
|
|
|
String onlineRate = rate1+"%";
|
|
|
String onlineRate = "0.00%";
|
|
|
if (total1 != 0) {
|
|
|
DecimalFormat df = new DecimalFormat("#.##");
|
|
|
String rate = df.format(onlineTotal1/total1);
|
|
|
Double rate1 = Double.parseDouble(rate)*100;
|
|
|
onlineRate = rate1+"%";
|
|
|
}
|
|
|
Map<String, Object> overview = new HashMap<>();
|
|
|
overview.put("total", total1);
|
|
|
overview.put("onlineTotal", onlineTotal1);
|