|
|
|
@ -2,8 +2,8 @@ package com.bnyer.img.task; |
|
|
|
|
|
|
|
import com.bnyer.img.service.CreatorProfitService; |
|
|
|
import com.xxl.job.core.biz.model.ReturnT; |
|
|
|
import com.xxl.job.core.context.XxlJobHelper; |
|
|
|
import com.xxl.job.core.handler.annotation.XxlJob; |
|
|
|
import com.xxl.job.core.log.XxlJobLogger; |
|
|
|
import lombok.extern.slf4j.Slf4j; |
|
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
|
import org.springframework.stereotype.Component; |
|
|
|
@ -23,14 +23,14 @@ public class UserDownloadSyncTask { |
|
|
|
@XxlJob("userDownloadSyncTask") |
|
|
|
public ReturnT<String> syncUserDownload(String param) throws Exception { |
|
|
|
creatorProfitService.batchDeleteUserDownloadNum(); |
|
|
|
XxlJobLogger.log("{} 我执行了批量删除昨日用户下载次数任务", System.currentTimeMillis()); |
|
|
|
XxlJobHelper.log("{} 我执行了批量删除昨日用户下载次数任务", System.currentTimeMillis()); |
|
|
|
return ReturnT.SUCCESS; |
|
|
|
} |
|
|
|
|
|
|
|
@XxlJob("creatorDownloadSyncTask") |
|
|
|
public ReturnT<String> syncCreatorUpload(String param) throws Exception { |
|
|
|
creatorProfitService.batchDeleteCreatorUploadNum(); |
|
|
|
XxlJobLogger.log("{} 我执行了批量删除昨日用户上传次数任务", System.currentTimeMillis()); |
|
|
|
XxlJobHelper.log("{} 我执行了批量删除昨日用户上传次数任务", System.currentTimeMillis()); |
|
|
|
return ReturnT.SUCCESS; |
|
|
|
} |
|
|
|
} |
|
|
|
|