1.定时任务重试代码提交

2.pmsbug修改
This commit is contained in:
wr
2024-01-09 15:57:55 +08:00
parent 7f7d7cf058
commit ab1abd8259
27 changed files with 211 additions and 204 deletions

View File

@@ -32,7 +32,7 @@ public class PqTypicalSourceFallbackFactory implements FallbackFactory<PqTypical
@Override
public HttpResult<String> send(UploadParam uploadParam) {
log.error("{}异常,降级处理,异常为:{}", "国网上送-典型源荷指标统计数据", throwable.toString());
throw new BusinessException(finalExceptionEnum);
return new HttpResult<>(CommonResponseEnum.FAIL.getCode(),CommonResponseEnum.FAIL.getMessage());
}
};
}

View File

@@ -31,19 +31,19 @@ public class UploadGwDataFallbackFactory implements FallbackFactory<UploadGwData
@Override
public HttpResult<String> uploadPointStatisticalData(UploadParam param) {
log.error("{}异常,降级处理,异常为:{}", "国网上送-主配网监测点统计数据", throwable.toString());
throw new BusinessException(finalExceptionEnum);
return new HttpResult<>(CommonResponseEnum.FAIL.getCode(),CommonResponseEnum.FAIL.getMessage());
}
@Override
public HttpResult<String> uploadSubstationStatisticalData(UploadParam param) {
log.error("{}异常,降级处理,异常为:{}", "国网上送-变电站监测统计数据", throwable.toString());
throw new BusinessException(finalExceptionEnum);
return new HttpResult<>(CommonResponseEnum.FAIL.getCode(),CommonResponseEnum.FAIL.getMessage());
}
@Override
public HttpResult<String> uploadEvaluationData(UploadParam param) {
log.error("{}异常,降级处理,异常为:{}", "国网上送-母线基准水平评估数据", throwable.toString());
throw new BusinessException(finalExceptionEnum);
return new HttpResult<>(CommonResponseEnum.FAIL.getCode(),CommonResponseEnum.FAIL.getMessage());
}
};
}