Explorar el Código

修改代理商获取逻辑

yumeng hace 3 años
padre
commit
570b5ddc0e

+ 3 - 2
module-job-kuaishou/src/main/java/cn/com/ctop/job/kuaishou/handler/KuaiShouYesterdayAgentReportJob.java

@@ -20,8 +20,9 @@ public class KuaiShouYesterdayAgentReportJob {
     @XxlJob("kuaiShouYesterdayAgentReportJob")
     public void execute() throws Exception {
         String nowDate = DateUtils.getNowDate("yyyy-MM-dd");
-        String yesterday = DateUtils.getAnotherDay("yyyy-MM-dd", nowDate, -1);
-        kuaiShouDailyAgentService.getAgentReportByPage(yesterday, yesterday);
+        String endDate = DateUtils.getAnotherDay("yyyy-MM-dd", nowDate, -1);
+        String startDate = DateUtils.getAnotherDay("yyyy-MM-dd", nowDate, -2);
+        kuaiShouDailyAgentService.getAgentReportByPage(startDate, endDate);
     }
 }