Browse Source

Merge branch 'dev_patrol_stats' of http://git.elinkit.com.cn:7070/r/epmet-cloud into develop

dev_shibei_match
jianjun 4 years ago
parent
commit
6af8eedbed
  1. 6
      epmet-module/epmet-job/epmet-job-server/src/main/java/com/epmet/task/BizDataStatsDailyTask.java

6
epmet-module/epmet-job/epmet-job-server/src/main/java/com/epmet/task/BizDataStatsDailyTask.java

@ -5,6 +5,7 @@ import com.epmet.commons.tools.utils.Result;
import com.epmet.dto.extract.form.BizDataFormDTO;
import com.epmet.service.BizDataStatsService;
import lombok.extern.slf4j.Slf4j;
import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
@ -23,7 +24,10 @@ public class BizDataStatsDailyTask implements ITask {
@Override
public void run(String params) {
log.debug("bizDataStatsDailyTask定时任务正在执行,参数为:{}", params);
BizDataFormDTO formDTO = JSON.parseObject(params, BizDataFormDTO.class);
BizDataFormDTO formDTO = new BizDataFormDTO();
if (StringUtils.isNotBlank(params)) {
formDTO = JSON.parseObject(params, BizDataFormDTO.class);
}
Result result = bizDataStatsService.exeStatsDaily(formDTO);
if (result.success()){
log.debug("bizDataStatsDailyTask定时任务正在执行定时任务执行成功");

Loading…
Cancel
Save