private List<OrderListModel> infos;
public List<OrderListModel> getInfos() {
return infos;
}
public void setInfos(List<OrderListModel> infos) {
this.infos = infos;
}
接口文档
"infos": [ //订单详情列表
{
"category": "其他", //单品名称1
"goodsId": -1,
"id": 877449196964196400,
"orderNo": "877449195714293760",
"preferentPrice": 0,
"price": 3, //单价
"reserve": "",
"totalAmount": 0,
"totalPrice": 1.5, //总价1
"weight": 0.494 //总重量1
},
{
"category": "蟹子",
"goodsId": 209,
"id": 877449196997750800,
"orderNo": "877449195714293760",
"preferentPrice": 0,
"price": 9.99,
"reserve": "",
"totalAmount": 0,
"totalPrice": 4.9,
"weight": 0.494
}
],
所有
public class OrderDetail {
//订单号
private String orderNo;
//下单时间
private String placeTime;
//消费者ID
private String userId;
//种类
private int payType;
//得分
private int score;
//总价
private double totalPrice;
private List<OrderListModel> infos;
public List<OrderListModel> getInfos() {
return infos;
}
public void setInfos(List<OrderListModel> infos) {
this.infos = infos;
}
public static class OrderListModel {
//种类
private String category;
//重量
private double weight;
//小计
private double totalPrice;
public String getCategory() {
return category;
}
public void setCategory(String mCategory) {
category = mCategory;
}
public double getWeight() {
return weight;
}
public void setWeight(double mWeight) {
weight = mWeight;
}
public double getTotalPrice() {
return totalPrice;
}
public void setTotalPrice(double mTotalPrice) {
totalPrice = mTotalPrice;
}
}
public String getOrderNo() {
return orderNo;
}
public void setOrderNo(String orderNo) {
this.orderNo = orderNo;
}
public String getPlaceTime() {
return placeTime;
}
public void setPlaceTime(String placeTime) {
this.placeTime = placeTime;
}
public String getUserId() {
return userId;
}
public void setUserId(String userId) {
this.userId = userId;
}
public int getPayType() {
return payType;
}
public void setPayType(int payType) {
this.payType = payType;
}
public int getScore() {
return score;
}
public void setScore(int score) {
this.score = score;
}
public double getTotalPrice() {
return totalPrice;
}
public void setTotalPrice(double totalPrice) {
this.totalPrice = totalPrice;
}
}
接口文档
接口返回值:
{
"appVersion": 0,
"code": "1000",
"info": {
"boothNo": "370203010003",
"cancelTime": "",
"dealPrice": 0.01,
"from": 1,
"infos": [ //订单详情列表
{
"category": "其他", //单品名称1
"goodsId": -1,
"id": 877449196964196400,
"orderNo": "877449195714293760",
"preferentPrice": 0,
"price": 3, //单价
"reserve": "",
"totalAmount": 0,
"totalPrice": 1.5, //总价1
"weight": 0.494 //总重量1
},
{
"category": "蟹子",
"goodsId": 209,
"id": 877449196997750800,
"orderNo": "877449195714293760",
"preferentPrice": 0,
"price": 9.99,
"reserve": "",
"totalAmount": 0,
"totalPrice": 4.9,
"weight": 0.494
}
],
"orderNo": "877449195714293760",
"payTime": "2017-06-21 16:52:45",
"payType": 4,
"placeTime": "2017-06-21 16:52:45",
"preferentPrice": 0,
"realPrice": 0.01,
"regCode": "370200018085418",
"score": 0,
"status": 2,
"thridNo": "",
"thridPayNo": "",
"totalPrice": 0.01,
"userId": 877438524926783500,
"userPhone": ""
},
"list": [],
"message": "操作成功",
"pks": "",
"total": "",
"updateUrl": "",
"userInfo": null
}