| | |
| | | |
| | | 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); |
| | | } |
| | | |