|
|
@ -388,6 +388,7 @@ public class DcDeviceServiceImpl extends ServiceImpl<DcDeviceMapper, DcDevice> i |
|
|
|
|
|
|
|
/** |
|
|
|
* 根据网段查询设备 |
|
|
|
* |
|
|
|
* @param networkSegment |
|
|
|
* @return |
|
|
|
*/ |
|
|
@ -455,7 +456,7 @@ public class DcDeviceServiceImpl extends ServiceImpl<DcDeviceMapper, DcDevice> i |
|
|
|
device.setDirection(direction); |
|
|
|
} |
|
|
|
List<DcDevice> list = listDevice(device); |
|
|
|
if (startStakeMarks != null && endStakeMarks != null) { |
|
|
|
if (startStakeMarks != null && startStakeMarks.size() != UniversalEnum.ZERO.getNumber() && endStakeMarks != null && endStakeMarks.size() != UniversalEnum.ZERO.getNumber()) { |
|
|
|
Integer startStakeMark = Integer.parseInt(startStakeMarks.get(UniversalEnum.ZERO.getNumber()) + startStakeMarks.get(UniversalEnum.ONE.getNumber())); |
|
|
|
Integer endStakeMark = Integer.parseInt(endStakeMarks.get(UniversalEnum.ZERO.getNumber()) + endStakeMarks.get(UniversalEnum.ONE.getNumber())); |
|
|
|
for (DcDevice dcDevice : list) { |
|
|
@ -524,13 +525,12 @@ public class DcDeviceServiceImpl extends ServiceImpl<DcDeviceMapper, DcDevice> i |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* @Description 获取事发地上游10公里内的情报板 |
|
|
|
* |
|
|
|
* @author liuwenge |
|
|
|
* @date 2024/4/15 14:18 |
|
|
|
* @param stakeMark 桩号 |
|
|
|
* @param direction 方向 |
|
|
|
* @return com.ruoyi.common.core.domain.AjaxResult |
|
|
|
* @Description 获取事发地上游10公里内的情报板 |
|
|
|
* @author liuwenge |
|
|
|
* @date 2024/4/15 14:18 |
|
|
|
*/ |
|
|
|
@Override |
|
|
|
public AjaxResult selectNearBoard(String stakeMark, String direction) { |
|
|
@ -553,6 +553,7 @@ public class DcDeviceServiceImpl extends ServiceImpl<DcDeviceMapper, DcDevice> i |
|
|
|
public List<HashMap<String, Object>> selectDeviceNameList(DcDevice dcDevice) { |
|
|
|
return dcDeviceMapper.selectDeviceNameList(dcDevice); |
|
|
|
} |
|
|
|
|
|
|
|
//设备查询-设备参数属性列表
|
|
|
|
@Override |
|
|
|
public List<HashMap<String, Object>> selectDeviceParameterProperties(DcDevice dcDevice) { |
|
|
@ -574,6 +575,7 @@ public class DcDeviceServiceImpl extends ServiceImpl<DcDeviceMapper, DcDevice> i |
|
|
|
.get(); // 请求方法
|
|
|
|
return JSON.parseObject(response.body().string(), AjaxResult.class); |
|
|
|
} |
|
|
|
|
|
|
|
public List<Map<String, Object>> selectDeviceOfRoad() { |
|
|
|
return dcDeviceMapper.selectDeviceOfRoad(); |
|
|
|
} |
|
|
|