| | |
| | | }else if (nodeType.equals("RGB(255,192,0)")) { |
| | | //堆垛机 |
| | | nodeData.put("type", "crn"); |
| | | }else if (nodeType.equals("RGB(255,255,0)")) { |
| | | //双工位堆垛机 |
| | | nodeData.put("type", "dualCrn"); |
| | | }else if (nodeType.equals("RGB(0,112,192)")) { |
| | | //输送线 |
| | | nodeData.put("type", "devp"); |
| | |
| | | |
| | | Integer isBarcodeStation = value.getInteger("isBarcodeStation"); |
| | | if (isBarcodeStation != null && isBarcodeStation == 1) { |
| | | StationObjModel barcodeStationModel = new StationObjModel(); |
| | | barcodeStationModel.setDeviceNo(deviceNo); |
| | | barcodeStationModel.setStationId(value.getInteger("stationId")); |
| | | |
| | | if (value.getInteger("backStation") != null) { |
| | | StationObjModel backStation = new StationObjModel(); |
| | | barcodeStationModel.setBackStation(backStation); |
| | | |
| | | backStation.setDeviceNo(value.getInteger("backStationDeviceNo")); |
| | | backStation.setStationId(value.getInteger("backStation")); |
| | | } |
| | | |
| | | List<StationObjModel> barcodeStationList = barcodeStationMap.getOrDefault(deviceNo, new ArrayList<>()); |
| | | barcodeStationList.add(stationObjModel); |
| | | barcodeStationList.add(barcodeStationModel); |
| | | barcodeStationMap.put(deviceNo, barcodeStationList); |
| | | } |
| | | |