|
|
|
@@ -1,5 +1,6 @@ |
|
|
|
package com.iformall.service.impl; |
|
|
|
|
|
|
|
import com.alibaba.fastjson.JSON; |
|
|
|
import com.alibaba.fastjson.JSONArray; |
|
|
|
import com.alibaba.fastjson.JSONObject; |
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
|
|
|
@@ -651,7 +652,9 @@ public class DataTowerServiceImpl implements DataTowerService { |
|
|
|
long todaycar = (long) historymap.get(DateUtils.getSystemTime("MM/dd")); |
|
|
|
datamap.put("todaycar", todaycar); |
|
|
|
//环比 |
|
|
|
logger.info("-----"+JSON.toJSONString(historymap)); |
|
|
|
String yesterday = DateUtils.getTimeBefore(1, new Date()); |
|
|
|
logger.info("-----"+yesterday); |
|
|
|
long yesterdaycar = (long) historymap.get(yesterday.substring(5).replace("-", "/")); |
|
|
|
if (yesterdaycar > 0) { |
|
|
|
double hbd = (double) (todaycar - yesterdaycar) / yesterdaycar * 100; |
|
|
|
|