|
|
|
|
|
|
|
/// 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 : ""
|
|
|
|
/// logisticsName : ""
|
|
|
|
/// logisticsNum : ""
|
|
|
|
/// 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
|
|
|
|
/// notes : ""
|
|
|
|
/// prepayId : null
|
|
|
|
/// payTime : "2021-06-25 17:35:49"
|
|
|
|
/// payChannel : 3
|
|
|
|
/// payNum : ""
|
|
|
|
/// 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}]
|
|
|
|
|
|
|
|
class 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;
|
|
|
|
|
|
|
|
String get id => _id;
|
|
|
|
|
|
|
|
String get createTime => _createTime;
|
|
|
|
|
|
|
|
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;
|
|
|
|
|
|
|
|
String get dayFlowCode => _dayFlowCode;
|
|
|
|
|
|
|
|
int get orderStatus => _orderStatus;
|
|
|
|
|
|
|
|
int get sendStatus => _sendStatus;
|
|
|
|
|
|
|
|
int get payStatus => _payStatus;
|
|
|
|
|
|
|
|
String get memberAccount => _memberAccount;
|
|
|
|
|
|
|
|
String get logisticsId => _logisticsId;
|
|
|
|
|
|
|
|
String get shipperCode => _shipperCode;
|
|
|
|
|
|
|
|
String get logisticsName => _logisticsName;
|
|
|
|
|
|
|
|
String get logisticsNum => _logisticsNum;
|
|
|
|
|
|
|
|
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;
|
|
|
|
|
|
|
|
String get notes => _notes;
|
|
|
|
|
|
|
|
dynamic get prepayId => _prepayId;
|
|
|
|
|
|
|
|
String get payTime => _payTime;
|
|
|
|
|
|
|
|
int get payChannel => _payChannel;
|
|
|
|
|
|
|
|
String get payNum => _payNum;
|
|
|
|
|
|
|
|
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;
|
|
|
|
|
|
|
|
StoreVO get storeVO => _storeVO;
|
|
|
|
|
|
|
|
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;
|
|
|
|
_createTime = createTime;
|
|
|
|
_createUser = createUser;
|
|
|
|
_updateTime = updateTime;
|
|
|
|
_updateUser = updateUser;
|
|
|
|
_tenantCode = tenantCode;
|
|
|
|
_storeId = storeId;
|
|
|
|
_storeName = storeName;
|
|
|
|
_tableId = tableId;
|
|
|
|
_mid = mid;
|
|
|
|
_parentId = parentId;
|
|
|
|
_parentCode = parentCode;
|
|
|
|
_orderCode = orderCode;
|
|
|
|
_dayFlowCode = dayFlowCode;
|
|
|
|
_orderStatus = orderStatus;
|
|
|
|
_sendStatus = sendStatus;
|
|
|
|
_payStatus = payStatus;
|
|
|
|
_memberAccount = memberAccount;
|
|
|
|
_logisticsId = logisticsId;
|
|
|
|
_shipperCode = shipperCode;
|
|
|
|
_logisticsName = logisticsName;
|
|
|
|
_logisticsNum = logisticsNum;
|
|
|
|
_logisticsCase = logisticsCase;
|
|
|
|
_refundStatus = refundStatus;
|
|
|
|
_addressExt = addressExt;
|
|
|
|
_postFee = postFee;
|
|
|
|
_orderSum = orderSum;
|
|
|
|
_paySum = paySum;
|
|
|
|
_paySumSub = paySumSub;
|
|
|
|
_accountPay = accountPay;
|
|
|
|
_couponSubPrice = couponSubPrice;
|
|
|
|
_customPrice = customPrice;
|
|
|
|
_removeDecimal = removeDecimal;
|
|
|
|
_isSubscribe = isSubscribe;
|
|
|
|
_subcribeTime = subcribeTime;
|
|
|
|
_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;
|
|
|
|
_totalDiscountPrice = totalDiscountPrice;
|
|
|
|
_orderSource = orderSource;
|
|
|
|
_storeVO = storeVO;
|
|
|
|
_orderDetail = orderDetail;
|
|
|
|
_productList = productList;
|
|
|
|
}
|
|
|
|
|
|
|
|
OrderInfo.fromJson(dynamic json) {
|
|
|
|
_id = json["id"];
|
|
|
|
_createTime = json["createTime"];
|
|
|
|
_createUser = json["createUser"];
|
|
|
|
_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"];
|
|
|
|
_dayFlowCode = json["dayFlowCode"];
|
|
|
|
_orderStatus = json["orderStatus"];
|
|
|
|
_sendStatus = json["sendStatus"];
|
|
|
|
_payStatus = json["payStatus"];
|
|
|
|
_memberAccount = json["memberAccount"];
|
|
|
|
_logisticsId = json["logisticsId"];
|
|
|
|
_shipperCode = json["shipperCode"];
|
|
|
|
_logisticsName = json["logisticsName"];
|
|
|
|
_logisticsNum = json["logisticsNum"];
|
|
|
|
_logisticsCase = json["logisticsCase"];
|
|
|
|
_refundStatus = json["refundStatus"];
|
|
|
|
_addressExt = json["addressExt"] != null
|
|
|
|
? AddressExt.fromJson(json["addressExt"])
|
|
|
|
: null;
|
|
|
|
_postFee = json["postFee"];
|
|
|
|
_orderSum = json["orderSum"];
|
|
|
|
_paySum = json["paySum"];
|
|
|
|
_paySumSub = json["paySumSub"];
|
|
|
|
_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"];
|
|
|
|
_prepayId = json["prepayId"];
|
|
|
|
_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));
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
Map<String, dynamic> toJson() {
|
|
|
|
var map = <String, dynamic>{};
|
|
|
|
map["id"] = _id;
|
|
|
|
map["createTime"] = _createTime;
|
|
|
|
map["createUser"] = _createUser;
|
|
|
|
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;
|
|
|
|
map["dayFlowCode"] = _dayFlowCode;
|
|
|
|
map["orderStatus"] = _orderStatus;
|
|
|
|
map["sendStatus"] = _sendStatus;
|
|
|
|
map["payStatus"] = _payStatus;
|
|
|
|
map["memberAccount"] = _memberAccount;
|
|
|
|
map["logisticsId"] = _logisticsId;
|
|
|
|
map["shipperCode"] = _shipperCode;
|
|
|
|
map["logisticsName"] = _logisticsName;
|
|
|
|
map["logisticsNum"] = _logisticsNum;
|
|
|
|
map["logisticsCase"] = _logisticsCase;
|
|
|
|
map["refundStatus"] = _refundStatus;
|
|
|
|
if (_addressExt != null) {
|
|
|
|
map["addressExt"] = _addressExt.toJson();
|
|
|
|
}
|
|
|
|
map["postFee"] = _postFee;
|
|
|
|
map["orderSum"] = _orderSum;
|
|
|
|
map["paySum"] = _paySum;
|
|
|
|
map["paySumSub"] = _paySumSub;
|
|
|
|
map["accountPay"] = _accountPay;
|
|
|
|
map["couponSubPrice"] = _couponSubPrice;
|
|
|
|
map["customPrice"] = _customPrice;
|
|
|
|
map["removeDecimal"] = _removeDecimal;
|
|
|
|
map["isSubscribe"] = _isSubscribe;
|
|
|
|
map["subcribeTime"] = _subcribeTime;
|
|
|
|
map["sendTime"] = _sendTime;
|
|
|
|
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;
|
|
|
|
if (_storeVO != null) {
|
|
|
|
map["storeVO"] = _storeVO.toJson();
|
|
|
|
}
|
|
|
|
if (_orderDetail != null) {
|
|
|
|
map["orderDetail"] = _orderDetail.toJson();
|
|
|
|
}
|
|
|
|
if (_productList != null) {
|
|
|
|
map["productList"] = _productList.map((v) => v.toJson()).toList();
|
|
|
|
}
|
|
|
|
return map;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/// 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
|
|
|
|
|
|
|
|
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;
|
|
|
|
|
|
|
|
String get id => _id;
|
|
|
|
|
|
|
|
String get createTime => _createTime;
|
|
|
|
|
|
|
|
String get createUser => _createUser;
|
|
|
|
|
|
|
|
String get updateTime => _updateTime;
|
|
|
|
|
|
|
|
String get updateUser => _updateUser;
|
|
|
|
|
|
|
|
dynamic get tenantCode => _tenantCode;
|
|
|
|
|
|
|
|
String get storeId => _storeId;
|
|
|
|
|
|
|
|
String get orderId => _orderId;
|
|
|
|
|
|
|
|
String get productId => _productId;
|
|
|
|
|
|
|
|
String get productName => _productName;
|
|
|
|
|
|
|
|
String get skuId => _skuId;
|
|
|
|
|
|
|
|
String get skuNameStr => _skuNameStr;
|
|
|
|
|
|
|
|
String get skuImg => _skuImg;
|
|
|
|
|
|
|
|
int get buyNum => _buyNum;
|
|
|
|
|
|
|
|
int get refundNum => _refundNum;
|
|
|
|
|
|
|
|
double get weight => _weight;
|
|
|
|
|
|
|
|
String get applyPrice => _applyPrice;
|
|
|
|
|
|
|
|
String get sellPrice => _sellPrice;
|
|
|
|
|
|
|
|
String get postPay => _postPay;
|
|
|
|
|
|
|
|
int get isDelete => _isDelete;
|
|
|
|
|
|
|
|
String get discountAmount => _discountAmount;
|
|
|
|
|
|
|
|
int get discountPercent => _discountPercent;
|
|
|
|
|
|
|
|
bool get status => _status;
|
|
|
|
|
|
|
|
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;
|
|
|
|
_updateTime = updateTime;
|
|
|
|
_updateUser = updateUser;
|
|
|
|
_tenantCode = tenantCode;
|
|
|
|
_storeId = storeId;
|
|
|
|
_orderId = orderId;
|
|
|
|
_productId = productId;
|
|
|
|
_productName = productName;
|
|
|
|
_skuId = skuId;
|
|
|
|
_skuNameStr = skuNameStr;
|
|
|
|
_skuImg = skuImg;
|
|
|
|
_buyNum = buyNum;
|
|
|
|
_refundNum = refundNum;
|
|
|
|
_weight = weight;
|
|
|
|
_applyPrice = applyPrice;
|
|
|
|
_sellPrice = sellPrice;
|
|
|
|
_postPay = postPay;
|
|
|
|
_isDelete = isDelete;
|
|
|
|
_discountAmount = discountAmount;
|
|
|
|
_discountPercent = discountPercent;
|
|
|
|
_status = status;
|
|
|
|
_batch = batch;
|
|
|
|
}
|
|
|
|
|
|
|
|
ProductList.fromJson(dynamic json) {
|
|
|
|
_id = json["id"];
|
|
|
|
_createTime = json["createTime"];
|
|
|
|
_createUser = json["createUser"];
|
|
|
|
_updateTime = json["updateTime"];
|
|
|
|
_updateUser = json["updateUser"];
|
|
|
|
_tenantCode = json["tenantCode"];
|
|
|
|
_storeId = json["storeId"];
|
|
|
|
_orderId = json["orderId"];
|
|
|
|
_productId = json["productId"];
|
|
|
|
_productName = json["productName"];
|
|
|
|
_skuId = json["skuId"];
|
|
|
|
_skuNameStr = json["skuNameStr"];
|
|
|
|
_skuImg = json["skuImg"];
|
|
|
|
_buyNum = json["buyNum"];
|
|
|
|
_refundNum = json["refundNum"];
|
|
|
|
_weight = json["weight"];
|
|
|
|
_applyPrice = json["applyPrice"];
|
|
|
|
_sellPrice = json["sellPrice"];
|
|
|
|
_postPay = json["postPay"];
|
|
|
|
_isDelete = json["isDelete"];
|
|
|
|
_discountAmount = json["discountAmount"];
|
|
|
|
_discountPercent = json["discountPercent"];
|
|
|
|
_status = json["status"];
|
|
|
|
_batch = json["batch"];
|
|
|
|
}
|
|
|
|
|
|
|
|
Map<String, dynamic> toJson() {
|
|
|
|
var map = <String, dynamic>{};
|
|
|
|
map["id"] = _id;
|
|
|
|
map["createTime"] = _createTime;
|
|
|
|
map["createUser"] = _createUser;
|
|
|
|
map["updateTime"] = _updateTime;
|
|
|
|
map["updateUser"] = _updateUser;
|
|
|
|
map["tenantCode"] = _tenantCode;
|
|
|
|
map["storeId"] = _storeId;
|
|
|
|
map["orderId"] = _orderId;
|
|
|
|
map["productId"] = _productId;
|
|
|
|
map["productName"] = _productName;
|
|
|
|
map["skuId"] = _skuId;
|
|
|
|
map["skuNameStr"] = _skuNameStr;
|
|
|
|
map["skuImg"] = _skuImg;
|
|
|
|
map["buyNum"] = _buyNum;
|
|
|
|
map["refundNum"] = _refundNum;
|
|
|
|
map["weight"] = _weight;
|
|
|
|
map["applyPrice"] = _applyPrice;
|
|
|
|
map["sellPrice"] = _sellPrice;
|
|
|
|
map["postPay"] = _postPay;
|
|
|
|
map["isDelete"] = _isDelete;
|
|
|
|
map["discountAmount"] = _discountAmount;
|
|
|
|
map["discountPercent"] = _discountPercent;
|
|
|
|
map["status"] = _status;
|
|
|
|
map["batch"] = _batch;
|
|
|
|
return map;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/// 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
|
|
|
|
|
|
|
|
class OrderDetail {
|
|
|
|
List<ProductList> _orderProductList;
|
|
|
|
dynamic _discountName;
|
|
|
|
dynamic _discountMoney;
|
|
|
|
dynamic _discountNumber;
|
|
|
|
dynamic _activityName;
|
|
|
|
CouponDTO _couponDTO;
|
|
|
|
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;
|
|
|
|
|
|
|
|
List<ProductList> get orderProductList => _orderProductList;
|
|
|
|
|
|
|
|
dynamic get discountName => _discountName;
|
|
|
|
|
|
|
|
dynamic get discountMoney => _discountMoney;
|
|
|
|
|
|
|
|
dynamic get discountNumber => _discountNumber;
|
|
|
|
|
|
|
|
dynamic get activityName => _activityName;
|
|
|
|
|
|
|
|
CouponDTO get couponDTO => _couponDTO;
|
|
|
|
|
|
|
|
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;
|
|
|
|
|
|
|
|
int get productNum => _productNum;
|
|
|
|
|
|
|
|
int get mins => _mins;
|
|
|
|
|
|
|
|
dynamic get predictTime => _predictTime;
|
|
|
|
|
|
|
|
OrderDetail(
|
|
|
|
{List<ProductList> orderProductList,
|
|
|
|
dynamic discountName,
|
|
|
|
dynamic discountMoney,
|
|
|
|
dynamic discountNumber,
|
|
|
|
dynamic activityName,
|
|
|
|
CouponDTO couponDTO,
|
|
|
|
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;
|
|
|
|
_mins = mins;
|
|
|
|
_predictTime = predictTime;
|
|
|
|
}
|
|
|
|
|
|
|
|
OrderDetail.fromJson(dynamic json) {
|
|
|
|
if (json["orderProductList"] != null) {
|
|
|
|
_orderProductList = [];
|
|
|
|
json["orderProductList"].forEach((v) {
|
|
|
|
_orderProductList.add(ProductList.fromJson(v));
|
|
|
|
});
|
|
|
|
}
|
|
|
|
_discountName = json["discountName"];
|
|
|
|
_discountMoney = json["discountMoney"];
|
|
|
|
_discountNumber = json["discountNumber"];
|
|
|
|
_activityName = json["activityName"];
|
|
|
|
_couponDTO = json["couponDTO"] != null ? CouponDTO.fromJson(json["couponDTO"]) : null;
|
|
|
|
_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"];
|
|
|
|
_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;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/// 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;
|
|
|
|
|
|
|
|
dynamic get soldNum => _soldNum;
|
|
|
|
|
|
|
|
dynamic get storeTemplateConfig => _storeTemplateConfig;
|
|
|
|
|
|
|
|
dynamic get storeTable => _storeTable;
|
|
|
|
|
|
|
|
dynamic get threshold => _threshold;
|
|
|
|
|
|
|
|
dynamic get freePostAge => _freePostAge;
|
|
|
|
|
|
|
|
dynamic get logisticsThreshold => _logisticsThreshold;
|
|
|
|
|
|
|
|
dynamic get logisticsFreePostAge => _logisticsFreePostAge;
|
|
|
|
|
|
|
|
String get longitude => _longitude;
|
|
|
|
|
|
|
|
String get latitude => _latitude;
|
|
|
|
|
|
|
|
dynamic get deliveryDistance => _deliveryDistance;
|
|
|
|
|
|
|
|
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;
|
|
|
|
_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;
|
|
|
|
}
|
|
|
|
|
|
|
|
StoreVO.fromJson(dynamic json) {
|
|
|
|
_id = json["id"];
|
|
|
|
_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"];
|
|
|
|
}
|
|
|
|
|
|
|
|
Map<String, dynamic> toJson() {
|
|
|
|
var map = <String, dynamic>{};
|
|
|
|
map["id"] = _id;
|
|
|
|
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;
|
|
|
|
return map;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/// desc : "零售商店"
|
|
|
|
/// code : "RETAILSTORE"
|
|
|
|
|
|
|
|
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"];
|
|
|
|
}
|
|
|
|
|
|
|
|
Map<String, dynamic> toJson() {
|
|
|
|
var map = <String, dynamic>{};
|
|
|
|
map["desc"] = _desc;
|
|
|
|
map["code"] = _code;
|
|
|
|
return map;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/// 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"
|
|
|
|
|
|
|
|
class 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;
|
|
|
|
|
|
|
|
dynamic get addressId => _addressId;
|
|
|
|
|
|
|
|
dynamic get country => _country;
|
|
|
|
|
|
|
|
dynamic get countryId => _countryId;
|
|
|
|
|
|
|
|
String get province => _province;
|
|
|
|
|
|
|
|
dynamic get provinceId => _provinceId;
|
|
|
|
|
|
|
|
String get city => _city;
|
|
|
|
|
|
|
|
dynamic get cityId => _cityId;
|
|
|
|
|
|
|
|
String get district => _district;
|
|
|
|
|
|
|
|
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}) {
|
|
|
|
_addressId = addressId;
|
|
|
|
_country = country;
|
|
|
|
_countryId = countryId;
|
|
|
|
_province = province;
|
|
|
|
_provinceId = provinceId;
|
|
|
|
_city = city;
|
|
|
|
_cityId = cityId;
|
|
|
|
_district = district;
|
|
|
|
_districtId = districtId;
|
|
|
|
_address = address;
|
|
|
|
_recName = recName;
|
|
|
|
_recMobile = recMobile;
|
|
|
|
_longitude = longitude;
|
|
|
|
_latitude = latitude;
|
|
|
|
}
|
|
|
|
|
|
|
|
AddressExt.fromJson(dynamic json) {
|
|
|
|
_addressId = json["addressId"];
|
|
|
|
_country = json["country"];
|
|
|
|
_countryId = json["countryId"];
|
|
|
|
_province = json["province"];
|
|
|
|
_provinceId = json["provinceId"];
|
|
|
|
_city = json["city"];
|
|
|
|
_cityId = json["cityId"];
|
|
|
|
_district = json["district"];
|
|
|
|
_districtId = json["districtId"];
|
|
|
|
_address = json["address"];
|
|
|
|
_recName = json["recName"];
|
|
|
|
_recMobile = json["recMobile"];
|
|
|
|
_longitude = json["longitude"];
|
|
|
|
_latitude = json["latitude"];
|
|
|
|
}
|
|
|
|
|
|
|
|
Map<String, dynamic> toJson() {
|
|
|
|
var map = <String, dynamic>{};
|
|
|
|
map["addressId"] = _addressId;
|
|
|
|
map["country"] = _country;
|
|
|
|
map["countryId"] = _countryId;
|
|
|
|
map["province"] = _province;
|
|
|
|
map["provinceId"] = _provinceId;
|
|
|
|
map["city"] = _city;
|
|
|
|
map["cityId"] = _cityId;
|
|
|
|
map["district"] = _district;
|
|
|
|
map["districtId"] = _districtId;
|
|
|
|
map["address"] = _address;
|
|
|
|
map["recName"] = _recName;
|
|
|
|
map["recMobile"] = _recMobile;
|
|
|
|
map["longitude"] = _longitude;
|
|
|
|
map["latitude"] = _latitude;
|
|
|
|
return map;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
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;
|
|
|
|
}
|
|
|
|
}
|