| | |
| | | } |
| | | } |
| | | // 2. 校验工作档中运行中的托盘码 |
| | | int wrkMastCount = wrkMastService.selectCount(new EntityWrapper<WrkMast>().eq("barcode", barcode)); |
| | | if (wrkMastCount != 0) { |
| | | log.warn("条码在工作档已存在:{}", barcode); |
| | | throw new CoolException("条码在工作档,请更换条码:" + barcode); |
| | | if (type != 2) { |
| | | int wrkMastCount = wrkMastService.selectCount(new EntityWrapper<WrkMast>().eq("barcode", barcode)); |
| | | if (wrkMastCount != 0) { |
| | | log.warn("条码在工作档已存在:{}", barcode); |
| | | throw new CoolException("条码在工作档,请更换条码:" + barcode); |
| | | } |
| | | } |
| | | |
| | | // 3. 校验AGV任务列表中未完成的托盘码:检查是否有未完成的AGV任务(is_deleted=0) |