| | |
| | | if (null !=basStation.getContainerTypes()){ |
| | | basStation.setContainerType(basStation.getContainerTypes().toString()); |
| | | } |
| | | if (Cools.isEmpty(basStation.getStationAlias())){ |
| | | basStation.setStationAlias(new ArrayList<>()); |
| | | basStation.getStationAlias().add(basStation.getStationName()); |
| | | } else if (!basStation.getStationAlias().contains(basStation.getStationName())){ |
| | | basStation.getStationAlias().add(basStation.getStationName()); |
| | | } |
| | | if (!basStationService.save(basStation)) { |
| | | return R.error("保存失败"); |
| | | } |
| | |
| | | if (null !=basStation.getUseStatus() && basStation.getUseStatus().equals(LocStsType.LOC_STS_TYPE_O.type)){ |
| | | basStation.setBarcode(null); |
| | | } |
| | | if (Cools.isEmpty(basStation.getStationAlias())){ |
| | | basStation.setStationAlias(new ArrayList<>()); |
| | | basStation.getStationAlias().add(basStation.getStationName()); |
| | | } else if (!basStation.getStationAlias().contains(basStation.getStationName())){ |
| | | basStation.getStationAlias().add(basStation.getStationName()); |
| | | } |
| | | if (!basStationService.updateById(basStation)) { |
| | | return R.error("更新失败"); |
| | | } |