|
@ -2,10 +2,8 @@ package com.epmet.task; |
|
|
|
|
|
|
|
|
import com.alibaba.fastjson.JSON; |
|
|
import com.alibaba.fastjson.JSON; |
|
|
import com.epmet.commons.tools.utils.Result; |
|
|
import com.epmet.commons.tools.utils.Result; |
|
|
import com.epmet.dto.StatsFormDTO; |
|
|
|
|
|
import com.epmet.dto.stats.form.FactUserHouseFormDTO; |
|
|
import com.epmet.dto.stats.form.FactUserHouseFormDTO; |
|
|
import com.epmet.service.StatsUserHouseService; |
|
|
import com.epmet.service.StatsUserHouseService; |
|
|
import com.epmet.service.StatsUserService; |
|
|
|
|
|
import org.apache.commons.lang3.StringUtils; |
|
|
import org.apache.commons.lang3.StringUtils; |
|
|
import org.slf4j.Logger; |
|
|
import org.slf4j.Logger; |
|
|
import org.slf4j.LoggerFactory; |
|
|
import org.slf4j.LoggerFactory; |
|
@ -33,11 +31,18 @@ public class StatsUserHouseTask implements ITask { |
|
|
if (StringUtils.isNotBlank(params)) { |
|
|
if (StringUtils.isNotBlank(params)) { |
|
|
formDTO = JSON.parseObject(params, FactUserHouseFormDTO.class); |
|
|
formDTO = JSON.parseObject(params, FactUserHouseFormDTO.class); |
|
|
} |
|
|
} |
|
|
Result result = statsUserHouseService.execUserHouseStatistical(formDTO); |
|
|
Result result = statsUserHouseService.execUserHouseGridStatistical(formDTO); |
|
|
if (result.success()) { |
|
|
if (result.success()) { |
|
|
logger.info("StatsUserHouseTask定时任务执行成功"); |
|
|
logger.info("StatsUserHouseTask-grid定时任务执行成功"); |
|
|
} else { |
|
|
} else { |
|
|
logger.error("StatsUserHouseTask定时任务执行失败:" + result.getMsg()); |
|
|
logger.error("StatsUserHouseTask-grid定时任务执行失败:" + result.getMsg()); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
result = statsUserHouseService.execUserHouseAgencyStatistical(formDTO); |
|
|
|
|
|
if (result.success()) { |
|
|
|
|
|
logger.info("StatsUserHouseTask-agency定时任务执行成功"); |
|
|
|
|
|
} else { |
|
|
|
|
|
logger.error("StatsUserHouseTask-agency定时任务执行失败:" + result.getMsg()); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|