| | |
| | | wrapper.like(BasConveyor::getConveyorNo, condition); |
| | | } |
| | | basConveyorService.page(new Page<>(1, 30), wrapper).getRecords().forEach( |
| | | item -> vos.add(new KeyValVo(item.getDeviceId(), item.getConveyorNo() + "输送线[id:" + item.getDeviceId() + "]")) |
| | | item -> vos.add(new KeyValVo(item.getId(), item.getConveyorNo() + "输送线[id:" + item.getId() + "]")) |
| | | ); |
| | | return R.ok().add(vos); |
| | | } |
| | |
| | | private void read() throws InterruptedException { |
| | | ArrayList<BasConveyorSta> staNos = getStaNo(); |
| | | int staNoSize = staNos.size(); |
| | | OperateResultExOne<byte[]> result = siemensS7Net.Read("DB101.0", (short) (staNoSize*8)); |
| | | OperateResultExOne<byte[]> result = siemensS7Net.Read("DB1000.100", (short) (staNoSize*8)); |
| | | if (result.IsSuccess) { |
| | | for (int i = 0; i < staNoSize; i++) { |
| | | BasConveyorSta siteStation = staNos.get(i); |