新增用能定时任务

This commit is contained in:
xy
2024-07-24 13:45:59 +08:00
parent 128925a5d6
commit 3ed732affd
6 changed files with 264 additions and 0 deletions

View File

@@ -25,4 +25,10 @@ public interface EnergyStatisticFeignClient {
@GetMapping("electricCalJob")
HttpResult<Boolean> electricCalJob();
@GetMapping("eleOnlineRateJob")
HttpResult<Boolean> eleOnlineRateJobHandler();
@GetMapping("eleIntegrityJob")
HttpResult<Boolean> eleIntegrityJobHandler();
}

View File

@@ -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);
}
};
}
}

View File

@@ -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;
}