Browse Source

添加客户id参数

master
jianjun 5 years ago
parent
commit
e77d9696b3
  1. 13
      epmet-module/epmet-job/epmet-job-server/src/main/java/com/epmet/task/PublicityArticleSummaryDailyStatsTask.java
  2. 4
      epmet-module/epmet-job/epmet-job-server/src/main/java/com/epmet/task/PublicityTagUsedDailyStatsTask.java
  3. 4
      epmet-module/epmet-job/epmet-job-server/src/main/java/com/epmet/task/PublicityTagUsedMonthlyStatsTask.java
  4. 4
      epmet-module/epmet-job/epmet-job-server/src/main/java/com/epmet/task/PublicityTagUsedQuarterlyAndYearlyStatsTask.java
  5. 4
      epmet-module/epmet-job/epmet-job-server/src/main/java/com/epmet/task/PublicityTagViewedDailyStatsTask.java
  6. 4
      epmet-module/epmet-job/epmet-job-server/src/main/java/com/epmet/task/PublicityTagViewedMonthlyStatsTask.java
  7. 4
      epmet-module/epmet-job/epmet-job-server/src/main/java/com/epmet/task/PublicityTagViewedQuarterlyAndYearlyhlyStatsTask.java

13
epmet-module/epmet-job/epmet-job-server/src/main/java/com/epmet/task/PublicityArticleSummaryDailyStatsTask.java

@ -1,6 +1,6 @@
package com.epmet.task;
import com.epmet.commons.tools.utils.ConvertUtils;
import com.alibaba.fastjson.JSON;
import com.epmet.commons.tools.utils.Result;
import com.epmet.dto.StatsFormDTO;
import com.epmet.service.StatsPublicityTaskService;
@ -26,7 +26,7 @@ public class PublicityArticleSummaryDailyStatsTask implements ITask {
logger.debug("publicityArticleSummaryDailyStatsTask定时任务正在执行,参数为:{}", params);
StatsFormDTO formDTO = null;
if (StringUtils.isNotBlank(params)){
formDTO = ConvertUtils.sourceToTarget(params, StatsFormDTO.class);
formDTO = JSON.parseObject(params,StatsFormDTO.class);
}
Result result = statsPublicityTaskService.articleSummaryDailyStatsjob(formDTO);
if (result.success()) {
@ -35,4 +35,13 @@ public class PublicityArticleSummaryDailyStatsTask implements ITask {
logger.debug("publicityArticleSummaryDailyStatsTask定时任务正在执行定时任务执行失败:" + result.getMsg());
}
}
public static void main(String[] args) {
StatsFormDTO formDTO = null;
String params = "{'date':'\"2020-06-20','customerId':'123'}";
if (StringUtils.isNotBlank(params)){
formDTO = JSON.parseObject(params,StatsFormDTO.class);
}
System.out.println(JSON.toJSONString(formDTO));
}
}

4
epmet-module/epmet-job/epmet-job-server/src/main/java/com/epmet/task/PublicityTagUsedDailyStatsTask.java

@ -1,6 +1,6 @@
package com.epmet.task;
import com.epmet.commons.tools.utils.ConvertUtils;
import com.alibaba.fastjson.JSON;
import com.epmet.commons.tools.utils.Result;
import com.epmet.dto.StatsFormDTO;
import com.epmet.service.StatsPublicityTaskService;
@ -26,7 +26,7 @@ public class PublicityTagUsedDailyStatsTask implements ITask {
logger.debug("publicityTagUsedDailyStatsjob定时任务正在执行,参数为:{}", params);
StatsFormDTO formDTO = null;
if (StringUtils.isNotBlank(params)){
formDTO = ConvertUtils.sourceToTarget(params, StatsFormDTO.class);
formDTO = JSON.parseObject(params,StatsFormDTO.class);
}
Result result = statsPublicityTaskService.tagUsedDailyStatsjob(formDTO);
if (result.success()) {

4
epmet-module/epmet-job/epmet-job-server/src/main/java/com/epmet/task/PublicityTagUsedMonthlyStatsTask.java

@ -1,6 +1,6 @@
package com.epmet.task;
import com.epmet.commons.tools.utils.ConvertUtils;
import com.alibaba.fastjson.JSON;
import com.epmet.commons.tools.utils.Result;
import com.epmet.dto.StatsFormDTO;
import com.epmet.service.StatsPublicityTaskService;
@ -26,7 +26,7 @@ public class PublicityTagUsedMonthlyStatsTask implements ITask {
logger.debug("publicityTagUsedMonthlyStatsjob定时任务正在执行,参数为:{}", params);
StatsFormDTO formDTO = null;
if (StringUtils.isNotBlank(params)){
formDTO = ConvertUtils.sourceToTarget(params, StatsFormDTO.class);
formDTO = JSON.parseObject(params,StatsFormDTO.class);
}
Result result = statsPublicityTaskService.tagUsedMonthlyStatsjob(formDTO);
if (result.success()) {

4
epmet-module/epmet-job/epmet-job-server/src/main/java/com/epmet/task/PublicityTagUsedQuarterlyAndYearlyStatsTask.java

@ -1,6 +1,6 @@
package com.epmet.task;
import com.epmet.commons.tools.utils.ConvertUtils;
import com.alibaba.fastjson.JSON;
import com.epmet.commons.tools.utils.Result;
import com.epmet.dto.StatsFormDTO;
import com.epmet.service.StatsPublicityTaskService;
@ -26,7 +26,7 @@ public class PublicityTagUsedQuarterlyAndYearlyStatsTask implements ITask {
logger.debug("publicityTagUsedMonthlyStatsjob定时任务正在执行,参数为:{}", params);
StatsFormDTO formDTO = null;
if (StringUtils.isNotBlank(params)){
formDTO = ConvertUtils.sourceToTarget(params, StatsFormDTO.class);
formDTO = JSON.parseObject(params,StatsFormDTO.class);
}
Result result = statsPublicityTaskService.tagUsedQuarterlyStatsjob(formDTO);
if (result.success()) {

4
epmet-module/epmet-job/epmet-job-server/src/main/java/com/epmet/task/PublicityTagViewedDailyStatsTask.java

@ -1,6 +1,6 @@
package com.epmet.task;
import com.epmet.commons.tools.utils.ConvertUtils;
import com.alibaba.fastjson.JSON;
import com.epmet.commons.tools.utils.Result;
import com.epmet.dto.StatsFormDTO;
import com.epmet.service.StatsPublicityTaskService;
@ -26,7 +26,7 @@ public class PublicityTagViewedDailyStatsTask implements ITask {
logger.debug("publicityTagViewedDailyStatsTask定时任务正在执行,参数为:{}", params);
StatsFormDTO formDTO = null;
if (StringUtils.isNotBlank(params)){
formDTO = ConvertUtils.sourceToTarget(params, StatsFormDTO.class);
formDTO = JSON.parseObject(params,StatsFormDTO.class);
}
Result result = statsPublicityTaskService.tagViewedDailyStatsjob(formDTO);
if (result.success()) {

4
epmet-module/epmet-job/epmet-job-server/src/main/java/com/epmet/task/PublicityTagViewedMonthlyStatsTask.java

@ -1,6 +1,6 @@
package com.epmet.task;
import com.epmet.commons.tools.utils.ConvertUtils;
import com.alibaba.fastjson.JSON;
import com.epmet.commons.tools.utils.Result;
import com.epmet.dto.StatsFormDTO;
import com.epmet.service.StatsPublicityTaskService;
@ -26,7 +26,7 @@ public class PublicityTagViewedMonthlyStatsTask implements ITask {
logger.debug("publicityTagViewedMonthlyStatsTask定时任务正在执行,参数为:{}", params);
StatsFormDTO formDTO = null;
if (StringUtils.isNotBlank(params)){
formDTO = ConvertUtils.sourceToTarget(params, StatsFormDTO.class);
formDTO = JSON.parseObject(params,StatsFormDTO.class);
}
Result result = statsPublicityTaskService.tagViewedMonthlyStatsjob(formDTO);
if (result.success()) {

4
epmet-module/epmet-job/epmet-job-server/src/main/java/com/epmet/task/PublicityTagViewedQuarterlyAndYearlyhlyStatsTask.java

@ -1,6 +1,6 @@
package com.epmet.task;
import com.epmet.commons.tools.utils.ConvertUtils;
import com.alibaba.fastjson.JSON;
import com.epmet.commons.tools.utils.Result;
import com.epmet.dto.StatsFormDTO;
import com.epmet.service.StatsPublicityTaskService;
@ -26,7 +26,7 @@ public class PublicityTagViewedQuarterlyAndYearlyhlyStatsTask implements ITask {
logger.debug("publicityTagViewedMonthlyStatsTask定时任务正在执行,参数为:{}", params);
StatsFormDTO formDTO = null;
if (StringUtils.isNotBlank(params)){
formDTO = ConvertUtils.sourceToTarget(params, StatsFormDTO.class);
formDTO = JSON.parseObject(params,StatsFormDTO.class);
}
Result result = statsPublicityTaskService.tagViewedQuarterlyStatsjob(formDTO);
if (result.success()) {

Loading…
Cancel
Save