|
@@ -3,6 +3,7 @@ package cn.com.ctop.job.kuaishou.handler;
|
|
import cn.com.ctop.kuaishou.modules.report.mapper.EtlKuaishouAccountMaterialReportDailyMapper;
|
|
import cn.com.ctop.kuaishou.modules.report.mapper.EtlKuaishouAccountMaterialReportDailyMapper;
|
|
import cn.com.ctop.kuaishou.modules.report.service.IEtlKuaishouAccountMaterialReportDailyService;
|
|
import cn.com.ctop.kuaishou.modules.report.service.IEtlKuaishouAccountMaterialReportDailyService;
|
|
import cn.com.ctop.kuaishou.modules.report.service.IEtlKuaishouReportAccountDailyService;
|
|
import cn.com.ctop.kuaishou.modules.report.service.IEtlKuaishouReportAccountDailyService;
|
|
|
|
+import cn.com.ctop.kuaishou.modules.report.service.IEtlKuaishouReportAccountHourlyService;
|
|
import com.xxl.job.core.context.XxlJobHelper;
|
|
import com.xxl.job.core.context.XxlJobHelper;
|
|
import com.xxl.job.core.handler.annotation.XxlJob;
|
|
import com.xxl.job.core.handler.annotation.XxlJob;
|
|
import org.jeecg.common.util.DateUtils;
|
|
import org.jeecg.common.util.DateUtils;
|
|
@@ -26,11 +27,13 @@ public class KuaishouDailyAccountReportLoadEtlJob {
|
|
private IEtlKuaishouAccountMaterialReportDailyService etlKuaishouAccountMaterialReportDailyService;
|
|
private IEtlKuaishouAccountMaterialReportDailyService etlKuaishouAccountMaterialReportDailyService;
|
|
@Resource
|
|
@Resource
|
|
private EtlKuaishouAccountMaterialReportDailyMapper etlKuaishouAccountMaterialReportDailyMapper;
|
|
private EtlKuaishouAccountMaterialReportDailyMapper etlKuaishouAccountMaterialReportDailyMapper;
|
|
-
|
|
|
|
|
|
+ @Autowired
|
|
|
|
+ private IEtlKuaishouReportAccountHourlyService hourlyService;
|
|
@XxlJob("kuaishouDailyAccountReportLoadEtl")
|
|
@XxlJob("kuaishouDailyAccountReportLoadEtl")
|
|
public void execute() throws Exception {
|
|
public void execute() throws Exception {
|
|
try {
|
|
try {
|
|
iEtlKuaishouReportAccountDailyService.queryEveryDayDataForAccount();
|
|
iEtlKuaishouReportAccountDailyService.queryEveryDayDataForAccount();
|
|
|
|
+ hourlyService.updateYesterdayEtlHourlyData();
|
|
XxlJobHelper.log("queryEveryDayDataForAccount success");
|
|
XxlJobHelper.log("queryEveryDayDataForAccount success");
|
|
} catch (Exception e) {
|
|
} catch (Exception e) {
|
|
XxlJobHelper.log(e.getMessage());
|
|
XxlJobHelper.log(e.getMessage());
|