Przeglądaj źródła

修改定时任务

syh 5 lat temu
rodzic
commit
46c705886a

+ 2 - 0
jeecg-boot-module-system/src/main/java/org/jeecg/modules/ctop/job/BytedanceHourlyReportLoadJob.java

@@ -30,6 +30,7 @@ public class BytedanceHourlyReportLoadJob implements Job {
 
     @Override
     public void execute(JobExecutionContext jobExecutionContext) throws JobExecutionException {
+        log.info("头条时报数据获取开始");
         Date getDate = new Date();
         SimpleDateFormat simpleDateFormat = new SimpleDateFormat("HH");
         String hour = simpleDateFormat.format(getDate);
@@ -61,5 +62,6 @@ public class BytedanceHourlyReportLoadJob implements Job {
             });
 
         });
+        log.info("头条时报数据获取结束");
     }
 }

+ 1 - 1
module-common/src/main/java/cn/com/ctop/common/module/utils/HttpUtils.java

@@ -80,7 +80,7 @@ public class HttpUtils {
                 return JSONObject.parseObject(result.toString());
             }
         } catch (Exception e) {
-            log.error(e.getMessage());
+            e.printStackTrace();
         } finally {
             try {
                 if (response != null) {

+ 1 - 1
module-report/src/main/java/cn/com/ctop/bytedance/service/impl/ReportServiceImpl.java

@@ -95,7 +95,7 @@ public class ReportServiceImpl implements IReportService {
         }
         JSONArray dataArray = getObject.getJSONObject("data").getJSONArray("list");
         if (null == dataArray || dataArray.size() <= 0) {
-            log.info("广告主报表信息为空=》accountId:{}", token.getAccountId());
+//            log.info("广告主报表信息为空=》accountId:{}", token.getAccountId());
             return;
         }