新增用能定时任务
This commit is contained in:
@@ -25,4 +25,10 @@ public interface EnergyStatisticFeignClient {
|
||||
@GetMapping("electricCalJob")
|
||||
HttpResult<Boolean> electricCalJob();
|
||||
|
||||
@GetMapping("eleOnlineRateJob")
|
||||
HttpResult<Boolean> eleOnlineRateJobHandler();
|
||||
|
||||
@GetMapping("eleIntegrityJob")
|
||||
HttpResult<Boolean> eleIntegrityJobHandler();
|
||||
|
||||
}
|
||||
|
||||
@@ -38,6 +38,18 @@ public class EnergyStatisticFallbackFactory implements FallbackFactory<EnergySta
|
||||
log.error("{}异常,降级处理,异常为:{}","调度统计电量增量",cause.toString());
|
||||
throw new BusinessException(finalExceptionEnum);
|
||||
}
|
||||
|
||||
@Override
|
||||
public HttpResult<Boolean> eleOnlineRateJobHandler() {
|
||||
log.error("{}异常,降级处理,异常为:{}","用能终端在线率数据",cause.toString());
|
||||
throw new BusinessException(finalExceptionEnum);
|
||||
}
|
||||
|
||||
@Override
|
||||
public HttpResult<Boolean> eleIntegrityJobHandler() {
|
||||
log.error("{}异常,降级处理,异常为:{}","用能数据完整性数据",cause.toString());
|
||||
throw new BusinessException(finalExceptionEnum);
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,20 @@
|
||||
package com.njcn.energy.pojo.dto;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* 类的介绍:
|
||||
*
|
||||
* @author xuyang
|
||||
* @version 1.0.0
|
||||
* @createTime 2022/4/13 16:57
|
||||
*/
|
||||
@Data
|
||||
public class HarmonicDTO {
|
||||
|
||||
private String id;
|
||||
|
||||
private Integer real;
|
||||
|
||||
private Integer due;
|
||||
}
|
||||
Reference in New Issue
Block a user