34 changed files with 436 additions and 157 deletions
@ -0,0 +1,52 @@ |
|||
package com.epmet.dto.indexcal; |
|||
|
|||
import lombok.Data; |
|||
|
|||
import java.io.Serializable; |
|||
import java.util.List; |
|||
|
|||
/** |
|||
* 网格相关分值 |
|||
* |
|||
* @author yinzuomei@elink-cn.com |
|||
* @date 2020/8/31 16:38 |
|||
*/ |
|||
@Data |
|||
public class GridSubScoreDTO implements Serializable { |
|||
/** |
|||
* 网格Id |
|||
*/ |
|||
private String gridId; |
|||
|
|||
/** |
|||
* 客户Id |
|||
*/ |
|||
private String customerId; |
|||
|
|||
/** |
|||
* 网格所属的机关Id |
|||
*/ |
|||
private String agencyId; |
|||
|
|||
/** |
|||
* 所有上级ID,用英文逗号分开 |
|||
*/ |
|||
private String allParentIds; |
|||
|
|||
/** |
|||
* 季度id: yyyyQ1、yyyyQ2、yyyyQ3、yyyyQ4 |
|||
*/ |
|||
private String quarterId; |
|||
|
|||
/** |
|||
* 年度ID: yyyy |
|||
*/ |
|||
private String yearId; |
|||
|
|||
/** |
|||
* 月维度Id: yyyyMM |
|||
*/ |
|||
private String monthId; |
|||
|
|||
private List<GridScoreDetailDTO> detailList; |
|||
} |
@ -0,0 +1,32 @@ |
|||
package com.epmet.task; |
|||
|
|||
import com.epmet.commons.tools.exception.ExceptionUtils; |
|||
import com.epmet.commons.tools.utils.Result; |
|||
import com.epmet.feign.DataStatisticalOpenFeignClient; |
|||
import lombok.extern.slf4j.Slf4j; |
|||
import org.springframework.beans.factory.annotation.Autowired; |
|||
import org.springframework.stereotype.Component; |
|||
|
|||
@Slf4j |
|||
@Component("evaIndexScreenDimInitTask") |
|||
public class EvaIndexScreenDimInitTask implements ITask { |
|||
|
|||
@Autowired |
|||
private DataStatisticalOpenFeignClient feignClient; |
|||
|
|||
@Override |
|||
public void run(String params) { |
|||
log.debug("EvaIndexScreenDimInitTask定时任务正在执行,参数为:{}", params); |
|||
Result result = null; |
|||
try { |
|||
result = feignClient.initAllEIDims(); |
|||
} catch (Exception e) { |
|||
log.error("EvaIndexScreenDimInitTask定时任务正在执行定时任务执行失败:{}", ExceptionUtils.getErrorStackTrace(e)); |
|||
} |
|||
if (result.success()){ |
|||
log.debug("EvaIndexScreenDimInitTask定时任务正在执行定时任务执行成功"); |
|||
}else { |
|||
log.debug("EvaIndexScreenDimInitTask定时任务正在执行定时任务执行失败:" + result.getMsg()); |
|||
} |
|||
} |
|||
} |
Loading…
Reference in new issue