| | |
| | | import org.springframework.transaction.annotation.Transactional; |
| | | |
| | | import java.util.*; |
| | | import java.util.stream.Collectors; |
| | | |
| | | /** |
| | | * Created by vincent on 3/15/2024 |
| | |
| | | } |
| | | } |
| | | // loc |
| | | List<String> newMapLocList = new ArrayList<>(); |
| | | for (MapItem item : param.getItemList()) { |
| | | int row = Integer.parseInt(String.valueOf(item.getProperty().get("row"))); |
| | | int bay = Integer.parseInt(String.valueOf(item.getProperty().get("bay"))); |
| | | String locNo = Utils.getLocNo(row, bay, param.getFloor()); |
| | | newMapLocList.add(locNo); |
| | | } |
| | | |
| | | List<String> existLocList = locService.list(new LambdaQueryWrapper<Loc>().eq(Loc::getLev, param.getFloor())) |
| | | .stream().map(Loc::getLocNo).collect(Collectors.toList()); |
| | | |
| | | // todo |
| | | |
| | | locService.remove(new LambdaQueryWrapper<Loc>().eq(Loc::getLev, param.getFloor())); |
| | | for (MapItem item : param.getItemList()) { |
| | | Loc loc = new Loc(); |