1
0
mirror of synced 2025-12-22 00:48:00 +08:00

🎨 #3802 【小程序】修复 WxMaExpressOrderCargo 几个字段类型以支持小数值

This commit is contained in:
Copilot
2025-12-10 14:27:27 +08:00
committed by GitHub
parent c777dc32a8
commit d26172e393
2 changed files with 8 additions and 8 deletions

View File

@@ -34,7 +34,7 @@ public class WxMaExpressOrderCargo implements Serializable {
* 描述: 单位是千克(kg)
* </pre>
*/
private Integer weight;
private Double weight;
/**
* 包裹长度
@@ -44,7 +44,7 @@ public class WxMaExpressOrderCargo implements Serializable {
* </pre>
*/
@SerializedName("space_x")
private Integer spaceLength;
private Double spaceLength;
/**
* 包裹宽度
@@ -54,7 +54,7 @@ public class WxMaExpressOrderCargo implements Serializable {
* </pre>
*/
@SerializedName("space_y")
private Integer spaceWidth;
private Double spaceWidth;
/**
* 包裹高度
@@ -64,7 +64,7 @@ public class WxMaExpressOrderCargo implements Serializable {
* </pre>
*/
@SerializedName("space_z")
private Integer spaceHeight;
private Double spaceHeight;
/**
* 包裹中商品详情列表

View File

@@ -116,10 +116,10 @@ public class WxMaExpressServiceImplTest {
goodsCount ++;
}
cargo.setCount(detailList.size());
cargo.setWeight(5);
cargo.setSpaceHeight(10);
cargo.setSpaceLength(10);
cargo.setSpaceWidth(10);
cargo.setWeight(1.2);
cargo.setSpaceHeight(10.0);
cargo.setSpaceLength(20.0);
cargo.setSpaceWidth(15.0);
cargo.setDetailList(detailList);