| | |
| | | import org.springframework.transaction.annotation.Transactional; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.servlet.http.HttpServletResponse; |
| | | import jakarta.servlet.http.HttpServletResponse; |
| | | import java.util.*; |
| | | import java.util.stream.Collectors; |
| | | |
| | |
| | | WaitPakin waitPakin = waitPakinService.getById(id); |
| | | BasStation isBarcodeSta = basStationService.getOne(new LambdaQueryWrapper<BasStation>() |
| | | .eq(BasStation::getBarcode, waitPakin.getBarcode()) |
| | | ,false |
| | | .last("LIMIT 1") |
| | | ); |
| | | if (!Cools.isEmpty(isBarcodeSta)){ |
| | | throw new CoolException("该条码已被"+isBarcodeSta.getStationName()+"站绑定"); |