|
@@ -3,6 +3,7 @@ package cn.com.ctop.bytedance.service.impl;
|
|
|
import cn.com.ctop.bytedance.mapper.KuaiShouYiCheReportMapper;
|
|
|
import cn.com.ctop.bytedance.service.IKuaiShouYiCheReportService;
|
|
|
import com.alibaba.fastjson.JSONObject;
|
|
|
+import lombok.extern.slf4j.Slf4j;
|
|
|
import org.jeecg.common.util.DateUtils;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Service;
|
|
@@ -12,6 +13,7 @@ import java.util.HashMap;
|
|
|
import java.util.List;
|
|
|
import java.util.Map;
|
|
|
|
|
|
+@Slf4j
|
|
|
@Service
|
|
|
public class KuaiShouYiCheReportServiceImpl implements IKuaiShouYiCheReportService {
|
|
|
@Autowired
|
|
@@ -19,6 +21,7 @@ public class KuaiShouYiCheReportServiceImpl implements IKuaiShouYiCheReportServi
|
|
|
|
|
|
@Override
|
|
|
public JSONObject getHourReport(JSONObject requestJson) {
|
|
|
+ log.info("易车时报数据统计开始:requestJson:{}", requestJson);
|
|
|
Long projectId = requestJson.getLong("projectId");
|
|
|
BigDecimal disCount = requestJson.getBigDecimal("disCount");
|
|
|
String statDate = DateUtils.getNowDate("yyyy-MM-dd");
|
|
@@ -36,7 +39,6 @@ public class KuaiShouYiCheReportServiceImpl implements IKuaiShouYiCheReportServi
|
|
|
String yesterday = DateUtils.getAnotherDay("yyyy-MM-dd", statDate, -1);
|
|
|
String weekAgoDay = DateUtils.getAnotherDay("yyyy-MM-dd", statDate, -6);
|
|
|
|
|
|
-
|
|
|
// 安卓
|
|
|
requestMap.put("systemType", "android");
|
|
|
// 账号
|
|
@@ -50,12 +52,12 @@ public class KuaiShouYiCheReportServiceImpl implements IKuaiShouYiCheReportServi
|
|
|
|
|
|
// 昨日
|
|
|
requestMap.put("statDate", yesterday);
|
|
|
- requestMap.put("dateDesc", "昨日整体数据");
|
|
|
+ requestMap.put("dateDesc", "昨日整体数据");
|
|
|
JSONObject yesterdayJson = kuaiShouYiCheReportMapper.selectSumReportByMap(requestMap);
|
|
|
androidReportArr.add(yesterdayJson);
|
|
|
// 七日
|
|
|
requestMap.put("statDate", weekAgoDay);
|
|
|
- requestMap.put("dateDesc", "上周同期整体数据");
|
|
|
+ requestMap.put("dateDesc", "上周同期整体数据");
|
|
|
|
|
|
JSONObject weekAgoJson = kuaiShouYiCheReportMapper.selectSumReportByMap(requestMap);
|
|
|
androidReportArr.add(weekAgoJson);
|
|
@@ -75,12 +77,12 @@ public class KuaiShouYiCheReportServiceImpl implements IKuaiShouYiCheReportServi
|
|
|
|
|
|
// 昨日
|
|
|
requestMap.put("statDate", yesterday);
|
|
|
- requestMap.put("dateDesc", "昨日整体数据");
|
|
|
+ requestMap.put("dateDesc", "昨日整体数据");
|
|
|
JSONObject iosYesterdayJson = kuaiShouYiCheReportMapper.selectSumReportByMap(requestMap);
|
|
|
iosReportArr.add(iosYesterdayJson);
|
|
|
// 七日
|
|
|
requestMap.put("statDate", weekAgoDay);
|
|
|
- requestMap.put("dateDesc", "上周同期整体数据");
|
|
|
+ requestMap.put("dateDesc", "上周同期整体数据");
|
|
|
JSONObject iosWeekAgoJson = kuaiShouYiCheReportMapper.selectSumReportByMap(requestMap);
|
|
|
iosReportArr.add(iosWeekAgoJson);
|
|
|
|
|
@@ -88,8 +90,6 @@ public class KuaiShouYiCheReportServiceImpl implements IKuaiShouYiCheReportServi
|
|
|
returnJson.put("ios", iosReportArr);
|
|
|
}
|
|
|
|
|
|
-
|
|
|
- System.err.println(returnJson);
|
|
|
return returnJson;
|
|
|
}
|
|
|
}
|