feat: complete overseas customer and PDA workflows

This commit is contained in:
2026-09-04 12:59:37 +08:00
parent a274d029bb
commit 54cb9ceade
60 changed files with 1598 additions and 277 deletions
@@ -60,7 +60,7 @@ public interface InboundPalletAllocationMapper extends BaseMapper<InboundPalletA
UPDATE fl_inbound_pallet_allocation
SET picked_package_count = picked_package_count + #{count},
/* Keep the snapshot confirmed until the atomic warehouse release
succeeds. markReleased is the single owner of this transition;
succeeds. markBlockReleased is the single owner of this transition;
changing it here makes the subsequent idempotent release update
affect zero rows and surfaces as S0500 from PDA pick. */
allocation_status = 'CONFIRMED',
@@ -93,9 +93,9 @@ public interface InboundPalletAllocationMapper extends BaseMapper<InboundPalletA
@Update("""
UPDATE fl_inbound_pallet_allocation
SET allocation_status='RELEASED', slot_status='RELEASED', updated_at=CURRENT_TIMESTAMP(3)
SET allocation_status = 'RELEASED', slot_status = 'RELEASED', updated_at = CURRENT_TIMESTAMP(3)
WHERE tenant_id=#{tenantId} AND inbound_id=#{inboundId} AND block_id=#{blockId}
AND allocation_status='CONFIRMED'
AND allocation_status = 'CONFIRMED'
""")
int markBlockReleased(@Param("tenantId") long tenantId, @Param("inboundId") long inboundId,
@Param("blockId") long blockId);