| | |
| | | if (Objects.isNull(warehouseAreasItems)) { |
| | | throw new CoolException("物料未送至收货区或已组托完成移出收货区!!"); |
| | | } |
| | | if (item.getFieldsIndex().equals(warehouseAreasItems.getFieldsIndex())) { |
| | | throw new CoolException("票号:" + item.getExtendFields().get("crushNo") + "已组托,不可重复组托!!"); |
| | | // 只在票号不为空时才进行重复检查 |
| | | if (!Objects.isNull(item.getFieldsIndex()) && !Objects.isNull(warehouseAreasItems.getFieldsIndex()) |
| | | && item.getFieldsIndex().equals(warehouseAreasItems.getFieldsIndex())) { |
| | | String crushNo = item.getExtendFields() != null ? item.getExtendFields().get("crushNo") : ""; |
| | | throw new CoolException("票号:" + crushNo + "已组托,不可重复组托!!"); |
| | | } |
| | | } |
| | | }); |