谐波畸变率算法调整

This commit is contained in:
2023-04-25 10:21:34 +08:00
parent ed67b465e4
commit 98e9f41758
3 changed files with 6 additions and 6 deletions

View File

@@ -34,7 +34,7 @@ public class HarmAberrationRateJob {
//date = "2022-10-26"; //date = "2022-10-26";
lineParam.setDataDate(date); lineParam.setDataDate(date);
lineParam.setDataSource(1); lineParam.setDataSource(1);
distortionRateFeignClient.distortionRate(lineParam); distortionRateFeignClient.harmonicThdDay(lineParam);
} }

View File

@@ -17,10 +17,10 @@ import org.springframework.web.bind.annotation.RequestBody;
*/ */
@FeignClient( @FeignClient(
value = ServerInfo.PREPARE_BOOT, value = ServerInfo.PREPARE_BOOT,
path = "/distortion", path = "/harmonicOverLimit",
fallbackFactory = DistortionRateFeignClientFallbackFactory.class) fallbackFactory = DistortionRateFeignClientFallbackFactory.class)
public interface DistortionRateFeignClient { public interface DistortionRateFeignClient {
@PostMapping("/distortionRate") @PostMapping("/harmonicThdDay")
HttpResult<String> distortionRate(@RequestBody @Validated LineParam lineParam); HttpResult<Boolean> harmonicThdDay(@RequestBody @Validated LineParam lineParam);
} }

View File

@@ -31,8 +31,8 @@ public class DistortionRateFeignClientFallbackFactory implements FallbackFactory
Enum<?> finalExceptionEnum = exceptionEnum; Enum<?> finalExceptionEnum = exceptionEnum;
return new DistortionRateFeignClient() { return new DistortionRateFeignClient() {
@Override @Override
public HttpResult<String> distortionRate(@RequestBody @Validated LineParam lineParam){ public HttpResult<Boolean> harmonicThdDay(LineParam lineParam) {
log.error("{}异常,降级处理,异常为:{}", "谐波畸变率: ", throwable.toString()); log.error("{}异常,降级处理,异常为:{}", "谐波畸变率日表:", throwable.toString());
throw new BusinessException(finalExceptionEnum); throw new BusinessException(finalExceptionEnum);
} }
}; };