1.公共方法新增变电站信息查询
2.调整技术监督变电站查询方法
This commit is contained in:
@@ -9,6 +9,7 @@ import com.njcn.device.biz.commApi.fallback.CommTerminalGeneralClientFallbackFac
|
||||
import com.njcn.device.biz.pojo.dto.*;
|
||||
import com.njcn.device.biz.pojo.param.DeptGetLineParam;
|
||||
import com.njcn.device.biz.pojo.param.MonitorGetParam;
|
||||
import com.njcn.device.biz.pojo.param.SubstationParam;
|
||||
import com.njcn.device.biz.pojo.po.Overlimit;
|
||||
import com.njcn.device.biz.pojo.po.PqsDeviceUnit;
|
||||
import io.swagger.annotations.ApiImplicitParam;
|
||||
@@ -193,6 +194,16 @@ public interface CommTerminalGeneralClient {
|
||||
|
||||
@PostMapping("/tagOrIdGetMonitorList")
|
||||
HttpResult<List<CommMonitorInfoDTO>> tagOrIdGetMonitorList(@RequestBody MonitorGetParam monitorGetParam);
|
||||
|
||||
|
||||
/**
|
||||
* 获取变电站信息
|
||||
* @param substationParam
|
||||
* @return
|
||||
*/
|
||||
@PostMapping("/tagOrIdGetSub")
|
||||
HttpResult<List<SubGetBase>> tagOrIdGetSub(@RequestBody SubstationParam substationParam);
|
||||
|
||||
/**
|
||||
* 用于返回pq 还是pms系统
|
||||
*
|
||||
|
||||
@@ -8,6 +8,7 @@ import com.njcn.device.biz.commApi.CommTerminalGeneralClient;
|
||||
import com.njcn.device.biz.pojo.dto.*;
|
||||
import com.njcn.device.biz.pojo.param.DeptGetLineParam;
|
||||
import com.njcn.device.biz.pojo.param.MonitorGetParam;
|
||||
import com.njcn.device.biz.pojo.param.SubstationParam;
|
||||
import com.njcn.device.biz.pojo.po.Overlimit;
|
||||
import com.njcn.device.biz.pojo.po.PqsDeviceUnit;
|
||||
import com.njcn.device.biz.utils.DeviceEnumUtil;
|
||||
@@ -162,6 +163,12 @@ public class CommTerminalGeneralClientFallbackFactory implements FallbackFactory
|
||||
throw new BusinessException(finalExceptionEnum);
|
||||
}
|
||||
|
||||
@Override
|
||||
public HttpResult<List<SubGetBase>> tagOrIdGetSub(SubstationParam substationParam) {
|
||||
log.error("{}异常,降级处理,异常为:{}", "根据获取变电站信息", throwable.toString());
|
||||
throw new BusinessException(finalExceptionEnum);
|
||||
}
|
||||
|
||||
@Override
|
||||
public HttpResult<String> isPqOrPms() {
|
||||
log.error("{}异常,降级处理,异常为:{}", "返回pq还是pms系统", throwable.toString());
|
||||
|
||||
@@ -30,6 +30,16 @@ public class SubGetBase implements Serializable {
|
||||
*/
|
||||
private String voltageLevel;
|
||||
|
||||
/**
|
||||
* 部门
|
||||
*/
|
||||
private String orgId;
|
||||
|
||||
/**
|
||||
* 部门名称
|
||||
*/
|
||||
private String orgName;
|
||||
|
||||
/**
|
||||
* 所有子级监测点信息
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user