限值提交
This commit is contained in:
@@ -145,10 +145,10 @@ public class CommTerminalController extends BaseController {
|
|||||||
@PostMapping("substationGetLine")
|
@PostMapping("substationGetLine")
|
||||||
@ApiOperation("根据电站获取所有监测点")
|
@ApiOperation("根据电站获取所有监测点")
|
||||||
@ApiImplicitParam(name = "substationId", value = "请求体", required = true)
|
@ApiImplicitParam(name = "substationId", value = "请求体", required = true)
|
||||||
public HttpResult<List<LineDevGetDTO>> substationGetLine(@RequestParam("substationId")String substationId) {
|
public HttpResult<LineDevGetBandDTO> substationGetLine(@RequestParam("substationId")String substationId) {
|
||||||
TimeInterval timer = new TimeInterval();
|
TimeInterval timer = new TimeInterval();
|
||||||
String methodDescribe = getMethodDescribe("substationGetLine");
|
String methodDescribe = getMethodDescribe("substationGetLine");
|
||||||
List<LineDevGetDTO> result = commTerminalService.substationGetLine(substationId);
|
LineDevGetBandDTO result = commTerminalService.substationGetLine(substationId);
|
||||||
log.info("运行时长" + timer.intervalRestart());
|
log.info("运行时长" + timer.intervalRestart());
|
||||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, result, methodDescribe);
|
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, result, methodDescribe);
|
||||||
}
|
}
|
||||||
@@ -162,10 +162,10 @@ public class CommTerminalController extends BaseController {
|
|||||||
@PostMapping("busBarGetLine")
|
@PostMapping("busBarGetLine")
|
||||||
@ApiOperation("根据母线id获取监测点信息")
|
@ApiOperation("根据母线id获取监测点信息")
|
||||||
@ApiImplicitParam(name = "busBarId", value = "请求体", required = true)
|
@ApiImplicitParam(name = "busBarId", value = "请求体", required = true)
|
||||||
public HttpResult<List<LineDevGetDTO>> busBarGetLine(@RequestParam("busBarId")String busBarId) {
|
public HttpResult<LineDevGetBandDTO> busBarGetLine(@RequestParam("busBarId")String busBarId) {
|
||||||
TimeInterval timer = new TimeInterval();
|
TimeInterval timer = new TimeInterval();
|
||||||
String methodDescribe = getMethodDescribe("busBarGetLine");
|
String methodDescribe = getMethodDescribe("busBarGetLine");
|
||||||
List<LineDevGetDTO> result = commTerminalService.busBarGetLine(busBarId);
|
LineDevGetBandDTO result = commTerminalService.substationGetLine(busBarId);
|
||||||
log.info("运行时长" + timer.intervalRestart());
|
log.info("运行时长" + timer.intervalRestart());
|
||||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, result, methodDescribe);
|
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, result, methodDescribe);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -60,19 +60,13 @@ public interface CommTerminalService {
|
|||||||
List<DeptGetDeviceDTO> deptGetDevice(DeptGetLineParam deptGetLineParam);
|
List<DeptGetDeviceDTO> deptGetDevice(DeptGetLineParam deptGetLineParam);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 根据单位获取所有装置
|
* 根据电站和母线id获取监测点信息
|
||||||
* @author cdf
|
* @author cdf
|
||||||
* @date 2023/5/10
|
* @date 2023/5/10
|
||||||
*/
|
*/
|
||||||
List<LineDevGetDTO> substationGetLine(String substationId);
|
LineDevGetBandDTO substationGetLine(String substationId);
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 根据母线获取监测点信息
|
|
||||||
* @author cdf
|
|
||||||
* @date 2023/5/10
|
|
||||||
*/
|
|
||||||
List<LineDevGetDTO> busBarGetLine(String busBarId);
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -178,27 +178,15 @@ public class CommTerminalServiceImpl implements CommTerminalService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public List<LineDevGetDTO> substationGetLine(String substationId) {
|
public LineDevGetBandDTO substationGetLine(String substationId) {
|
||||||
return lineMapper.getLineBySubStation(substationId);
|
LineDevGetBandDTO lineDevGetBandDTO = new LineDevGetBandDTO();
|
||||||
}
|
List<LineDevGetDTO> subList = lineMapper.getLineBySubStation(substationId);
|
||||||
|
lineDevGetBandDTO.setZwList(subList);
|
||||||
@Override
|
return lineDevGetBandDTO;
|
||||||
public List<LineDevGetDTO> busBarGetLine(String busBarId) {
|
|
||||||
return lineMapper.getLineBySubStation(busBarId);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
private void getChildrenByParent(List<DeptDTO> deptAllList, List<DeptGetChildrenMoreDTO> res) {
|
|
||||||
deptAllList.forEach(it -> {
|
|
||||||
DeptGetChildrenMoreDTO deptGetChildrenMoreDTO = new DeptGetChildrenMoreDTO();
|
|
||||||
deptGetChildrenMoreDTO.setUnitId(it.getId());
|
|
||||||
deptGetChildrenMoreDTO.setUnitName(it.getName());
|
|
||||||
List<String> deptChildren = deptAllList.stream().filter(deptDTO -> deptDTO.getPids().contains(it.getId())).map(DeptDTO::getId).collect(Collectors.toList());
|
|
||||||
deptChildren.add(it.getId());
|
|
||||||
deptGetChildrenMoreDTO.setUnitChildrenList(deptChildren);
|
|
||||||
res.add(deptGetChildrenMoreDTO);
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
private List<Integer> filterDataTypeNew(String serverName) {
|
private List<Integer> filterDataTypeNew(String serverName) {
|
||||||
|
|||||||
Reference in New Issue
Block a user