Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public class WxMaExpressOrderCargo implements Serializable {
* 描述: 单位是千克(kg)
* </pre>
*/
private Integer weight;
private Double weight;

/**
* 包裹长度
Expand All @@ -44,7 +44,7 @@ public class WxMaExpressOrderCargo implements Serializable {
* </pre>
*/
@SerializedName("space_x")
private Integer spaceLength;
private Double spaceLength;

/**
* 包裹宽度
Expand All @@ -54,7 +54,7 @@ public class WxMaExpressOrderCargo implements Serializable {
* </pre>
*/
@SerializedName("space_y")
private Integer spaceWidth;
private Double spaceWidth;

/**
* 包裹高度
Expand All @@ -64,7 +64,7 @@ public class WxMaExpressOrderCargo implements Serializable {
* </pre>
*/
@SerializedName("space_z")
private Integer spaceHeight;
private Double spaceHeight;

/**
* 包裹中商品详情列表
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -116,10 +116,10 @@ public void testAddOrder() throws WxErrorException {
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);


Expand Down