二级评估接口开发
This commit is contained in:
@@ -81,7 +81,7 @@ public class SubstationServiceImpl extends ServiceImpl<SubstationMapper, Substat
|
|||||||
public List<LedgerSelectVO> getBusBarSelect(String stationId) {
|
public List<LedgerSelectVO> getBusBarSelect(String stationId) {
|
||||||
List<LedgerSelectVO> result = new ArrayList<>();
|
List<LedgerSelectVO> result = new ArrayList<>();
|
||||||
LambdaQueryWrapper<Line> lambdaQueryWrapper = new LambdaQueryWrapper<>();
|
LambdaQueryWrapper<Line> lambdaQueryWrapper = new LambdaQueryWrapper<>();
|
||||||
lambdaQueryWrapper.like(Line::getPids,stationId).eq(Line::getLevel,LineBaseEnum.SUB_V_LEVEL);
|
lambdaQueryWrapper.like(Line::getPids,stationId).eq(Line::getLevel,LineBaseEnum.SUB_V_LEVEL.getCode());
|
||||||
List<Line> busBarList = lineMapper.selectList(lambdaQueryWrapper);
|
List<Line> busBarList = lineMapper.selectList(lambdaQueryWrapper);
|
||||||
List<String> ids = busBarList.stream().map(Line::getId).collect(Collectors.toList());
|
List<String> ids = busBarList.stream().map(Line::getId).collect(Collectors.toList());
|
||||||
List<Voltage> voltageList = voltageMapper.selectBatchIds(ids);
|
List<Voltage> voltageList = voltageMapper.selectBatchIds(ids);
|
||||||
@@ -102,7 +102,7 @@ public class SubstationServiceImpl extends ServiceImpl<SubstationMapper, Substat
|
|||||||
@Override
|
@Override
|
||||||
public List<Line> getMonitorSelect(String stationId) {
|
public List<Line> getMonitorSelect(String stationId) {
|
||||||
LambdaQueryWrapper<Line> lambdaQueryWrapper = new LambdaQueryWrapper<>();
|
LambdaQueryWrapper<Line> lambdaQueryWrapper = new LambdaQueryWrapper<>();
|
||||||
lambdaQueryWrapper.like(Line::getPids,stationId).eq(Line::getLevel,LineBaseEnum.LINE_LEVEL);
|
lambdaQueryWrapper.like(Line::getPids,stationId).eq(Line::getLevel,LineBaseEnum.LINE_LEVEL.getCode());
|
||||||
List<Line> lineList = lineMapper.selectList(lambdaQueryWrapper);
|
List<Line> lineList = lineMapper.selectList(lambdaQueryWrapper);
|
||||||
return lineList;
|
return lineList;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user