贴标申请,仓储转运
This commit is contained in:
+6
@@ -26,6 +26,12 @@ public interface InventoryPositionMapper extends BaseMapper<InventoryPosition> {
|
||||
List<InventoryPosition> listPallet(@Param("customerId") String customerId,
|
||||
@Param("palletId") Long palletId);
|
||||
|
||||
/** Physical carriers can contain stock owned by more than one customer. */
|
||||
@Select("SELECT COUNT(*) FROM ll_inventory_position WHERE overseas_warehouse_id=#{warehouseId} " +
|
||||
"AND pallet_id=#{palletId} AND (available_packages>0 OR hold_packages>0 OR allocated_packages>0 " +
|
||||
"OR picked_packages>0 OR receiving_packages>0)")
|
||||
long activePhysicalPallet(@Param("warehouseId") String warehouseId, @Param("palletId") Long palletId);
|
||||
|
||||
@Select("SELECT * FROM ll_inventory_position WHERE customer_id=#{customerId} AND balance_id=#{balanceId} " +
|
||||
"AND pallet_id=#{palletId} AND batch_no=#{batchNo} LIMIT 1 FOR UPDATE")
|
||||
InventoryPosition lockPosition(@Param("customerId") String customerId,
|
||||
|
||||
Reference in New Issue
Block a user