|
|
@ -24,7 +24,7 @@ public class PublicityArticleSummaryDailyStatsTask implements ITask { |
|
|
|
@Override |
|
|
|
public void run(String params) { |
|
|
|
logger.info("publicityArticleSummaryDailyStatsTask定时任务正在执行,参数为:{}", params); |
|
|
|
StatsFormDTO formDTO = null; |
|
|
|
StatsFormDTO formDTO = new StatsFormDTO(); |
|
|
|
if (StringUtils.isNotBlank(params)){ |
|
|
|
formDTO = JSON.parseObject(params,StatsFormDTO.class); |
|
|
|
} |
|
|
@ -32,12 +32,12 @@ public class PublicityArticleSummaryDailyStatsTask implements ITask { |
|
|
|
if (result.success()) { |
|
|
|
logger.info("publicityArticleSummaryDailyStatsTask定时任务执行成功"); |
|
|
|
} else { |
|
|
|
logger.error("publicityArticleSummaryDailyStatsTask定时任务正在执行定时任务执行失败:" + result.getMsg()); |
|
|
|
logger.error("publicityArticleSummaryDailyStatsTask定时任务执行失败:" + result.getMsg()); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
public static void main(String[] args) { |
|
|
|
StatsFormDTO formDTO = null; |
|
|
|
StatsFormDTO formDTO = new StatsFormDTO(); |
|
|
|
String params = "{'date':'\"2020-06-20','customerId':'123'}"; |
|
|
|
if (StringUtils.isNotBlank(params)){ |
|
|
|
formDTO = JSON.parseObject(params,StatsFormDTO.class); |
|
|
|