| | |
| | | |
| | | |
| | | import javax.annotation.PostConstruct; |
| | | import java.util.ArrayList; |
| | | import java.util.List; |
| | | |
| | | @Component |
| | |
| | | } |
| | | |
| | | //获取站点对应的库类型 |
| | | public static List<Long> getAreaTypeList(String sourceStaNo) { |
| | | List<Long> deviceBindIdList = new ArrayList<>(); |
| | | DeviceBindService rowLastnoService = SpringUtils.getBean(DeviceBindService.class); |
| | | List<DeviceBind> deviceBinds = rowLastnoService.list(new LambdaQueryWrapper<DeviceBind>()); |
| | | for (DeviceBind deviceBind : deviceBinds) { |
| | | String[] staNoList = deviceBind.getStaList().split(";"); |
| | | for (String staNo : staNoList) { |
| | | if (staNo.equals(sourceStaNo)) { |
| | | deviceBindIdList.add(deviceBind.getId()); |
| | | } |
| | | } |
| | | } |
| | | return deviceBindIdList; |
| | | } |
| | | |
| | | //获取站点对应的库类型 |
| | | public static Long getAreaType(String sourceStaNo) { |
| | | DeviceBindService rowLastnoService = SpringUtils.getBean(DeviceBindService.class); |
| | | List<DeviceBind> deviceBinds = rowLastnoService.list(new LambdaQueryWrapper<DeviceBind>()); |