|
|
|
@@ -213,7 +213,7 @@ public class DataTowerServiceImpl implements DataTowerService { |
|
|
|
if (yesterdaycar > 0) { |
|
|
|
double hbd = (double) (todaycar - yesterdaycar) / yesterdaycar * 100; |
|
|
|
double hb = new BigDecimal(hbd).setScale(2, BigDecimal.ROUND_HALF_UP).doubleValue(); |
|
|
|
carMap.put("increasedPercent", hb); |
|
|
|
carMap.put("increasedPercent", hb+"%"); |
|
|
|
} else { |
|
|
|
carMap.put("increasedPercent", "--"); |
|
|
|
} |
|
|
|
@@ -224,7 +224,7 @@ public class DataTowerServiceImpl implements DataTowerService { |
|
|
|
if (last > 0) { |
|
|
|
double lasthbd = (double) (todaycar - last) / last * 100; |
|
|
|
double lasthb = new BigDecimal(lasthbd).setScale(2, BigDecimal.ROUND_HALF_UP).doubleValue(); |
|
|
|
carMap.put("increasedPercentWeek", lasthb); |
|
|
|
carMap.put("increasedPercentWeek", lasthb+"%"); |
|
|
|
} else { |
|
|
|
carMap.put("increasedPercentWeek", "--"); |
|
|
|
} |
|
|
|
@@ -516,7 +516,7 @@ public class DataTowerServiceImpl implements DataTowerService { |
|
|
|
if (yesterdaycar > 0) { |
|
|
|
double hbd = (double) (todaycar - yesterdaycar) / yesterdaycar * 100; |
|
|
|
double hb = new BigDecimal(hbd).setScale(2, BigDecimal.ROUND_HALF_UP).doubleValue(); |
|
|
|
datamap.put("hb", hb); |
|
|
|
datamap.put("hb", hb + "%"); |
|
|
|
} else { |
|
|
|
datamap.put("hb", "--"); |
|
|
|
} |
|
|
|
@@ -527,7 +527,7 @@ public class DataTowerServiceImpl implements DataTowerService { |
|
|
|
if (last > 0) { |
|
|
|
double lasthbd = (double) (todaycar - last) / last * 100; |
|
|
|
double lasthb = new BigDecimal(lasthbd).setScale(2, BigDecimal.ROUND_HALF_UP).doubleValue(); |
|
|
|
datamap.put("lasthb", lasthb); |
|
|
|
datamap.put("lasthb", lasthb + "%"); |
|
|
|
} else { |
|
|
|
datamap.put("lasthb", "--"); |
|
|
|
} |
|
|
|
@@ -621,7 +621,7 @@ public class DataTowerServiceImpl implements DataTowerService { |
|
|
|
if (yesterdaybindcar > 0) { |
|
|
|
double yesterdaybinddhb = (double) (todaybindcar - yesterdaybindcar) / yesterdaybindcar * 100; |
|
|
|
double yesterdaybindhb = new BigDecimal(yesterdaybinddhb).setScale(2, BigDecimal.ROUND_HALF_UP).doubleValue(); |
|
|
|
datamap.put("yesterdaybindhb", yesterdaybindhb); |
|
|
|
datamap.put("yesterdaybindhb", yesterdaybindhb + "%"); |
|
|
|
} else { |
|
|
|
datamap.put("yesterdaybindhb", "--"); |
|
|
|
} |
|
|
|
@@ -629,7 +629,7 @@ public class DataTowerServiceImpl implements DataTowerService { |
|
|
|
if (lastweekbindcar > 0) { |
|
|
|
double lastweekbinddhb = (double) (todaybindcar - lastweekbindcar) / lastweekbindcar * 100; |
|
|
|
double lastweekbindhb = new BigDecimal(lastweekbinddhb).setScale(2, BigDecimal.ROUND_HALF_UP).doubleValue(); |
|
|
|
datamap.put("lastweekbindhb", lastweekbindhb); |
|
|
|
datamap.put("lastweekbindhb", lastweekbindhb + "%"); |
|
|
|
} else { |
|
|
|
datamap.put("lastweekbindhb", "--"); |
|
|
|
} |
|
|
|
|