You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1393 lines
38 KiB

4 years ago
4 years ago
/// id : "1408358257373741056"
/// createTime : "2021-06-25 17:35:49"
/// createUser : "1404743858104827904"
/// updateTime : "2021-06-25 17:35:49"
/// updateUser : "1404743858104827904"
/// tenantCode : "1177"
/// storeId : "1344490596986781696"
/// storeName : "测试"
/// tableId : "0"
/// mid : "1404743858104827904"
/// parentId : "1408358257004642304"
/// parentCode : "202106251735490003"
/// orderCode : "202106251735490004"
/// dayFlowCode : "003"
/// orderStatus : 2
/// sendStatus : 0
/// payStatus : 1
/// memberAccount : "占永辉_o3DjK5OuaeRBR-yo_GEh6gs5J9xI"
/// logisticsId : "0"
/// shipperCode : ""
4 years ago
/// logisticsName : ""
/// logisticsNum : ""
4 years ago
/// logisticsCase : null
/// refundStatus : -1
/// addressExt : {"addressId":null,"country":null,"countryId":null,"province":"湖北省","provinceId":null,"city":"武汉市","cityId":null,"district":"武昌区","districtId":null,"address":"楚河汉界","recName":null,"recMobile":null,"longitude":"114.344225","latitude":"30.554177"}
/// postFee : "0.00"
/// orderSum : "20.00"
/// paySum : "17.80"
/// paySumSub : "0.00"
/// accountPay : "0.00"
/// couponSubPrice : "2.20"
/// customPrice : "0.00"
/// removeDecimal : "0.00"
/// isSubscribe : false
/// subcribeTime : null
/// sendTime : null
/// confirmTime : null
/// returnMoneyTime : null
4 years ago
/// notes : ""
4 years ago
/// prepayId : null
/// payTime : "2021-06-25 17:35:49"
/// payChannel : 3
4 years ago
/// payNum : ""
4 years ago
/// promotionId : "1405723544309989376"
/// couponId : "1407162997398306816"
/// isDelete : 0
/// isTakeOut : 0
/// batch : 1
/// orderDiscountPrice : "0.00"
/// dishesDiscountPrice : "0.00"
/// orderPercentPrice : "0.00"
/// finalPayPrice : "20.00"
/// activityNoPrice : "0.00"
/// activityDiscountPrice : "0.00"
/// totalDiscountPrice : "0.00"
/// orderSource : 1
/// storeVO : {"id":"1344490596986781696","storeName":"小小店","nickName":"","businessService":"WIFI,免费停车","businessType":"测试","logo":"","openStartTime":"08:25:43","openEndTime":"23:25:43","shipAddress":"汉街总部国际","remark":null,"mobile":"13554204268","refundAddress":null,"refundTel":null,"refundContact":null,"isAutoSendRefundAddress":1,"soldNum":null,"storeTemplateConfig":null,"storeTable":null,"threshold":null,"freePostAge":null,"logisticsThreshold":null,"logisticsFreePostAge":null,"longitude":"114.3442250000","latitude":"30.5541770000","deliveryDistance":null,"couponVO":null,"posType":{"desc":"零售商店","code":"RETAILSTORE"},"banners":null,"tips":null,"storeBrandImg":null,"defaultPostAge":null}
/// orderDetail : {"orderProductList":[{"id":"1408358257390518272","platterList":null,"tenantCode":"1177","storeId":"1344490596986781696","orderId":"1408358257373741056","productId":"1404742074535772160","productName":"商品1","skuId":"1404744485652398080","skuNameStr":"中","skuImg":"","buyNum":2,"refundNum":0,"weight":0,"applyPrice":"0.00","sellPrice":"10.00","postPay":"0.00","isDelete":0,"discountAmount":"2.20","discountPercent":100}],"discountName":null,"discountMoney":null,"discountNumber":null,"activityName":null,"couponDTO":null,"orderSumPrice":"20.00","paySumPrice":"17.80","activityNoPrice":"0.00","activityPrice":"0.00","dishesList":[],"customPrice":"0.00","nextPerson":"占永辉","isTakeOut":0,"memberRec":null,"isSubscribe":null,"subcribeTime":null,"postFee":"0.00","shipperCode":"","logisticsName":"","logisticsNum":"","orderNum":0,"productNum":0,"mins":1,"predictTime":null}
/// productList : [{"id":"1408358257390518272","createTime":"2021-06-25 17:35:49","createUser":"1404743858104827904","updateTime":"2021-06-25 17:35:49","updateUser":"1404743858104827904","tenantCode":null,"storeId":"1344490596986781696","orderId":"1408358257373741056","productId":"1404742074535772160","productName":"商品1","skuId":"1404744485652398080","skuNameStr":"中","skuImg":"","buyNum":2,"refundNum":0,"weight":0,"applyPrice":"0.00","sellPrice":"10.00","postPay":"0.00","isDelete":0,"discountAmount":"2.20","discountPercent":11,"status":true,"batch":1}]
4 years ago
class OrderInfo {
4 years ago
String _id;
4 years ago
String _createTime;
4 years ago
String _createUser;
String _updateTime;
String _updateUser;
String _tenantCode;
String _storeId;
String _storeName;
String _tableId;
String _mid;
String _parentId;
String _parentCode;
String _orderCode;
4 years ago
String _dayFlowCode;
4 years ago
int _orderStatus;
int _sendStatus;
int _payStatus;
String _memberAccount;
String _logisticsId;
String _shipperCode;
4 years ago
String _logisticsName;
String _logisticsNum;
4 years ago
dynamic _logisticsCase;
int _refundStatus;
AddressExt _addressExt;
String _postFee;
String _orderSum;
String _paySum;
String _paySumSub;
String _accountPay;
String _couponSubPrice;
String _customPrice;
String _removeDecimal;
bool _isSubscribe;
dynamic _subcribeTime;
dynamic _sendTime;
dynamic _confirmTime;
dynamic _returnMoneyTime;
4 years ago
String _notes;
4 years ago
dynamic _prepayId;
String _payTime;
4 years ago
int _payChannel;
String _payNum;
4 years ago
String _promotionId;
String _couponId;
int _isDelete;
int _isTakeOut;
int _batch;
String _orderDiscountPrice;
String _dishesDiscountPrice;
String _orderPercentPrice;
String _finalPayPrice;
String _activityNoPrice;
String _activityDiscountPrice;
String _totalDiscountPrice;
int _orderSource;
4 years ago
StoreVO _storeVO;
4 years ago
OrderDetail _orderDetail;
List<ProductList> _productList;
String get id => _id;
4 years ago
String get createTime => _createTime;
4 years ago
String get createUser => _createUser;
String get updateTime => _updateTime;
String get updateUser => _updateUser;
String get tenantCode => _tenantCode;
String get storeId => _storeId;
String get storeName => _storeName;
String get tableId => _tableId;
String get mid => _mid;
String get parentId => _parentId;
String get parentCode => _parentCode;
String get orderCode => _orderCode;
4 years ago
String get dayFlowCode => _dayFlowCode;
4 years ago
int get orderStatus => _orderStatus;
int get sendStatus => _sendStatus;
int get payStatus => _payStatus;
String get memberAccount => _memberAccount;
String get logisticsId => _logisticsId;
String get shipperCode => _shipperCode;
4 years ago
String get logisticsName => _logisticsName;
4 years ago
4 years ago
String get logisticsNum => _logisticsNum;
4 years ago
dynamic get logisticsCase => _logisticsCase;
int get refundStatus => _refundStatus;
AddressExt get addressExt => _addressExt;
String get postFee => _postFee;
String get orderSum => _orderSum;
String get paySum => _paySum;
String get paySumSub => _paySumSub;
String get accountPay => _accountPay;
String get couponSubPrice => _couponSubPrice;
String get customPrice => _customPrice;
String get removeDecimal => _removeDecimal;
bool get isSubscribe => _isSubscribe;
dynamic get subcribeTime => _subcribeTime;
dynamic get sendTime => _sendTime;
dynamic get confirmTime => _confirmTime;
dynamic get returnMoneyTime => _returnMoneyTime;
4 years ago
String get notes => _notes;
4 years ago
dynamic get prepayId => _prepayId;
String get payTime => _payTime;
4 years ago
int get payChannel => _payChannel;
4 years ago
4 years ago
String get payNum => _payNum;
4 years ago
String get promotionId => _promotionId;
String get couponId => _couponId;
int get isDelete => _isDelete;
int get isTakeOut => _isTakeOut;
int get batch => _batch;
String get orderDiscountPrice => _orderDiscountPrice;
String get dishesDiscountPrice => _dishesDiscountPrice;
String get orderPercentPrice => _orderPercentPrice;
String get finalPayPrice => _finalPayPrice;
String get activityNoPrice => _activityNoPrice;
String get activityDiscountPrice => _activityDiscountPrice;
String get totalDiscountPrice => _totalDiscountPrice;
int get orderSource => _orderSource;
4 years ago
StoreVO get storeVO => _storeVO;
4 years ago
OrderDetail get orderDetail => _orderDetail;
List<ProductList> get productList => _productList;
OrderInfo(
{String id,
String createTime,
String createUser,
String updateTime,
String updateUser,
String tenantCode,
String storeId,
String storeName,
String tableId,
String mid,
String parentId,
String parentCode,
String orderCode,
String dayFlowCode,
int orderStatus,
int sendStatus,
int payStatus,
String memberAccount,
String logisticsId,
String shipperCode,
String logisticsName,
String logisticsNum,
dynamic logisticsCase,
int refundStatus,
AddressExt addressExt,
String postFee,
String orderSum,
String paySum,
String paySumSub,
String accountPay,
String couponSubPrice,
String customPrice,
String removeDecimal,
bool isSubscribe,
dynamic subcribeTime,
dynamic sendTime,
dynamic confirmTime,
dynamic returnMoneyTime,
String notes,
dynamic prepayId,
String payTime,
int payChannel,
String payNum,
String promotionId,
String couponId,
int isDelete,
int isTakeOut,
int batch,
String orderDiscountPrice,
String dishesDiscountPrice,
String orderPercentPrice,
String finalPayPrice,
String activityNoPrice,
String activityDiscountPrice,
String totalDiscountPrice,
int orderSource,
StoreVO storeVO,
OrderDetail orderDetail,
List<ProductList> productList}) {
_id = id;
4 years ago
_createTime = createTime;
_createUser = createUser;
4 years ago
_updateTime = updateTime;
_updateUser = updateUser;
_tenantCode = tenantCode;
_storeId = storeId;
_storeName = storeName;
_tableId = tableId;
_mid = mid;
_parentId = parentId;
_parentCode = parentCode;
_orderCode = orderCode;
4 years ago
_dayFlowCode = dayFlowCode;
4 years ago
_orderStatus = orderStatus;
_sendStatus = sendStatus;
_payStatus = payStatus;
_memberAccount = memberAccount;
4 years ago
_logisticsId = logisticsId;
4 years ago
_shipperCode = shipperCode;
4 years ago
_logisticsName = logisticsName;
_logisticsNum = logisticsNum;
4 years ago
_logisticsCase = logisticsCase;
_refundStatus = refundStatus;
_addressExt = addressExt;
_postFee = postFee;
4 years ago
_orderSum = orderSum;
_paySum = paySum;
_paySumSub = paySumSub;
4 years ago
_accountPay = accountPay;
_couponSubPrice = couponSubPrice;
_customPrice = customPrice;
4 years ago
_removeDecimal = removeDecimal;
4 years ago
_isSubscribe = isSubscribe;
4 years ago
_subcribeTime = subcribeTime;
4 years ago
_sendTime = sendTime;
_confirmTime = confirmTime;
_returnMoneyTime = returnMoneyTime;
_notes = notes;
_prepayId = prepayId;
_payTime = payTime;
_payChannel = payChannel;
_payNum = payNum;
_promotionId = promotionId;
_couponId = couponId;
_isDelete = isDelete;
_isTakeOut = isTakeOut;
_batch = batch;
_orderDiscountPrice = orderDiscountPrice;
_dishesDiscountPrice = dishesDiscountPrice;
_orderPercentPrice = orderPercentPrice;
_finalPayPrice = finalPayPrice;
_activityNoPrice = activityNoPrice;
_activityDiscountPrice = activityDiscountPrice;
4 years ago
_totalDiscountPrice = totalDiscountPrice;
4 years ago
_orderSource = orderSource;
_storeVO = storeVO;
_orderDetail = orderDetail;
_productList = productList;
}
4 years ago
OrderInfo.fromJson(dynamic json) {
4 years ago
_id = json["id"];
4 years ago
_createTime = json["createTime"];
_createUser = json["createUser"];
4 years ago
_updateTime = json["updateTime"];
_updateUser = json["updateUser"];
_tenantCode = json["tenantCode"];
_storeId = json["storeId"];
_storeName = json["storeName"];
_tableId = json["tableId"];
_mid = json["mid"];
_parentId = json["parentId"];
_parentCode = json["parentCode"];
_orderCode = json["orderCode"];
4 years ago
_dayFlowCode = json["dayFlowCode"];
4 years ago
_orderStatus = json["orderStatus"];
_sendStatus = json["sendStatus"];
_payStatus = json["payStatus"];
_memberAccount = json["memberAccount"];
4 years ago
_logisticsId = json["logisticsId"];
4 years ago
_shipperCode = json["shipperCode"];
4 years ago
_logisticsName = json["logisticsName"];
_logisticsNum = json["logisticsNum"];
4 years ago
_logisticsCase = json["logisticsCase"];
_refundStatus = json["refundStatus"];
_addressExt = json["addressExt"] != null
? AddressExt.fromJson(json["addressExt"])
: null;
_postFee = json["postFee"];
4 years ago
_orderSum = json["orderSum"];
_paySum = json["paySum"];
_paySumSub = json["paySumSub"];
4 years ago
_accountPay = json["accountPay"];
_couponSubPrice = json["couponSubPrice"];
_customPrice = json["customPrice"];
_removeDecimal = json["removeDecimal"];
_isSubscribe = json["isSubscribe"];
_subcribeTime = json["subcribeTime"];
_sendTime = json["sendTime"];
_confirmTime = json["confirmTime"];
_returnMoneyTime = json["returnMoneyTime"];
_notes = json["notes"];
4 years ago
_prepayId = json["prepayId"];
4 years ago
_payTime = json["payTime"];
_payChannel = json["payChannel"];
_payNum = json["payNum"];
_promotionId = json["promotionId"];
_couponId = json["couponId"];
_isDelete = json["isDelete"];
_isTakeOut = json["isTakeOut"];
_batch = json["batch"];
_orderDiscountPrice = json["orderDiscountPrice"];
_dishesDiscountPrice = json["dishesDiscountPrice"];
_orderPercentPrice = json["orderPercentPrice"];
_finalPayPrice = json["finalPayPrice"];
_activityNoPrice = json["activityNoPrice"];
_activityDiscountPrice = json["activityDiscountPrice"];
_totalDiscountPrice = json["totalDiscountPrice"];
_orderSource = json["orderSource"];
_storeVO =
json["storeVO"] != null ? StoreVO.fromJson(json["storeVO"]) : null;
_orderDetail = json["orderDetail"] != null
? OrderDetail.fromJson(json["orderDetail"])
: null;
if (json["productList"] != null) {
_productList = [];
json["productList"].forEach((v) {
_productList.add(ProductList.fromJson(v));
});
}
4 years ago
}
Map<String, dynamic> toJson() {
var map = <String, dynamic>{};
4 years ago
map["id"] = _id;
4 years ago
map["createTime"] = _createTime;
map["createUser"] = _createUser;
4 years ago
map["updateTime"] = _updateTime;
map["updateUser"] = _updateUser;
map["tenantCode"] = _tenantCode;
map["storeId"] = _storeId;
map["storeName"] = _storeName;
map["tableId"] = _tableId;
map["mid"] = _mid;
map["parentId"] = _parentId;
map["parentCode"] = _parentCode;
map["orderCode"] = _orderCode;
4 years ago
map["dayFlowCode"] = _dayFlowCode;
4 years ago
map["orderStatus"] = _orderStatus;
map["sendStatus"] = _sendStatus;
map["payStatus"] = _payStatus;
map["memberAccount"] = _memberAccount;
4 years ago
map["logisticsId"] = _logisticsId;
4 years ago
map["shipperCode"] = _shipperCode;
4 years ago
map["logisticsName"] = _logisticsName;
map["logisticsNum"] = _logisticsNum;
4 years ago
map["logisticsCase"] = _logisticsCase;
map["refundStatus"] = _refundStatus;
if (_addressExt != null) {
map["addressExt"] = _addressExt.toJson();
}
map["postFee"] = _postFee;
4 years ago
map["orderSum"] = _orderSum;
map["paySum"] = _paySum;
map["paySumSub"] = _paySumSub;
4 years ago
map["accountPay"] = _accountPay;
map["couponSubPrice"] = _couponSubPrice;
map["customPrice"] = _customPrice;
4 years ago
map["removeDecimal"] = _removeDecimal;
4 years ago
map["isSubscribe"] = _isSubscribe;
map["subcribeTime"] = _subcribeTime;
4 years ago
map["sendTime"] = _sendTime;
4 years ago
map["confirmTime"] = _confirmTime;
map["returnMoneyTime"] = _returnMoneyTime;
map["notes"] = _notes;
map["prepayId"] = _prepayId;
map["payTime"] = _payTime;
map["payChannel"] = _payChannel;
map["payNum"] = _payNum;
map["promotionId"] = _promotionId;
map["couponId"] = _couponId;
map["isDelete"] = _isDelete;
map["isTakeOut"] = _isTakeOut;
map["batch"] = _batch;
map["orderDiscountPrice"] = _orderDiscountPrice;
map["dishesDiscountPrice"] = _dishesDiscountPrice;
map["orderPercentPrice"] = _orderPercentPrice;
map["finalPayPrice"] = _finalPayPrice;
map["activityNoPrice"] = _activityNoPrice;
map["activityDiscountPrice"] = _activityDiscountPrice;
map["totalDiscountPrice"] = _totalDiscountPrice;
map["orderSource"] = _orderSource;
4 years ago
if (_storeVO != null) {
map["storeVO"] = _storeVO.toJson();
}
4 years ago
if (_orderDetail != null) {
map["orderDetail"] = _orderDetail.toJson();
}
if (_productList != null) {
map["productList"] = _productList.map((v) => v.toJson()).toList();
}
4 years ago
return map;
}
}
4 years ago
/// id : "1408358257390518272"
/// createTime : "2021-06-25 17:35:49"
/// createUser : "1404743858104827904"
/// updateTime : "2021-06-25 17:35:49"
/// updateUser : "1404743858104827904"
/// tenantCode : null
/// storeId : "1344490596986781696"
/// orderId : "1408358257373741056"
/// productId : "1404742074535772160"
/// productName : "商品1"
/// skuId : "1404744485652398080"
/// skuNameStr : "中"
/// skuImg : ""
/// buyNum : 2
/// refundNum : 0
/// weight : 0
/// applyPrice : "0.00"
/// sellPrice : "10.00"
/// postPay : "0.00"
/// isDelete : 0
/// discountAmount : "2.20"
/// discountPercent : 11
/// status : true
/// batch : 1
4 years ago
4 years ago
class ProductList {
String _id;
String _createTime;
String _createUser;
String _updateTime;
String _updateUser;
dynamic _tenantCode;
String _storeId;
String _orderId;
String _productId;
String _productName;
String _skuId;
String _skuNameStr;
String _skuImg;
int _buyNum;
int _refundNum;
double _weight;
String _applyPrice;
String _sellPrice;
String _postPay;
int _isDelete;
String _discountAmount;
int _discountPercent;
bool _status;
int _batch;
4 years ago
4 years ago
String get id => _id;
4 years ago
String get createTime => _createTime;
4 years ago
String get createUser => _createUser;
4 years ago
String get updateTime => _updateTime;
4 years ago
String get updateUser => _updateUser;
4 years ago
4 years ago
dynamic get tenantCode => _tenantCode;
4 years ago
4 years ago
String get storeId => _storeId;
4 years ago
4 years ago
String get orderId => _orderId;
4 years ago
String get productId => _productId;
4 years ago
4 years ago
String get productName => _productName;
4 years ago
4 years ago
String get skuId => _skuId;
4 years ago
String get skuNameStr => _skuNameStr;
4 years ago
4 years ago
String get skuImg => _skuImg;
4 years ago
4 years ago
int get buyNum => _buyNum;
4 years ago
4 years ago
int get refundNum => _refundNum;
4 years ago
4 years ago
double get weight => _weight;
4 years ago
4 years ago
String get applyPrice => _applyPrice;
4 years ago
4 years ago
String get sellPrice => _sellPrice;
4 years ago
4 years ago
String get postPay => _postPay;
4 years ago
int get isDelete => _isDelete;
4 years ago
String get discountAmount => _discountAmount;
int get discountPercent => _discountPercent;
bool get status => _status;
4 years ago
int get batch => _batch;
ProductList(
{String id,
String createTime,
String createUser,
String updateTime,
String updateUser,
dynamic tenantCode,
String storeId,
String orderId,
String productId,
String productName,
String skuId,
String skuNameStr,
String skuImg,
int buyNum,
int refundNum,
double weight,
String applyPrice,
String sellPrice,
String postPay,
int isDelete,
String discountAmount,
int discountPercent,
bool status,
int batch}) {
_id = id;
_createTime = createTime;
_createUser = createUser;
4 years ago
_updateTime = updateTime;
_updateUser = updateUser;
_tenantCode = tenantCode;
_storeId = storeId;
4 years ago
_orderId = orderId;
_productId = productId;
_productName = productName;
_skuId = skuId;
_skuNameStr = skuNameStr;
4 years ago
_skuImg = skuImg;
_buyNum = buyNum;
_refundNum = refundNum;
4 years ago
_weight = weight;
4 years ago
_applyPrice = applyPrice;
_sellPrice = sellPrice;
_postPay = postPay;
_isDelete = isDelete;
_discountAmount = discountAmount;
_discountPercent = discountPercent;
_status = status;
_batch = batch;
}
4 years ago
ProductList.fromJson(dynamic json) {
4 years ago
_id = json["id"];
_createTime = json["createTime"];
_createUser = json["createUser"];
4 years ago
_updateTime = json["updateTime"];
_updateUser = json["updateUser"];
_tenantCode = json["tenantCode"];
_storeId = json["storeId"];
4 years ago
_orderId = json["orderId"];
_productId = json["productId"];
_productName = json["productName"];
_skuId = json["skuId"];
_skuNameStr = json["skuNameStr"];
4 years ago
_skuImg = json["skuImg"];
_buyNum = json["buyNum"];
_refundNum = json["refundNum"];
4 years ago
_weight = json["weight"];
4 years ago
_applyPrice = json["applyPrice"];
_sellPrice = json["sellPrice"];
_postPay = json["postPay"];
_isDelete = json["isDelete"];
_discountAmount = json["discountAmount"];
_discountPercent = json["discountPercent"];
_status = json["status"];
_batch = json["batch"];
4 years ago
}
Map<String, dynamic> toJson() {
var map = <String, dynamic>{};
4 years ago
map["id"] = _id;
map["createTime"] = _createTime;
map["createUser"] = _createUser;
4 years ago
map["updateTime"] = _updateTime;
map["updateUser"] = _updateUser;
map["tenantCode"] = _tenantCode;
map["storeId"] = _storeId;
4 years ago
map["orderId"] = _orderId;
map["productId"] = _productId;
map["productName"] = _productName;
map["skuId"] = _skuId;
map["skuNameStr"] = _skuNameStr;
4 years ago
map["skuImg"] = _skuImg;
map["buyNum"] = _buyNum;
map["refundNum"] = _refundNum;
4 years ago
map["weight"] = _weight;
4 years ago
map["applyPrice"] = _applyPrice;
map["sellPrice"] = _sellPrice;
map["postPay"] = _postPay;
map["isDelete"] = _isDelete;
map["discountAmount"] = _discountAmount;
map["discountPercent"] = _discountPercent;
map["status"] = _status;
map["batch"] = _batch;
4 years ago
return map;
}
}
4 years ago
4 years ago
/// orderProductList : [{"id":"1408358257390518272","platterList":null,"tenantCode":"1177","storeId":"1344490596986781696","orderId":"1408358257373741056","productId":"1404742074535772160","productName":"商品1","skuId":"1404744485652398080","skuNameStr":"中","skuImg":"","buyNum":2,"refundNum":0,"weight":0,"applyPrice":"0.00","sellPrice":"10.00","postPay":"0.00","isDelete":0,"discountAmount":"2.20","discountPercent":100}]
/// discountName : null
/// discountMoney : null
/// discountNumber : null
/// activityName : null
/// couponDTO : null
/// orderSumPrice : "20.00"
/// paySumPrice : "17.80"
/// activityNoPrice : "0.00"
/// activityPrice : "0.00"
/// dishesList : []
/// customPrice : "0.00"
/// nextPerson : "占永辉"
/// isTakeOut : 0
/// memberRec : null
/// isSubscribe : null
/// subcribeTime : null
/// postFee : "0.00"
/// shipperCode : ""
/// logisticsName : ""
/// logisticsNum : ""
/// orderNum : 0
/// productNum : 0
4 years ago
/// mins : 1
/// predictTime : null
class OrderDetail {
List<ProductList> _orderProductList;
dynamic _discountName;
dynamic _discountMoney;
dynamic _discountNumber;
dynamic _activityName;
4 years ago
CouponDTO _couponDTO;
4 years ago
String _orderSumPrice;
String _paySumPrice;
String _activityNoPrice;
String _activityPrice;
List<dynamic> _dishesList;
String _customPrice;
String _nextPerson;
int _isTakeOut;
dynamic _memberRec;
dynamic _isSubscribe;
dynamic _subcribeTime;
String _postFee;
String _shipperCode;
String _logisticsName;
String _logisticsNum;
int _orderNum;
int _productNum;
4 years ago
int _mins;
dynamic _predictTime;
List<ProductList> get orderProductList => _orderProductList;
dynamic get discountName => _discountName;
dynamic get discountMoney => _discountMoney;
dynamic get discountNumber => _discountNumber;
dynamic get activityName => _activityName;
4 years ago
CouponDTO get couponDTO => _couponDTO;
4 years ago
String get orderSumPrice => _orderSumPrice;
String get paySumPrice => _paySumPrice;
String get activityNoPrice => _activityNoPrice;
String get activityPrice => _activityPrice;
List<dynamic> get dishesList => _dishesList;
String get customPrice => _customPrice;
String get nextPerson => _nextPerson;
int get isTakeOut => _isTakeOut;
dynamic get memberRec => _memberRec;
dynamic get isSubscribe => _isSubscribe;
dynamic get subcribeTime => _subcribeTime;
String get postFee => _postFee;
String get shipperCode => _shipperCode;
String get logisticsName => _logisticsName;
String get logisticsNum => _logisticsNum;
int get orderNum => _orderNum;
4 years ago
int get productNum => _productNum;
4 years ago
int get mins => _mins;
dynamic get predictTime => _predictTime;
OrderDetail(
{List<ProductList> orderProductList,
dynamic discountName,
dynamic discountMoney,
dynamic discountNumber,
dynamic activityName,
4 years ago
CouponDTO couponDTO,
4 years ago
String orderSumPrice,
String paySumPrice,
String activityNoPrice,
String activityPrice,
List<dynamic> dishesList,
String customPrice,
String nextPerson,
int isTakeOut,
dynamic memberRec,
dynamic isSubscribe,
dynamic subcribeTime,
String postFee,
String shipperCode,
String logisticsName,
String logisticsNum,
int orderNum,
int productNum,
int mins,
dynamic predictTime}) {
_orderProductList = orderProductList;
_discountName = discountName;
_discountMoney = discountMoney;
_discountNumber = discountNumber;
_activityName = activityName;
_couponDTO = couponDTO;
_orderSumPrice = orderSumPrice;
_paySumPrice = paySumPrice;
_activityNoPrice = activityNoPrice;
_activityPrice = activityPrice;
_dishesList = dishesList;
_customPrice = customPrice;
_nextPerson = nextPerson;
_isTakeOut = isTakeOut;
_memberRec = memberRec;
_isSubscribe = isSubscribe;
_subcribeTime = subcribeTime;
_postFee = postFee;
_shipperCode = shipperCode;
_logisticsName = logisticsName;
_logisticsNum = logisticsNum;
_orderNum = orderNum;
_productNum = productNum;
4 years ago
_mins = mins;
_predictTime = predictTime;
}
4 years ago
4 years ago
OrderDetail.fromJson(dynamic json) {
if (json["orderProductList"] != null) {
_orderProductList = [];
json["orderProductList"].forEach((v) {
_orderProductList.add(ProductList.fromJson(v));
});
}
4 years ago
_discountName = json["discountName"];
_discountMoney = json["discountMoney"];
_discountNumber = json["discountNumber"];
_activityName = json["activityName"];
4 years ago
_couponDTO = json["couponDTO"] != null ? CouponDTO.fromJson(json["couponDTO"]) : null;
4 years ago
_orderSumPrice = json["orderSumPrice"];
_paySumPrice = json["paySumPrice"];
_activityNoPrice = json["activityNoPrice"];
_activityPrice = json["activityPrice"];
if (json["dishesList"] != null) {
_dishesList = [];
json["dishesList"].forEach((v) {
_dishesList.add(v);
});
}
_customPrice = json["customPrice"];
_nextPerson = json["nextPerson"];
_isTakeOut = json["isTakeOut"];
_memberRec = json["memberRec"];
_isSubscribe = json["isSubscribe"];
_subcribeTime = json["subcribeTime"];
_postFee = json["postFee"];
_shipperCode = json["shipperCode"];
_logisticsName = json["logisticsName"];
_logisticsNum = json["logisticsNum"];
_orderNum = json["orderNum"];
_productNum = json["productNum"];
4 years ago
_mins = json["mins"];
_predictTime = json["predictTime"];
}
Map<String, dynamic> toJson() {
var map = <String, dynamic>{};
if (_orderProductList != null) {
map["orderProductList"] =
_orderProductList.map((v) => v.toJson()).toList();
}
map["discountName"] = _discountName;
map["discountMoney"] = _discountMoney;
map["discountNumber"] = _discountNumber;
map["activityName"] = _activityName;
map["couponDTO"] = _couponDTO;
map["orderSumPrice"] = _orderSumPrice;
map["paySumPrice"] = _paySumPrice;
map["activityNoPrice"] = _activityNoPrice;
map["activityPrice"] = _activityPrice;
if (_dishesList != null) {
map["dishesList"] = _dishesList.map((v) => v.toJson()).toList();
}
map["customPrice"] = _customPrice;
map["nextPerson"] = _nextPerson;
map["isTakeOut"] = _isTakeOut;
map["memberRec"] = _memberRec;
map["isSubscribe"] = _isSubscribe;
map["subcribeTime"] = _subcribeTime;
map["postFee"] = _postFee;
map["shipperCode"] = _shipperCode;
map["logisticsName"] = _logisticsName;
map["logisticsNum"] = _logisticsNum;
map["orderNum"] = _orderNum;
map["productNum"] = _productNum;
map["mins"] = _mins;
map["predictTime"] = _predictTime;
return map;
4 years ago
}
4 years ago
}
/// id : "1344490596986781696"
/// storeName : "小小店"
/// nickName : ""
/// businessService : "WIFI,免费停车"
/// businessType : "测试"
/// logo : ""
/// openStartTime : "08:25:43"
/// openEndTime : "23:25:43"
/// shipAddress : "汉街总部国际"
/// remark : null
/// mobile : "13554204268"
/// refundAddress : null
/// refundTel : null
/// refundContact : null
/// isAutoSendRefundAddress : 1
/// soldNum : null
/// storeTemplateConfig : null
/// storeTable : null
/// threshold : null
/// freePostAge : null
/// logisticsThreshold : null
/// logisticsFreePostAge : null
/// longitude : "114.3442250000"
/// latitude : "30.5541770000"
/// deliveryDistance : null
/// couponVO : null
/// posType : {"desc":"零售商店","code":"RETAILSTORE"}
/// banners : null
/// tips : null
/// storeBrandImg : null
/// defaultPostAge : null
class StoreVO {
String _id;
String _storeName;
String _nickName;
String _businessService;
String _businessType;
String _logo;
String _openStartTime;
String _openEndTime;
String _shipAddress;
dynamic _remark;
String _mobile;
dynamic _refundAddress;
dynamic _refundTel;
dynamic _refundContact;
int _isAutoSendRefundAddress;
dynamic _soldNum;
dynamic _storeTemplateConfig;
dynamic _storeTable;
dynamic _threshold;
dynamic _freePostAge;
dynamic _logisticsThreshold;
dynamic _logisticsFreePostAge;
String _longitude;
String _latitude;
dynamic _deliveryDistance;
dynamic _couponVO;
PosType _posType;
dynamic _banners;
dynamic _tips;
dynamic _storeBrandImg;
dynamic _defaultPostAge;
String get id => _id;
String get storeName => _storeName;
String get nickName => _nickName;
String get businessService => _businessService;
String get businessType => _businessType;
String get logo => _logo;
String get openStartTime => _openStartTime;
String get openEndTime => _openEndTime;
String get shipAddress => _shipAddress;
dynamic get remark => _remark;
String get mobile => _mobile;
dynamic get refundAddress => _refundAddress;
dynamic get refundTel => _refundTel;
dynamic get refundContact => _refundContact;
int get isAutoSendRefundAddress => _isAutoSendRefundAddress;
4 years ago
4 years ago
dynamic get soldNum => _soldNum;
4 years ago
4 years ago
dynamic get storeTemplateConfig => _storeTemplateConfig;
4 years ago
4 years ago
dynamic get storeTable => _storeTable;
4 years ago
4 years ago
dynamic get threshold => _threshold;
4 years ago
4 years ago
dynamic get freePostAge => _freePostAge;
4 years ago
4 years ago
dynamic get logisticsThreshold => _logisticsThreshold;
4 years ago
4 years ago
dynamic get logisticsFreePostAge => _logisticsFreePostAge;
4 years ago
String get longitude => _longitude;
4 years ago
String get latitude => _latitude;
dynamic get deliveryDistance => _deliveryDistance;
4 years ago
dynamic get couponVO => _couponVO;
PosType get posType => _posType;
dynamic get banners => _banners;
dynamic get tips => _tips;
dynamic get storeBrandImg => _storeBrandImg;
dynamic get defaultPostAge => _defaultPostAge;
StoreVO(
{String id,
String storeName,
String nickName,
String businessService,
String businessType,
String logo,
String openStartTime,
String openEndTime,
String shipAddress,
dynamic remark,
String mobile,
dynamic refundAddress,
dynamic refundTel,
dynamic refundContact,
int isAutoSendRefundAddress,
dynamic soldNum,
dynamic storeTemplateConfig,
dynamic storeTable,
dynamic threshold,
dynamic freePostAge,
dynamic logisticsThreshold,
dynamic logisticsFreePostAge,
String longitude,
String latitude,
dynamic deliveryDistance,
dynamic couponVO,
PosType posType,
dynamic banners,
dynamic tips,
dynamic storeBrandImg,
dynamic defaultPostAge}) {
_id = id;
4 years ago
_storeName = storeName;
_nickName = nickName;
_businessService = businessService;
_businessType = businessType;
_logo = logo;
_openStartTime = openStartTime;
_openEndTime = openEndTime;
_shipAddress = shipAddress;
_remark = remark;
_mobile = mobile;
_refundAddress = refundAddress;
_refundTel = refundTel;
_refundContact = refundContact;
_isAutoSendRefundAddress = isAutoSendRefundAddress;
_soldNum = soldNum;
_storeTemplateConfig = storeTemplateConfig;
_storeTable = storeTable;
_threshold = threshold;
_freePostAge = freePostAge;
_logisticsThreshold = logisticsThreshold;
_logisticsFreePostAge = logisticsFreePostAge;
_longitude = longitude;
_latitude = latitude;
_deliveryDistance = deliveryDistance;
_couponVO = couponVO;
_posType = posType;
_banners = banners;
_tips = tips;
_storeBrandImg = storeBrandImg;
_defaultPostAge = defaultPostAge;
}
4 years ago
4 years ago
StoreVO.fromJson(dynamic json) {
_id = json["id"];
4 years ago
_storeName = json["storeName"];
_nickName = json["nickName"];
_businessService = json["businessService"];
_businessType = json["businessType"];
_logo = json["logo"];
_openStartTime = json["openStartTime"];
_openEndTime = json["openEndTime"];
_shipAddress = json["shipAddress"];
_remark = json["remark"];
_mobile = json["mobile"];
_refundAddress = json["refundAddress"];
_refundTel = json["refundTel"];
_refundContact = json["refundContact"];
_isAutoSendRefundAddress = json["isAutoSendRefundAddress"];
_soldNum = json["soldNum"];
_storeTemplateConfig = json["storeTemplateConfig"];
_storeTable = json["storeTable"];
_threshold = json["threshold"];
_freePostAge = json["freePostAge"];
_logisticsThreshold = json["logisticsThreshold"];
_logisticsFreePostAge = json["logisticsFreePostAge"];
_longitude = json["longitude"];
_latitude = json["latitude"];
_deliveryDistance = json["deliveryDistance"];
_couponVO = json["couponVO"];
_posType =
json["posType"] != null ? PosType.fromJson(json["posType"]) : null;
_banners = json["banners"];
_tips = json["tips"];
_storeBrandImg = json["storeBrandImg"];
_defaultPostAge = json["defaultPostAge"];
4 years ago
}
Map<String, dynamic> toJson() {
var map = <String, dynamic>{};
map["id"] = _id;
4 years ago
map["storeName"] = _storeName;
map["nickName"] = _nickName;
map["businessService"] = _businessService;
map["businessType"] = _businessType;
map["logo"] = _logo;
map["openStartTime"] = _openStartTime;
map["openEndTime"] = _openEndTime;
map["shipAddress"] = _shipAddress;
map["remark"] = _remark;
map["mobile"] = _mobile;
map["refundAddress"] = _refundAddress;
map["refundTel"] = _refundTel;
map["refundContact"] = _refundContact;
map["isAutoSendRefundAddress"] = _isAutoSendRefundAddress;
map["soldNum"] = _soldNum;
map["storeTemplateConfig"] = _storeTemplateConfig;
map["storeTable"] = _storeTable;
map["threshold"] = _threshold;
map["freePostAge"] = _freePostAge;
map["logisticsThreshold"] = _logisticsThreshold;
map["logisticsFreePostAge"] = _logisticsFreePostAge;
map["longitude"] = _longitude;
map["latitude"] = _latitude;
map["deliveryDistance"] = _deliveryDistance;
map["couponVO"] = _couponVO;
if (_posType != null) {
map["posType"] = _posType.toJson();
}
map["banners"] = _banners;
map["tips"] = _tips;
map["storeBrandImg"] = _storeBrandImg;
map["defaultPostAge"] = _defaultPostAge;
4 years ago
return map;
}
}
4 years ago
4 years ago
/// desc : "零售商店"
/// code : "RETAILSTORE"
4 years ago
4 years ago
class PosType {
String _desc;
String _code;
String get desc => _desc;
String get code => _code;
PosType({String desc, String code}) {
_desc = desc;
_code = code;
}
PosType.fromJson(dynamic json) {
_desc = json["desc"];
_code = json["code"];
4 years ago
}
Map<String, dynamic> toJson() {
var map = <String, dynamic>{};
4 years ago
map["desc"] = _desc;
map["code"] = _code;
4 years ago
return map;
}
}
4 years ago
/// addressId : null
/// country : null
/// countryId : null
/// province : "湖北省"
/// provinceId : null
/// city : "武汉市"
/// cityId : null
/// district : "武昌区"
/// districtId : null
/// address : "楚河汉界"
/// recName : null
/// recMobile : null
/// longitude : "114.344225"
/// latitude : "30.554177"
4 years ago
class AddressExt {
4 years ago
dynamic _addressId;
dynamic _country;
dynamic _countryId;
String _province;
dynamic _provinceId;
4 years ago
String _city;
4 years ago
dynamic _cityId;
4 years ago
String _district;
4 years ago
dynamic _districtId;
String _address;
dynamic _recName;
dynamic _recMobile;
String _longitude;
String _latitude;
dynamic get addressId => _addressId;
dynamic get country => _country;
dynamic get countryId => _countryId;
String get province => _province;
dynamic get provinceId => _provinceId;
4 years ago
String get city => _city;
4 years ago
dynamic get cityId => _cityId;
4 years ago
String get district => _district;
4 years ago
dynamic get districtId => _districtId;
String get address => _address;
dynamic get recName => _recName;
dynamic get recMobile => _recMobile;
String get longitude => _longitude;
String get latitude => _latitude;
AddressExt(
{dynamic addressId,
dynamic country,
dynamic countryId,
String province,
dynamic provinceId,
String city,
dynamic cityId,
String district,
dynamic districtId,
String address,
dynamic recName,
dynamic recMobile,
String longitude,
String latitude}) {
4 years ago
_addressId = addressId;
_country = country;
_countryId = countryId;
_province = province;
_provinceId = provinceId;
4 years ago
_city = city;
_cityId = cityId;
_district = district;
_districtId = districtId;
_address = address;
4 years ago
_recName = recName;
4 years ago
_recMobile = recMobile;
_longitude = longitude;
_latitude = latitude;
}
4 years ago
AddressExt.fromJson(dynamic json) {
_addressId = json["addressId"];
_country = json["country"];
_countryId = json["countryId"];
_province = json["province"];
_provinceId = json["provinceId"];
4 years ago
_city = json["city"];
_cityId = json["cityId"];
_district = json["district"];
_districtId = json["districtId"];
_address = json["address"];
4 years ago
_recName = json["recName"];
4 years ago
_recMobile = json["recMobile"];
_longitude = json["longitude"];
_latitude = json["latitude"];
4 years ago
}
Map<String, dynamic> toJson() {
var map = <String, dynamic>{};
map["addressId"] = _addressId;
map["country"] = _country;
map["countryId"] = _countryId;
map["province"] = _province;
map["provinceId"] = _provinceId;
4 years ago
map["city"] = _city;
map["cityId"] = _cityId;
map["district"] = _district;
map["districtId"] = _districtId;
map["address"] = _address;
4 years ago
map["recName"] = _recName;
4 years ago
map["recMobile"] = _recMobile;
map["longitude"] = _longitude;
map["latitude"] = _latitude;
4 years ago
return map;
}
4 years ago
}
4 years ago
class CouponDTO {
// "name": "超级满减",
// "num": null,
// "money": "20.00",
// "receiveMoney": null
String name;
dynamic num;
String money;
dynamic receiveMoney;
CouponDTO.fromJson(dynamic json) {
name = json["name"];
num = json["num"];
money = json["money"];
receiveMoney = json["receiveMoney"];
}
Map<String, dynamic> toJson() {
var map = <String, dynamic>{};
map["name"] = name;
map["num"] = num;
map["money"] = money;
map["receiveMoney"] = receiveMoney;
return map;
}
}