|
|
|
@ -1642,7 +1642,7 @@ public class WarehouseTrayTypeServiceImpl extends BaseServiceImpl<WarehouseTrayT
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
public R moveTrayScanPackage(String orderPackageCode) { |
|
|
|
|
public R moveTrayScanPackage(String orderPackageCode,String trayCode) { |
|
|
|
|
QueryWrapper<WarehouseTrayGoodsEntity> trayGoodsEntityQueryWrapper = new QueryWrapper<>(); |
|
|
|
|
trayGoodsEntityQueryWrapper.eq("association_value",orderPackageCode); |
|
|
|
|
WarehouseTrayGoodsEntity trayGoodsEntity = warehouseTrayGoodsService.getOne(trayGoodsEntityQueryWrapper); |
|
|
|
@ -1650,6 +1650,12 @@ public class WarehouseTrayTypeServiceImpl extends BaseServiceImpl<WarehouseTrayT
|
|
|
|
|
log.warn("#################moveTrayScanPackage: 包件未打托 orderPackageCode={}",orderPackageCode); |
|
|
|
|
throw new CustomerException(403,"包件未打托"); |
|
|
|
|
} |
|
|
|
|
String oldTrayCode = trayGoodsEntity.getTrayCode(); |
|
|
|
|
if(oldTrayCode.equals(trayCode)){ |
|
|
|
|
log.warn("#################moveTrayScanPackage: 包件已打托目标托盘 orderPackageCode={}",orderPackageCode); |
|
|
|
|
throw new CustomerException(403,"包件已打托目标托盘"); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
QueryWrapper<WarehouseUpdownGoodsEntity> updownGoodsEntityQueryWrapper = new QueryWrapper<>(); |
|
|
|
|
updownGoodsEntityQueryWrapper.eq("association_value",orderPackageCode); |
|
|
|
|
WarehouseUpdownGoodsEntity updownGoodsEntity = warehouseUpdownGoodsService.getOne(updownGoodsEntityQueryWrapper); |
|
|
|
|