1
0
mirror of synced 2025-12-18 05:47:58 +08:00

将 WxMaExpressOrderCargo 类中的 weight、spaceLength、spaceWidth、spaceHeight 字段类型从 Integer 改为 Double 以支持小数值

Co-authored-by: binarywang <1343140+binarywang@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2025-12-10 02:09:13 +00:00
parent ecd3e82216
commit 90c3d53188
2 changed files with 8 additions and 8 deletions

View File

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

View File

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