Test #1

Merged
admin merged 1726 commits from test into main 2026-09-17 11:52:45 +08:00
2 changed files with 6 additions and 1 deletions
Showing only changes of commit e815abcbd7 - Show all commits
@@ -67,7 +67,7 @@ public interface LoadingCompletedEventMapper {
AND a.allocation_status IN ('CONFIRMED','TRANSFERRED','RELEASED')
AND a.picked_package_count > 0
LEFT JOIN fl_inbound_carton_label label
ON label.tenant_id = i.account_id AND label.inbound_id = i.inbound_id
ON label.tenant_id = i.account_id
AND label.inbound_detail_id = i.inbound_detail_id AND label.batch_status = 'ACTIVE'
WHERE i.loading_plan_id = #{planId} AND i.deleted = 0
ORDER BY i.account_id, i.inbound_id, a.allocation_no,
@@ -157,6 +157,11 @@ class LoadingCompletedOutboxServiceTest {
.doesNotContain("'PENDING'")
.doesNotContain("'PICKING'");
}
assertThat(palletsSql)
.contains("label.tenant_id = i.account_id")
.contains("label.inbound_detail_id = i.inbound_detail_id")
.contains("label.batch_status = 'ACTIVE'")
.doesNotContain("label.inbound_id = i.inbound_id");
}
@Test void publishesDropshipPalletSkuAndCartonSnapshots() throws Exception {