This commit is contained in:
2026-08-17 18:00:38 +08:00
parent 7c66097672
commit fd4afd6ae6
7 changed files with 336 additions and 8 deletions
@@ -1034,7 +1034,7 @@ components:
currentHoldReason: {type: string, nullable: true}
totalPackageCount: {type: integer, nullable: true}
locationCodes: {type: string, nullable: true}
actualGrossWeightKg: {type: number, nullable: true}
actualGrossWeightKg: {type: number, nullable: true, multipleOf: 0.001, description: 服务端权威货物总重量 KG;存在已确认称重图片时为全部 CONFIRMED netWeightKg 之和,消费者不得从图片重算}
actualNetWeightKg: {type: number, nullable: true}
actualVolumeCbm: {type: number, nullable: true}
volumeWeightKg: {type: number, nullable: true}
@@ -35,6 +35,9 @@ class InboundMeasurementEvidenceOpenApiContractTest {
Map<String, Object> weightProperties = properties(schemas, "InboundWeightResult");
assertThat(weightProperties).containsKeys(
"id", "fileId", "recognitionStatus", "grossWeightKg", "netWeightKg", "confirmedAt");
assertThat(stringMap(properties(schemas, "UnifiedInboundOrderSummary")
.get("actualGrossWeightKg")).get("description").toString())
.contains("服务端权威货物总重量", "CONFIRMED netWeightKg", "不得从图片重算");
}
private static Map<String, Object> properties(Map<String, Object> schemas, String schemaName) {