|
@@ -4,6 +4,7 @@ import cn.com.ctop.bytedance.mapper.MaterialReportMapper;
|
|
|
import cn.com.ctop.bytedance.service.IMaterialReportService;
|
|
|
import cn.com.ctop.common.module.utils.Check;
|
|
|
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;
|
|
@@ -14,6 +15,7 @@ import java.util.HashMap;
|
|
|
import java.util.List;
|
|
|
import java.util.Map;
|
|
|
|
|
|
+@Slf4j
|
|
|
@Service
|
|
|
public class MaterialReportServiceImpl implements IMaterialReportService {
|
|
|
@Autowired
|
|
@@ -35,6 +37,9 @@ public class MaterialReportServiceImpl implements IMaterialReportService {
|
|
|
@Override
|
|
|
public List<JSONObject> getKuaiShouMaterialMarket(JSONObject json) {
|
|
|
|
|
|
+
|
|
|
+ long startTime = System.currentTimeMillis();
|
|
|
+
|
|
|
List<JSONObject> marketJsonList = new ArrayList<>();
|
|
|
try {
|
|
|
if (Check.isNull(json)) {
|
|
@@ -112,6 +117,8 @@ public class MaterialReportServiceImpl implements IMaterialReportService {
|
|
|
} catch (Exception e) {
|
|
|
e.printStackTrace();
|
|
|
}
|
|
|
+
|
|
|
+ log.info("素材数据请求所用时长------------->: {} ms", System.currentTimeMillis() - startTime);
|
|
|
return marketJsonList;
|
|
|
}
|
|
|
|
|
@@ -124,6 +131,7 @@ public class MaterialReportServiceImpl implements IMaterialReportService {
|
|
|
@Override
|
|
|
public JSONObject getKuaiShouChainRatio(JSONObject json) {
|
|
|
JSONObject returnJson = new JSONObject();
|
|
|
+ long startTime = System.currentTimeMillis();
|
|
|
try {
|
|
|
if (Check.isNull(json)) {
|
|
|
return null;
|
|
@@ -412,7 +420,7 @@ public class MaterialReportServiceImpl implements IMaterialReportService {
|
|
|
returnJson.put("chainRatio", chainRatioJson);
|
|
|
}
|
|
|
|
|
|
-
|
|
|
+ log.info("素材数据获取环比请求所用时长------------->: {} ms", System.currentTimeMillis() - startTime);
|
|
|
return returnJson;
|
|
|
} catch (Exception e) {
|
|
|
e.printStackTrace();
|