1.pms配网查询信息优化

This commit is contained in:
wr
2023-10-12 15:29:41 +08:00
parent 5956a7e010
commit 108ce662ff
13 changed files with 286 additions and 98 deletions

View File

@@ -31,6 +31,14 @@ public interface PwMonitorClient {
@PostMapping("/getPwMonitorList")
HttpResult<List<PwPmsMonitorDTO>> getPwMonitorList(@RequestBody PwPmsMonitorParam pwPmsMonitorParam);
/**
* 获取配网所有监测点信息(新)
* @param pwPmsMonitorParam 参数条件
* @return 配网所有监测点信息
*/
@PostMapping("/getPwNewMonitorList")
HttpResult<List<PwPmsMonitorDTO>> getPwNewMonitorList(@RequestBody PwPmsMonitorParam pwPmsMonitorParam);
/**
* 获取子集配网所有监测点信息
* @param pwPmsMonitorParam 参数条件

View File

@@ -37,6 +37,12 @@ public class PwMonitorClientFallbackFactory implements FallbackFactory<PwMonitor
throw new BusinessException(finalExceptionEnum);
}
@Override
public HttpResult<List<PwPmsMonitorDTO>> getPwNewMonitorList(PwPmsMonitorParam pwPmsMonitorParam) {
log.error("{}异常,降级处理,异常为:{}", "获取配网所有监测点信息(新)", throwable.toString());
throw new BusinessException(finalExceptionEnum);
}
@Override
public HttpResult<List<PwPmsMonitorDTO>> getPwSubsetMonitorList(PwPmsMonitorParam pwPmsMonitorParam) {
log.error("{}异常,降级处理,异常为:{}", "获取子集配网所有监测点信息", throwable.toString());

View File

@@ -18,6 +18,9 @@ public class PwPmsMonitorParam {
@NotBlank(message = "部门索引不可为空")
private String orgId;
@ApiModelProperty(name = "ids", value = "监测点id",required = true)
private List<String> ids;
@ApiModelProperty(name = "powerId", value = "所属变电站")
private List<String> powerId;