| | |
| | | |
| | | List<Map<String, Object>> params = new ArrayList<>(); |
| | | for (BasStation basStation : basStationList) { |
| | | if (Cools.isEmpty(basStation) || Cools.isEmpty(basStation.getStationName())) { |
| | | if (Cools.isEmpty(basStation) || Cools.isEmpty(basStation.getStationName()) || Cools.isEmpty(basStation.getProductionLineCode())) { |
| | | continue; |
| | | } |
| | | Map<String, Object> item = new HashMap<>(); |
| | | item.put("ConnPortCode", basStation.getStationName()); |
| | | item.put("ConnPortName", Cools.isEmpty(basStation.getStationId()) ? basStation.getStationName() : basStation.getStationId()); |
| | | item.put("WorkshopCode", "YZ"); |
| | | item.put("WorkshopName", "银座车间"); |
| | | item.put("ProductionLineCode", "YZ"); |
| | | item.put("ProductionLineName", "银座仓库"); |
| | | item.put("WorkshopCode", ""); |
| | | item.put("WorkshopName", ""); |
| | | item.put("ProductionLineCode", basStation.getProductionLineCode()); |
| | | item.put("ProductionLineName", basStation.getProductionLineName()); |
| | | item.put("CreatedBy", "WMSSystem"); |
| | | item.put("IsValid", Objects.equals(basStation.getStatus(), 1)); |
| | | params.add(item); |