| | |
| | | return list; |
| | | } |
| | | |
| | | //获取提升机所绑定的输送线所有站点 |
| | | public static List<Integer> getConveyorBindLiftAllStaNo(Integer liftNo) { |
| | | List<Integer> list = new ArrayList<>(); |
| | | ConfigService configService = SpringUtils.getBean(ConfigService.class); |
| | | if (configService == null) { |
| | | return list; |
| | | } |
| | | |
| | | Config conveyorLiftBindConfig = configService.selectOne(new EntityWrapper<Config>().eq("code", "conveyorLiftBind")); |
| | | if(conveyorLiftBindConfig == null) { |
| | | return list; |
| | | } |
| | | |
| | | List<JSONObject> val = JSON.parseArray(conveyorLiftBindConfig.getValue(), JSONObject.class); |
| | | if (val.isEmpty()) { |
| | | return list; |
| | | } |
| | | |
| | | for (JSONObject data : val) { |
| | | if(data.getInteger("liftNo").equals(liftNo)) { |
| | | list.add(data.getInteger("staNo")); |
| | | } |
| | | } |
| | | |
| | | return list; |
| | | } |
| | | |
| | | //获取提升机站点 |
| | | public static ForkLiftStaProtocol getLiftStaByStaNo(Integer staNo) { |
| | | SlaveProperties slaveProperties = SpringUtils.getBean(SlaveProperties.class); |