|
|
|
@ -1,4 +1,6 @@
|
|
|
|
|
|
|
|
|
|
import 'package:huixiang/retrofit/data/order_product_vo.dart'; |
|
|
|
|
|
|
|
|
|
class SettleOrderInfo { |
|
|
|
|
int orderNum; |
|
|
|
|
int productNum; |
|
|
|
@ -12,7 +14,7 @@ class SettleOrderInfo {
|
|
|
|
|
List<CouponListBean> couponList; |
|
|
|
|
String threshold; |
|
|
|
|
String freePostAge; |
|
|
|
|
List<OrderProductListBean> orderProductList; |
|
|
|
|
List<OrderProductVOList> orderProductList; |
|
|
|
|
|
|
|
|
|
static SettleOrderInfo fromJson(Map<String, dynamic> map) { |
|
|
|
|
if (map == null) return null; |
|
|
|
@ -34,7 +36,7 @@ class SettleOrderInfo {
|
|
|
|
|
settleOrderInfoBean.threshold = map['threshold']; |
|
|
|
|
settleOrderInfoBean.freePostAge = map['freePostAge']; |
|
|
|
|
settleOrderInfoBean.orderProductList = List()..addAll( |
|
|
|
|
(map['orderProductList'] as List ?? []).map((o) => OrderProductListBean.fromJson(o)) |
|
|
|
|
(map['orderProductList'] as List ?? []).map((o) => OrderProductVOList.fromJson(o)) |
|
|
|
|
); |
|
|
|
|
return settleOrderInfoBean; |
|
|
|
|
} |
|
|
|
@ -84,98 +86,98 @@ class SettleOrderInfo {
|
|
|
|
|
/// status : null |
|
|
|
|
/// batch : null |
|
|
|
|
|
|
|
|
|
class OrderProductListBean { |
|
|
|
|
dynamic id; |
|
|
|
|
dynamic createTime; |
|
|
|
|
dynamic createUser; |
|
|
|
|
dynamic updateTime; |
|
|
|
|
dynamic updateUser; |
|
|
|
|
dynamic tenantCode; |
|
|
|
|
dynamic storeId; |
|
|
|
|
dynamic orderId; |
|
|
|
|
dynamic actInfo; |
|
|
|
|
String productId; |
|
|
|
|
String productName; |
|
|
|
|
String skuId; |
|
|
|
|
String skuNameStr; |
|
|
|
|
dynamic skuImg; |
|
|
|
|
int buyNum; |
|
|
|
|
dynamic refundNum; |
|
|
|
|
dynamic type; |
|
|
|
|
dynamic reason; |
|
|
|
|
double weight; |
|
|
|
|
String applyPrice; |
|
|
|
|
String sellPrice; |
|
|
|
|
dynamic postPay; |
|
|
|
|
dynamic isDelete; |
|
|
|
|
dynamic discountAmount; |
|
|
|
|
dynamic discountPercent; |
|
|
|
|
dynamic status; |
|
|
|
|
dynamic batch; |
|
|
|
|
|
|
|
|
|
static OrderProductListBean fromJson(Map<String, dynamic> map) { |
|
|
|
|
if (map == null) return null; |
|
|
|
|
OrderProductListBean orderProductListBean = OrderProductListBean(); |
|
|
|
|
orderProductListBean.id = map['id']; |
|
|
|
|
orderProductListBean.createTime = map['createTime']; |
|
|
|
|
orderProductListBean.createUser = map['createUser']; |
|
|
|
|
orderProductListBean.updateTime = map['updateTime']; |
|
|
|
|
orderProductListBean.updateUser = map['updateUser']; |
|
|
|
|
orderProductListBean.tenantCode = map['tenantCode']; |
|
|
|
|
orderProductListBean.storeId = map['storeId']; |
|
|
|
|
orderProductListBean.orderId = map['orderId']; |
|
|
|
|
orderProductListBean.actInfo = map['actInfo']; |
|
|
|
|
orderProductListBean.productId = map['productId']; |
|
|
|
|
orderProductListBean.productName = map['productName']; |
|
|
|
|
orderProductListBean.skuId = map['skuId']; |
|
|
|
|
orderProductListBean.skuNameStr = map['skuNameStr']; |
|
|
|
|
orderProductListBean.skuImg = map['skuImg']; |
|
|
|
|
orderProductListBean.buyNum = map['buyNum']; |
|
|
|
|
orderProductListBean.refundNum = map['refundNum']; |
|
|
|
|
orderProductListBean.type = map['type']; |
|
|
|
|
orderProductListBean.reason = map['reason']; |
|
|
|
|
orderProductListBean.weight = map['weight']; |
|
|
|
|
orderProductListBean.applyPrice = map['applyPrice']; |
|
|
|
|
orderProductListBean.sellPrice = map['sellPrice']; |
|
|
|
|
orderProductListBean.postPay = map['postPay']; |
|
|
|
|
orderProductListBean.isDelete = map['isDelete']; |
|
|
|
|
orderProductListBean.discountAmount = map['discountAmount']; |
|
|
|
|
orderProductListBean.discountPercent = map['discountPercent']; |
|
|
|
|
orderProductListBean.status = map['status']; |
|
|
|
|
orderProductListBean.batch = map['batch']; |
|
|
|
|
return orderProductListBean; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
Map toJson() => { |
|
|
|
|
"id": id, |
|
|
|
|
"createTime": createTime, |
|
|
|
|
"createUser": createUser, |
|
|
|
|
"updateTime": updateTime, |
|
|
|
|
"updateUser": updateUser, |
|
|
|
|
"tenantCode": tenantCode, |
|
|
|
|
"storeId": storeId, |
|
|
|
|
"orderId": orderId, |
|
|
|
|
"actInfo": actInfo, |
|
|
|
|
"productId": productId, |
|
|
|
|
"productName": productName, |
|
|
|
|
"skuId": skuId, |
|
|
|
|
"skuNameStr": skuNameStr, |
|
|
|
|
"skuImg": skuImg, |
|
|
|
|
"buyNum": buyNum, |
|
|
|
|
"refundNum": refundNum, |
|
|
|
|
"type": type, |
|
|
|
|
"reason": reason, |
|
|
|
|
"weight": weight, |
|
|
|
|
"applyPrice": applyPrice, |
|
|
|
|
"sellPrice": sellPrice, |
|
|
|
|
"postPay": postPay, |
|
|
|
|
"isDelete": isDelete, |
|
|
|
|
"discountAmount": discountAmount, |
|
|
|
|
"discountPercent": discountPercent, |
|
|
|
|
"status": status, |
|
|
|
|
"batch": batch, |
|
|
|
|
}; |
|
|
|
|
} |
|
|
|
|
// class OrderProductListBean { |
|
|
|
|
// dynamic id; |
|
|
|
|
// dynamic createTime; |
|
|
|
|
// dynamic createUser; |
|
|
|
|
// dynamic updateTime; |
|
|
|
|
// dynamic updateUser; |
|
|
|
|
// dynamic tenantCode; |
|
|
|
|
// dynamic storeId; |
|
|
|
|
// dynamic orderId; |
|
|
|
|
// dynamic actInfo; |
|
|
|
|
// String productId; |
|
|
|
|
// String productName; |
|
|
|
|
// String skuId; |
|
|
|
|
// String skuNameStr; |
|
|
|
|
// dynamic skuImg; |
|
|
|
|
// int buyNum; |
|
|
|
|
// dynamic refundNum; |
|
|
|
|
// dynamic type; |
|
|
|
|
// dynamic reason; |
|
|
|
|
// double weight; |
|
|
|
|
// String applyPrice; |
|
|
|
|
// String sellPrice; |
|
|
|
|
// dynamic postPay; |
|
|
|
|
// dynamic isDelete; |
|
|
|
|
// dynamic discountAmount; |
|
|
|
|
// dynamic discountPercent; |
|
|
|
|
// dynamic status; |
|
|
|
|
// dynamic batch; |
|
|
|
|
// |
|
|
|
|
// static OrderProductListBean fromJson(Map<String, dynamic> map) { |
|
|
|
|
// if (map == null) return null; |
|
|
|
|
// OrderProductListBean orderProductListBean = OrderProductListBean(); |
|
|
|
|
// orderProductListBean.id = map['id']; |
|
|
|
|
// orderProductListBean.createTime = map['createTime']; |
|
|
|
|
// orderProductListBean.createUser = map['createUser']; |
|
|
|
|
// orderProductListBean.updateTime = map['updateTime']; |
|
|
|
|
// orderProductListBean.updateUser = map['updateUser']; |
|
|
|
|
// orderProductListBean.tenantCode = map['tenantCode']; |
|
|
|
|
// orderProductListBean.storeId = map['storeId']; |
|
|
|
|
// orderProductListBean.orderId = map['orderId']; |
|
|
|
|
// orderProductListBean.actInfo = map['actInfo']; |
|
|
|
|
// orderProductListBean.productId = map['productId']; |
|
|
|
|
// orderProductListBean.productName = map['productName']; |
|
|
|
|
// orderProductListBean.skuId = map['skuId']; |
|
|
|
|
// orderProductListBean.skuNameStr = map['skuNameStr']; |
|
|
|
|
// orderProductListBean.skuImg = map['skuImg']; |
|
|
|
|
// orderProductListBean.buyNum = map['buyNum']; |
|
|
|
|
// orderProductListBean.refundNum = map['refundNum']; |
|
|
|
|
// orderProductListBean.type = map['type']; |
|
|
|
|
// orderProductListBean.reason = map['reason']; |
|
|
|
|
// orderProductListBean.weight = map['weight']; |
|
|
|
|
// orderProductListBean.applyPrice = map['applyPrice']; |
|
|
|
|
// orderProductListBean.sellPrice = map['sellPrice']; |
|
|
|
|
// orderProductListBean.postPay = map['postPay']; |
|
|
|
|
// orderProductListBean.isDelete = map['isDelete']; |
|
|
|
|
// orderProductListBean.discountAmount = map['discountAmount']; |
|
|
|
|
// orderProductListBean.discountPercent = map['discountPercent']; |
|
|
|
|
// orderProductListBean.status = map['status']; |
|
|
|
|
// orderProductListBean.batch = map['batch']; |
|
|
|
|
// return orderProductListBean; |
|
|
|
|
// } |
|
|
|
|
// |
|
|
|
|
// Map toJson() => { |
|
|
|
|
// "id": id, |
|
|
|
|
// "createTime": createTime, |
|
|
|
|
// "createUser": createUser, |
|
|
|
|
// "updateTime": updateTime, |
|
|
|
|
// "updateUser": updateUser, |
|
|
|
|
// "tenantCode": tenantCode, |
|
|
|
|
// "storeId": storeId, |
|
|
|
|
// "orderId": orderId, |
|
|
|
|
// "actInfo": actInfo, |
|
|
|
|
// "productId": productId, |
|
|
|
|
// "productName": productName, |
|
|
|
|
// "skuId": skuId, |
|
|
|
|
// "skuNameStr": skuNameStr, |
|
|
|
|
// "skuImg": skuImg, |
|
|
|
|
// "buyNum": buyNum, |
|
|
|
|
// "refundNum": refundNum, |
|
|
|
|
// "type": type, |
|
|
|
|
// "reason": reason, |
|
|
|
|
// "weight": weight, |
|
|
|
|
// "applyPrice": applyPrice, |
|
|
|
|
// "sellPrice": sellPrice, |
|
|
|
|
// "postPay": postPay, |
|
|
|
|
// "isDelete": isDelete, |
|
|
|
|
// "discountAmount": discountAmount, |
|
|
|
|
// "discountPercent": discountPercent, |
|
|
|
|
// "status": status, |
|
|
|
|
// "batch": batch, |
|
|
|
|
// }; |
|
|
|
|
// } |
|
|
|
|
|
|
|
|
|
/// id : "1448907890034212864" |
|
|
|
|
/// storeId : "1333246101343436800" |
|
|
|
|