1
This commit is contained in:
+2
@@ -57,6 +57,8 @@ class DomesticWarehouseOrderExportContractTest {
|
||||
assertThat(columns).containsKeys("expectedVolumeCbm", "expectedArrivalAt")
|
||||
.doesNotContainKeys("orderId", "tenantId", "customerId", "inboundId", "receivingWarehouseId",
|
||||
"destinationWarehouseId");
|
||||
assertThat(map(columns.get("channelChanged")).get("type")).isEqualTo("string");
|
||||
assertThat(map(columns.get("customsInspection")).get("type")).isEqualTo("string");
|
||||
assertThat(source).contains("platform:order:export", "selectedOrderNos 非空时优先", "no-store");
|
||||
assertThat(paths).containsKey("/api/platform/v1/files/export-tasks/{taskId}/retry");
|
||||
assertThat(map(map(schemas.get("ExportTaskRetryState")).get("properties")))
|
||||
|
||||
@@ -157,6 +157,9 @@ class GenericXlsxExportRunnerTest {
|
||||
Map<String, Object> row = new java.util.LinkedHashMap<>();
|
||||
row.put("inboundCode", "IN-1"); row.put("orderNo", "ORD-1");
|
||||
row.put("expectedVolumeCbm", "1.25"); row.put("expectedArrivalAt", "2026-09-03T12:30:00");
|
||||
row.put("mainStatus", "待审核"); row.put("channelChanged", "否");
|
||||
row.put("feeReviewStatus", "未提交"); row.put("taxMode", "买单报关");
|
||||
row.put("containerMode", "拼箱"); row.put("customsInspection", "否");
|
||||
var batch = new ExportBatchResponse(1, "sha256:domestic-orders", "snapshot-orders",
|
||||
columns, List.of(row), null, false, 1L);
|
||||
when(provider.batch(anyString(), eq(ExportSchemaContracts.DOMESTIC_WAREHOUSE_ORDER_LIST), any(), any()))
|
||||
@@ -173,6 +176,12 @@ class GenericXlsxExportRunnerTest {
|
||||
assertEquals("预计到货时间", sheet.getRow(0).getCell(9).getStringCellValue());
|
||||
assertEquals("预计体积(m³)", sheet.getRow(0).getCell(10).getStringCellValue());
|
||||
assertEquals(1.25d, sheet.getRow(1).getCell(10).getNumericCellValue());
|
||||
assertEquals("待审核", sheet.getRow(1).getCell(2).getStringCellValue());
|
||||
assertEquals("否", sheet.getRow(1).getCell(5).getStringCellValue());
|
||||
assertEquals("未提交", sheet.getRow(1).getCell(17).getStringCellValue());
|
||||
assertEquals("买单报关", sheet.getRow(1).getCell(19).getStringCellValue());
|
||||
assertEquals("拼箱", sheet.getRow(1).getCell(20).getStringCellValue());
|
||||
assertEquals("否", sheet.getRow(1).getCell(21).getStringCellValue());
|
||||
}
|
||||
ArgumentCaptor<ExportBatchRequest> request = ArgumentCaptor.forClass(ExportBatchRequest.class);
|
||||
verify(provider).batch(anyString(), eq(ExportSchemaContracts.DOMESTIC_WAREHOUSE_ORDER_LIST),
|
||||
|
||||
Reference in New Issue
Block a user