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.
1083 lines
32 KiB
1083 lines
32 KiB
1 year ago
|
/// id : "1705059878256508928"
|
||
|
/// orderCode : "202309221122080002"
|
||
|
/// storeName : "海峡姐妹茶(奶茶)"
|
||
|
/// orderStatus : 2
|
||
|
/// payStatus : 1
|
||
|
/// orderSum : "9.00"
|
||
|
/// paySum : "8.28"
|
||
|
/// discountAmount : null
|
||
|
/// payChannel : 4
|
||
|
/// createTime : "2023-09-22 11:22:08"
|
||
|
/// notes : ""
|
||
|
/// payNum : ""
|
||
|
/// returnType : null
|
||
|
/// logisticsCase : null
|
||
|
/// payTime : "2023-09-22 11:22:09"
|
||
|
/// memberAccount : ""
|
||
|
/// orderCount : 1
|
||
|
/// recName : null
|
||
|
/// recMobile : null
|
||
|
/// province : null
|
||
|
/// city : null
|
||
|
/// area : null
|
||
|
/// address : "湖北省武汉市江汉区万松街道青年路招银大厦"
|
||
|
/// shipperCode : ""
|
||
|
/// logisticsNum : ""
|
||
|
/// logisticsName : ""
|
||
|
/// orderSource : 2
|
||
|
/// orderProductDTOList : [{"id":"1705059878650773504","createTime":"2023-09-22 11:22:08","createUser":"1695008923246919680","updateTime":"2023-09-22 11:22:08","updateUser":"1695008923246919680","tenantCode":"1195","storeId":"1645691756009750528","orderId":"1705059878256508928","actInfo":null,"productId":"1685953238345449472","productName":"台18茗茶","skuId":"1689482412884492288","skuNameStr":"700ml 温热 七分糖","skuImg":"https://pos.upload.lotus-wallet.com/1195/2023/08/e08f6297-06dd-4128-b21d-20930018df03.jpg","buyNum":1,"refundNum":0,"type":0,"reason":null,"weight":0.0,"applyPrice":"9.00","sellPrice":"9.00","postPay":"0.00","isDelete":0,"discountAmount":"0.72","discountPercent":92,"status":true,"batch":1,"deliveries":0,"ticketType":"","ticketDays":"0","takeType":null,"skuTickets":[],"ticketStyle":"","setMealDataList":[],"packagingFee":"0.00"}]
|
||
|
/// moneyReturnList : null
|
||
|
/// goodsReturnList : null
|
||
|
/// moneyReturnActionHistoryList : null
|
||
|
/// goodsReturnActionHistoryList : null
|
||
|
/// sonOrderList : null
|
||
|
/// refundStatus : 2
|
||
|
/// reason : "测试退款"
|
||
|
/// isSubscribe : false
|
||
|
/// subcribeTime : null
|
||
|
/// addressExt : {"addressId":null,"country":null,"countryId":null,"province":"湖北省","provinceId":null,"city":"武汉市","cityId":null,"district":"汉口区","districtId":null,"cityInfo":null,"address":"湖北省武汉市江汉区万松街道青年路招银大厦","recName":null,"recMobile":null,"longitude":"114.263242","latitude":"30.593863"}
|
||
|
/// contactsExtList : null
|
||
|
/// memberInfo : {"mid":"1695008923246919680","name":"哈哈哈","phone":"13052919193","mark":null}
|
||
|
/// payRecordList : [{"id":"1705059881448374272","createTime":"2023-09-22 11:22:09","createUser":"1695008923246919680","updateTime":"2023-09-22 11:22:09","updateUser":"1695008923246919680","orderId":"1705059878256508928","type":4,"amount":"8.28","refundAmount":"0.00","state":1,"refId":"1705059881398042624","isDelete":false,"tenantCode":null}]
|
||
|
|
||
|
class BusinessOrderDetailInfo {
|
||
|
BusinessOrderDetailInfo({
|
||
|
String id,
|
||
|
String orderCode,
|
||
|
String storeName,
|
||
|
num orderStatus,
|
||
|
num payStatus,
|
||
|
String orderSum,
|
||
|
String paySum,
|
||
|
dynamic discountAmount,
|
||
|
num payChannel,
|
||
|
String createTime,
|
||
|
String notes,
|
||
|
String payNum,
|
||
|
dynamic returnType,
|
||
|
dynamic logisticsCase,
|
||
|
String payTime,
|
||
|
String memberAccount,
|
||
|
num orderCount,
|
||
|
dynamic recName,
|
||
|
dynamic recMobile,
|
||
|
dynamic province,
|
||
|
dynamic city,
|
||
|
dynamic area,
|
||
|
String address,
|
||
|
String shipperCode,
|
||
|
String logisticsNum,
|
||
|
String logisticsName,
|
||
|
num orderSource,
|
||
|
List<OrderProductDtoList> orderProductDTOList,
|
||
|
dynamic moneyReturnList,
|
||
|
dynamic goodsReturnList,
|
||
|
dynamic moneyReturnActionHistoryList,
|
||
|
dynamic goodsReturnActionHistoryList,
|
||
|
dynamic sonOrderList,
|
||
|
num refundStatus,
|
||
|
String reason,
|
||
|
bool isSubscribe,
|
||
|
dynamic subcribeTime,
|
||
|
AddressExt addressExt,
|
||
|
dynamic contactsExtList,
|
||
|
MemberInfo memberInfo,
|
||
|
List<PayRecordList> payRecordList,}){
|
||
|
_id = id;
|
||
|
_orderCode = orderCode;
|
||
|
_storeName = storeName;
|
||
|
_orderStatus = orderStatus;
|
||
|
_payStatus = payStatus;
|
||
|
_orderSum = orderSum;
|
||
|
_paySum = paySum;
|
||
|
_discountAmount = discountAmount;
|
||
|
_payChannel = payChannel;
|
||
|
_createTime = createTime;
|
||
|
_notes = notes;
|
||
|
_payNum = payNum;
|
||
|
_returnType = returnType;
|
||
|
_logisticsCase = logisticsCase;
|
||
|
_payTime = payTime;
|
||
|
_memberAccount = memberAccount;
|
||
|
_orderCount = orderCount;
|
||
|
_recName = recName;
|
||
|
_recMobile = recMobile;
|
||
|
_province = province;
|
||
|
_city = city;
|
||
|
_area = area;
|
||
|
_address = address;
|
||
|
_shipperCode = shipperCode;
|
||
|
_logisticsNum = logisticsNum;
|
||
|
_logisticsName = logisticsName;
|
||
|
_orderSource = orderSource;
|
||
|
_orderProductDTOList = orderProductDTOList;
|
||
|
_moneyReturnList = moneyReturnList;
|
||
|
_goodsReturnList = goodsReturnList;
|
||
|
_moneyReturnActionHistoryList = moneyReturnActionHistoryList;
|
||
|
_goodsReturnActionHistoryList = goodsReturnActionHistoryList;
|
||
|
_sonOrderList = sonOrderList;
|
||
|
_refundStatus = refundStatus;
|
||
|
_reason = reason;
|
||
|
_isSubscribe = isSubscribe;
|
||
|
_subcribeTime = subcribeTime;
|
||
|
_addressExt = addressExt;
|
||
|
_contactsExtList = contactsExtList;
|
||
|
_memberInfo = memberInfo;
|
||
|
_payRecordList = payRecordList;
|
||
|
}
|
||
|
|
||
|
BusinessOrderDetailInfo.fromJson(dynamic json) {
|
||
|
_id = json['id'];
|
||
|
_orderCode = json['orderCode'];
|
||
|
_storeName = json['storeName'];
|
||
|
_orderStatus = json['orderStatus'];
|
||
|
_payStatus = json['payStatus'];
|
||
|
_orderSum = json['orderSum'];
|
||
|
_paySum = json['paySum'];
|
||
|
_discountAmount = json['discountAmount'];
|
||
|
_payChannel = json['payChannel'];
|
||
|
_createTime = json['createTime'];
|
||
|
_notes = json['notes'];
|
||
|
_payNum = json['payNum'];
|
||
|
_returnType = json['returnType'];
|
||
|
_logisticsCase = json['logisticsCase'];
|
||
|
_payTime = json['payTime'];
|
||
|
_memberAccount = json['memberAccount'];
|
||
|
_orderCount = json['orderCount'];
|
||
|
_recName = json['recName'];
|
||
|
_recMobile = json['recMobile'];
|
||
|
_province = json['province'];
|
||
|
_city = json['city'];
|
||
|
_area = json['area'];
|
||
|
_address = json['address'];
|
||
|
_shipperCode = json['shipperCode'];
|
||
|
_logisticsNum = json['logisticsNum'];
|
||
|
_logisticsName = json['logisticsName'];
|
||
|
_orderSource = json['orderSource'];
|
||
|
if (json['orderProductDTOList'] != null) {
|
||
|
_orderProductDTOList = [];
|
||
|
json['orderProductDTOList'].forEach((v) {
|
||
|
_orderProductDTOList.add(OrderProductDtoList.fromJson(v));
|
||
|
});
|
||
|
}
|
||
|
_moneyReturnList = json['moneyReturnList'];
|
||
|
_goodsReturnList = json['goodsReturnList'];
|
||
|
_moneyReturnActionHistoryList = json['moneyReturnActionHistoryList'];
|
||
|
_goodsReturnActionHistoryList = json['goodsReturnActionHistoryList'];
|
||
|
_sonOrderList = json['sonOrderList'];
|
||
|
_refundStatus = json['refundStatus'];
|
||
|
_reason = json['reason'];
|
||
|
_isSubscribe = json['isSubscribe'];
|
||
|
_subcribeTime = json['subcribeTime'];
|
||
|
_addressExt = json['addressExt'] != null ? AddressExt.fromJson(json['addressExt']) : null;
|
||
|
_contactsExtList = json['contactsExtList'];
|
||
|
_memberInfo = json['memberInfo'] != null ? MemberInfo.fromJson(json['memberInfo']) : null;
|
||
|
if (json['payRecordList'] != null) {
|
||
|
_payRecordList = [];
|
||
|
json['payRecordList'].forEach((v) {
|
||
|
_payRecordList.add(PayRecordList.fromJson(v));
|
||
|
});
|
||
|
}
|
||
|
}
|
||
|
String _id;
|
||
|
String _orderCode;
|
||
|
String _storeName;
|
||
|
num _orderStatus;
|
||
|
num _payStatus;
|
||
|
String _orderSum;
|
||
|
String _paySum;
|
||
|
dynamic _discountAmount;
|
||
|
num _payChannel;
|
||
|
String _createTime;
|
||
|
String _notes;
|
||
|
String _payNum;
|
||
|
dynamic _returnType;
|
||
|
dynamic _logisticsCase;
|
||
|
String _payTime;
|
||
|
String _memberAccount;
|
||
|
num _orderCount;
|
||
|
dynamic _recName;
|
||
|
dynamic _recMobile;
|
||
|
dynamic _province;
|
||
|
dynamic _city;
|
||
|
dynamic _area;
|
||
|
String _address;
|
||
|
String _shipperCode;
|
||
|
String _logisticsNum;
|
||
|
String _logisticsName;
|
||
|
num _orderSource;
|
||
|
List<OrderProductDtoList> _orderProductDTOList;
|
||
|
dynamic _moneyReturnList;
|
||
|
dynamic _goodsReturnList;
|
||
|
dynamic _moneyReturnActionHistoryList;
|
||
|
dynamic _goodsReturnActionHistoryList;
|
||
|
dynamic _sonOrderList;
|
||
|
num _refundStatus;
|
||
|
String _reason;
|
||
|
bool _isSubscribe;
|
||
|
dynamic _subcribeTime;
|
||
|
AddressExt _addressExt;
|
||
|
dynamic _contactsExtList;
|
||
|
MemberInfo _memberInfo;
|
||
|
List<PayRecordList> _payRecordList;
|
||
|
BusinessOrderDetailInfo copyWith({ String id,
|
||
|
String orderCode,
|
||
|
String storeName,
|
||
|
num orderStatus,
|
||
|
num payStatus,
|
||
|
String orderSum,
|
||
|
String paySum,
|
||
|
dynamic discountAmount,
|
||
|
num payChannel,
|
||
|
String createTime,
|
||
|
String notes,
|
||
|
String payNum,
|
||
|
dynamic returnType,
|
||
|
dynamic logisticsCase,
|
||
|
String payTime,
|
||
|
String memberAccount,
|
||
|
num orderCount,
|
||
|
dynamic recName,
|
||
|
dynamic recMobile,
|
||
|
dynamic province,
|
||
|
dynamic city,
|
||
|
dynamic area,
|
||
|
String address,
|
||
|
String shipperCode,
|
||
|
String logisticsNum,
|
||
|
String logisticsName,
|
||
|
num orderSource,
|
||
|
List<OrderProductDtoList> orderProductDTOList,
|
||
|
dynamic moneyReturnList,
|
||
|
dynamic goodsReturnList,
|
||
|
dynamic moneyReturnActionHistoryList,
|
||
|
dynamic goodsReturnActionHistoryList,
|
||
|
dynamic sonOrderList,
|
||
|
num refundStatus,
|
||
|
String reason,
|
||
|
bool isSubscribe,
|
||
|
dynamic subcribeTime,
|
||
|
AddressExt addressExt,
|
||
|
dynamic contactsExtList,
|
||
|
MemberInfo memberInfo,
|
||
|
List<PayRecordList> payRecordList,
|
||
|
}) => BusinessOrderDetailInfo( id: id ?? _id,
|
||
|
orderCode: orderCode ?? _orderCode,
|
||
|
storeName: storeName ?? _storeName,
|
||
|
orderStatus: orderStatus ?? _orderStatus,
|
||
|
payStatus: payStatus ?? _payStatus,
|
||
|
orderSum: orderSum ?? _orderSum,
|
||
|
paySum: paySum ?? _paySum,
|
||
|
discountAmount: discountAmount ?? _discountAmount,
|
||
|
payChannel: payChannel ?? _payChannel,
|
||
|
createTime: createTime ?? _createTime,
|
||
|
notes: notes ?? _notes,
|
||
|
payNum: payNum ?? _payNum,
|
||
|
returnType: returnType ?? _returnType,
|
||
|
logisticsCase: logisticsCase ?? _logisticsCase,
|
||
|
payTime: payTime ?? _payTime,
|
||
|
memberAccount: memberAccount ?? _memberAccount,
|
||
|
orderCount: orderCount ?? _orderCount,
|
||
|
recName: recName ?? _recName,
|
||
|
recMobile: recMobile ?? _recMobile,
|
||
|
province: province ?? _province,
|
||
|
city: city ?? _city,
|
||
|
area: area ?? _area,
|
||
|
address: address ?? _address,
|
||
|
shipperCode: shipperCode ?? _shipperCode,
|
||
|
logisticsNum: logisticsNum ?? _logisticsNum,
|
||
|
logisticsName: logisticsName ?? _logisticsName,
|
||
|
orderSource: orderSource ?? _orderSource,
|
||
|
orderProductDTOList: orderProductDTOList ?? _orderProductDTOList,
|
||
|
moneyReturnList: moneyReturnList ?? _moneyReturnList,
|
||
|
goodsReturnList: goodsReturnList ?? _goodsReturnList,
|
||
|
moneyReturnActionHistoryList: moneyReturnActionHistoryList ?? _moneyReturnActionHistoryList,
|
||
|
goodsReturnActionHistoryList: goodsReturnActionHistoryList ?? _goodsReturnActionHistoryList,
|
||
|
sonOrderList: sonOrderList ?? _sonOrderList,
|
||
|
refundStatus: refundStatus ?? _refundStatus,
|
||
|
reason: reason ?? _reason,
|
||
|
isSubscribe: isSubscribe ?? _isSubscribe,
|
||
|
subcribeTime: subcribeTime ?? _subcribeTime,
|
||
|
addressExt: addressExt ?? _addressExt,
|
||
|
contactsExtList: contactsExtList ?? _contactsExtList,
|
||
|
memberInfo: memberInfo ?? _memberInfo,
|
||
|
payRecordList: payRecordList ?? _payRecordList,
|
||
|
);
|
||
|
String get id => _id;
|
||
|
String get orderCode => _orderCode;
|
||
|
String get storeName => _storeName;
|
||
|
num get orderStatus => _orderStatus;
|
||
|
num get payStatus => _payStatus;
|
||
|
String get orderSum => _orderSum;
|
||
|
String get paySum => _paySum;
|
||
|
dynamic get discountAmount => _discountAmount;
|
||
|
num get payChannel => _payChannel;
|
||
|
String get createTime => _createTime;
|
||
|
String get notes => _notes;
|
||
|
String get payNum => _payNum;
|
||
|
dynamic get returnType => _returnType;
|
||
|
dynamic get logisticsCase => _logisticsCase;
|
||
|
String get payTime => _payTime;
|
||
|
String get memberAccount => _memberAccount;
|
||
|
num get orderCount => _orderCount;
|
||
|
dynamic get recName => _recName;
|
||
|
dynamic get recMobile => _recMobile;
|
||
|
dynamic get province => _province;
|
||
|
dynamic get city => _city;
|
||
|
dynamic get area => _area;
|
||
|
String get address => _address;
|
||
|
String get shipperCode => _shipperCode;
|
||
|
String get logisticsNum => _logisticsNum;
|
||
|
String get logisticsName => _logisticsName;
|
||
|
num get orderSource => _orderSource;
|
||
|
List<OrderProductDtoList> get orderProductDTOList => _orderProductDTOList;
|
||
|
dynamic get moneyReturnList => _moneyReturnList;
|
||
|
dynamic get goodsReturnList => _goodsReturnList;
|
||
|
dynamic get moneyReturnActionHistoryList => _moneyReturnActionHistoryList;
|
||
|
dynamic get goodsReturnActionHistoryList => _goodsReturnActionHistoryList;
|
||
|
dynamic get sonOrderList => _sonOrderList;
|
||
|
num get refundStatus => _refundStatus;
|
||
|
String get reason => _reason;
|
||
|
bool get isSubscribe => _isSubscribe;
|
||
|
dynamic get subcribeTime => _subcribeTime;
|
||
|
AddressExt get addressExt => _addressExt;
|
||
|
dynamic get contactsExtList => _contactsExtList;
|
||
|
MemberInfo get memberInfo => _memberInfo;
|
||
|
List<PayRecordList> get payRecordList => _payRecordList;
|
||
|
|
||
|
Map<String, dynamic> toJson() {
|
||
|
final map = <String, dynamic>{};
|
||
|
map['id'] = _id;
|
||
|
map['orderCode'] = _orderCode;
|
||
|
map['storeName'] = _storeName;
|
||
|
map['orderStatus'] = _orderStatus;
|
||
|
map['payStatus'] = _payStatus;
|
||
|
map['orderSum'] = _orderSum;
|
||
|
map['paySum'] = _paySum;
|
||
|
map['discountAmount'] = _discountAmount;
|
||
|
map['payChannel'] = _payChannel;
|
||
|
map['createTime'] = _createTime;
|
||
|
map['notes'] = _notes;
|
||
|
map['payNum'] = _payNum;
|
||
|
map['returnType'] = _returnType;
|
||
|
map['logisticsCase'] = _logisticsCase;
|
||
|
map['payTime'] = _payTime;
|
||
|
map['memberAccount'] = _memberAccount;
|
||
|
map['orderCount'] = _orderCount;
|
||
|
map['recName'] = _recName;
|
||
|
map['recMobile'] = _recMobile;
|
||
|
map['province'] = _province;
|
||
|
map['city'] = _city;
|
||
|
map['area'] = _area;
|
||
|
map['address'] = _address;
|
||
|
map['shipperCode'] = _shipperCode;
|
||
|
map['logisticsNum'] = _logisticsNum;
|
||
|
map['logisticsName'] = _logisticsName;
|
||
|
map['orderSource'] = _orderSource;
|
||
|
if (_orderProductDTOList != null) {
|
||
|
map['orderProductDTOList'] = _orderProductDTOList.map((v) => v.toJson()).toList();
|
||
|
}
|
||
|
map['moneyReturnList'] = _moneyReturnList;
|
||
|
map['goodsReturnList'] = _goodsReturnList;
|
||
|
map['moneyReturnActionHistoryList'] = _moneyReturnActionHistoryList;
|
||
|
map['goodsReturnActionHistoryList'] = _goodsReturnActionHistoryList;
|
||
|
map['sonOrderList'] = _sonOrderList;
|
||
|
map['refundStatus'] = _refundStatus;
|
||
|
map['reason'] = _reason;
|
||
|
map['isSubscribe'] = _isSubscribe;
|
||
|
map['subcribeTime'] = _subcribeTime;
|
||
|
if (_addressExt != null) {
|
||
|
map['addressExt'] = _addressExt.toJson();
|
||
|
}
|
||
|
map['contactsExtList'] = _contactsExtList;
|
||
|
if (_memberInfo != null) {
|
||
|
map['memberInfo'] = _memberInfo.toJson();
|
||
|
}
|
||
|
if (_payRecordList != null) {
|
||
|
map['payRecordList'] = _payRecordList.map((v) => v.toJson()).toList();
|
||
|
}
|
||
|
return map;
|
||
|
}
|
||
|
|
||
|
}
|
||
|
|
||
|
/// id : "1705059881448374272"
|
||
|
/// createTime : "2023-09-22 11:22:09"
|
||
|
/// createUser : "1695008923246919680"
|
||
|
/// updateTime : "2023-09-22 11:22:09"
|
||
|
/// updateUser : "1695008923246919680"
|
||
|
/// orderId : "1705059878256508928"
|
||
|
/// type : 4
|
||
|
/// amount : "8.28"
|
||
|
/// refundAmount : "0.00"
|
||
|
/// state : 1
|
||
|
/// refId : "1705059881398042624"
|
||
|
/// isDelete : false
|
||
|
/// tenantCode : null
|
||
|
|
||
|
class PayRecordList {
|
||
|
PayRecordList({
|
||
|
String id,
|
||
|
String createTime,
|
||
|
String createUser,
|
||
|
String updateTime,
|
||
|
String updateUser,
|
||
|
String orderId,
|
||
|
num type,
|
||
|
String amount,
|
||
|
String refundAmount,
|
||
|
num state,
|
||
|
String refId,
|
||
|
bool isDelete,
|
||
|
dynamic tenantCode,}){
|
||
|
_id = id;
|
||
|
_createTime = createTime;
|
||
|
_createUser = createUser;
|
||
|
_updateTime = updateTime;
|
||
|
_updateUser = updateUser;
|
||
|
_orderId = orderId;
|
||
|
_type = type;
|
||
|
_amount = amount;
|
||
|
_refundAmount = refundAmount;
|
||
|
_state = state;
|
||
|
_refId = refId;
|
||
|
_isDelete = isDelete;
|
||
|
_tenantCode = tenantCode;
|
||
|
}
|
||
|
|
||
|
PayRecordList.fromJson(dynamic json) {
|
||
|
_id = json['id'];
|
||
|
_createTime = json['createTime'];
|
||
|
_createUser = json['createUser'];
|
||
|
_updateTime = json['updateTime'];
|
||
|
_updateUser = json['updateUser'];
|
||
|
_orderId = json['orderId'];
|
||
|
_type = json['type'];
|
||
|
_amount = json['amount'];
|
||
|
_refundAmount = json['refundAmount'];
|
||
|
_state = json['state'];
|
||
|
_refId = json['refId'];
|
||
|
_isDelete = json['isDelete'];
|
||
|
_tenantCode = json['tenantCode'];
|
||
|
}
|
||
|
String _id;
|
||
|
String _createTime;
|
||
|
String _createUser;
|
||
|
String _updateTime;
|
||
|
String _updateUser;
|
||
|
String _orderId;
|
||
|
num _type;
|
||
|
String _amount;
|
||
|
String _refundAmount;
|
||
|
num _state;
|
||
|
String _refId;
|
||
|
bool _isDelete;
|
||
|
dynamic _tenantCode;
|
||
|
PayRecordList copyWith({ String id,
|
||
|
String createTime,
|
||
|
String createUser,
|
||
|
String updateTime,
|
||
|
String updateUser,
|
||
|
String orderId,
|
||
|
num type,
|
||
|
String amount,
|
||
|
String refundAmount,
|
||
|
num state,
|
||
|
String refId,
|
||
|
bool isDelete,
|
||
|
dynamic tenantCode,
|
||
|
}) => PayRecordList( id: id ?? _id,
|
||
|
createTime: createTime ?? _createTime,
|
||
|
createUser: createUser ?? _createUser,
|
||
|
updateTime: updateTime ?? _updateTime,
|
||
|
updateUser: updateUser ?? _updateUser,
|
||
|
orderId: orderId ?? _orderId,
|
||
|
type: type ?? _type,
|
||
|
amount: amount ?? _amount,
|
||
|
refundAmount: refundAmount ?? _refundAmount,
|
||
|
state: state ?? _state,
|
||
|
refId: refId ?? _refId,
|
||
|
isDelete: isDelete ?? _isDelete,
|
||
|
tenantCode: tenantCode ?? _tenantCode,
|
||
|
);
|
||
|
String get id => _id;
|
||
|
String get createTime => _createTime;
|
||
|
String get createUser => _createUser;
|
||
|
String get updateTime => _updateTime;
|
||
|
String get updateUser => _updateUser;
|
||
|
String get orderId => _orderId;
|
||
|
num get type => _type;
|
||
|
String get amount => _amount;
|
||
|
String get refundAmount => _refundAmount;
|
||
|
num get state => _state;
|
||
|
String get refId => _refId;
|
||
|
bool get isDelete => _isDelete;
|
||
|
dynamic get tenantCode => _tenantCode;
|
||
|
|
||
|
Map<String, dynamic> toJson() {
|
||
|
final map = <String, dynamic>{};
|
||
|
map['id'] = _id;
|
||
|
map['createTime'] = _createTime;
|
||
|
map['createUser'] = _createUser;
|
||
|
map['updateTime'] = _updateTime;
|
||
|
map['updateUser'] = _updateUser;
|
||
|
map['orderId'] = _orderId;
|
||
|
map['type'] = _type;
|
||
|
map['amount'] = _amount;
|
||
|
map['refundAmount'] = _refundAmount;
|
||
|
map['state'] = _state;
|
||
|
map['refId'] = _refId;
|
||
|
map['isDelete'] = _isDelete;
|
||
|
map['tenantCode'] = _tenantCode;
|
||
|
return map;
|
||
|
}
|
||
|
|
||
|
}
|
||
|
|
||
|
/// mid : "1695008923246919680"
|
||
|
/// name : "哈哈哈"
|
||
|
/// phone : "13052919193"
|
||
|
/// mark : null
|
||
|
|
||
|
class MemberInfo {
|
||
|
MemberInfo({
|
||
|
String mid,
|
||
|
String name,
|
||
|
String phone,
|
||
|
dynamic mark,}){
|
||
|
_mid = mid;
|
||
|
_name = name;
|
||
|
_phone = phone;
|
||
|
_mark = mark;
|
||
|
}
|
||
|
|
||
|
MemberInfo.fromJson(dynamic json) {
|
||
|
_mid = json['mid'];
|
||
|
_name = json['name'];
|
||
|
_phone = json['phone'];
|
||
|
_mark = json['mark'];
|
||
|
}
|
||
|
String _mid;
|
||
|
String _name;
|
||
|
String _phone;
|
||
|
dynamic _mark;
|
||
|
MemberInfo copyWith({ String mid,
|
||
|
String name,
|
||
|
String phone,
|
||
|
dynamic mark,
|
||
|
}) => MemberInfo( mid: mid ?? _mid,
|
||
|
name: name ?? _name,
|
||
|
phone: phone ?? _phone,
|
||
|
mark: mark ?? _mark,
|
||
|
);
|
||
|
String get mid => _mid;
|
||
|
String get name => _name;
|
||
|
String get phone => _phone;
|
||
|
dynamic get mark => _mark;
|
||
|
|
||
|
Map<String, dynamic> toJson() {
|
||
|
final map = <String, dynamic>{};
|
||
|
map['mid'] = _mid;
|
||
|
map['name'] = _name;
|
||
|
map['phone'] = _phone;
|
||
|
map['mark'] = _mark;
|
||
|
return map;
|
||
|
}
|
||
|
|
||
|
}
|
||
|
|
||
|
/// addressId : null
|
||
|
/// country : null
|
||
|
/// countryId : null
|
||
|
/// province : "湖北省"
|
||
|
/// provinceId : null
|
||
|
/// city : "武汉市"
|
||
|
/// cityId : null
|
||
|
/// district : "汉口区"
|
||
|
/// districtId : null
|
||
|
/// cityInfo : null
|
||
|
/// address : "湖北省武汉市江汉区万松街道青年路招银大厦"
|
||
|
/// recName : null
|
||
|
/// recMobile : null
|
||
|
/// longitude : "114.263242"
|
||
|
/// latitude : "30.593863"
|
||
|
|
||
|
class AddressExt {
|
||
|
AddressExt({
|
||
|
dynamic addressId,
|
||
|
dynamic country,
|
||
|
dynamic countryId,
|
||
|
String province,
|
||
|
dynamic provinceId,
|
||
|
String city,
|
||
|
dynamic cityId,
|
||
|
String district,
|
||
|
dynamic districtId,
|
||
|
dynamic cityInfo,
|
||
|
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;
|
||
|
_cityInfo = cityInfo;
|
||
|
_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'];
|
||
|
_cityInfo = json['cityInfo'];
|
||
|
_address = json['address'];
|
||
|
_recName = json['recName'];
|
||
|
_recMobile = json['recMobile'];
|
||
|
_longitude = json['longitude'];
|
||
|
_latitude = json['latitude'];
|
||
|
}
|
||
|
dynamic _addressId;
|
||
|
dynamic _country;
|
||
|
dynamic _countryId;
|
||
|
String _province;
|
||
|
dynamic _provinceId;
|
||
|
String _city;
|
||
|
dynamic _cityId;
|
||
|
String _district;
|
||
|
dynamic _districtId;
|
||
|
dynamic _cityInfo;
|
||
|
String _address;
|
||
|
dynamic _recName;
|
||
|
dynamic _recMobile;
|
||
|
String _longitude;
|
||
|
String _latitude;
|
||
|
AddressExt copyWith({ dynamic addressId,
|
||
|
dynamic country,
|
||
|
dynamic countryId,
|
||
|
String province,
|
||
|
dynamic provinceId,
|
||
|
String city,
|
||
|
dynamic cityId,
|
||
|
String district,
|
||
|
dynamic districtId,
|
||
|
dynamic cityInfo,
|
||
|
String address,
|
||
|
dynamic recName,
|
||
|
dynamic recMobile,
|
||
|
String longitude,
|
||
|
String latitude,
|
||
|
}) => AddressExt( addressId: addressId ?? _addressId,
|
||
|
country: country ?? _country,
|
||
|
countryId: countryId ?? _countryId,
|
||
|
province: province ?? _province,
|
||
|
provinceId: provinceId ?? _provinceId,
|
||
|
city: city ?? _city,
|
||
|
cityId: cityId ?? _cityId,
|
||
|
district: district ?? _district,
|
||
|
districtId: districtId ?? _districtId,
|
||
|
cityInfo: cityInfo ?? _cityInfo,
|
||
|
address: address ?? _address,
|
||
|
recName: recName ?? _recName,
|
||
|
recMobile: recMobile ?? _recMobile,
|
||
|
longitude: longitude ?? _longitude,
|
||
|
latitude: latitude ?? _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;
|
||
|
dynamic get cityInfo => _cityInfo;
|
||
|
String get address => _address;
|
||
|
dynamic get recName => _recName;
|
||
|
dynamic get recMobile => _recMobile;
|
||
|
String get longitude => _longitude;
|
||
|
String get latitude => _latitude;
|
||
|
|
||
|
Map<String, dynamic> toJson() {
|
||
|
final 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['cityInfo'] = _cityInfo;
|
||
|
map['address'] = _address;
|
||
|
map['recName'] = _recName;
|
||
|
map['recMobile'] = _recMobile;
|
||
|
map['longitude'] = _longitude;
|
||
|
map['latitude'] = _latitude;
|
||
|
return map;
|
||
|
}
|
||
|
|
||
|
}
|
||
|
|
||
|
/// id : "1705059878650773504"
|
||
|
/// createTime : "2023-09-22 11:22:08"
|
||
|
/// createUser : "1695008923246919680"
|
||
|
/// updateTime : "2023-09-22 11:22:08"
|
||
|
/// updateUser : "1695008923246919680"
|
||
|
/// tenantCode : "1195"
|
||
|
/// storeId : "1645691756009750528"
|
||
|
/// orderId : "1705059878256508928"
|
||
|
/// actInfo : null
|
||
|
/// productId : "1685953238345449472"
|
||
|
/// productName : "台18茗茶"
|
||
|
/// skuId : "1689482412884492288"
|
||
|
/// skuNameStr : "700ml 温热 七分糖"
|
||
|
/// skuImg : "https://pos.upload.lotus-wallet.com/1195/2023/08/e08f6297-06dd-4128-b21d-20930018df03.jpg"
|
||
|
/// buyNum : 1
|
||
|
/// refundNum : 0
|
||
|
/// type : 0
|
||
|
/// reason : null
|
||
|
/// weight : 0.0
|
||
|
/// applyPrice : "9.00"
|
||
|
/// sellPrice : "9.00"
|
||
|
/// postPay : "0.00"
|
||
|
/// isDelete : 0
|
||
|
/// discountAmount : "0.72"
|
||
|
/// discountPercent : 92
|
||
|
/// status : true
|
||
|
/// batch : 1
|
||
|
/// deliveries : 0
|
||
|
/// ticketType : ""
|
||
|
/// ticketDays : "0"
|
||
|
/// takeType : null
|
||
|
/// skuTickets : []
|
||
|
/// ticketStyle : ""
|
||
|
/// setMealDataList : []
|
||
|
/// packagingFee : "0.00"
|
||
|
|
||
|
class OrderProductDtoList {
|
||
|
OrderProductDtoList({
|
||
|
String id,
|
||
|
String createTime,
|
||
|
String createUser,
|
||
|
String updateTime,
|
||
|
String updateUser,
|
||
|
String tenantCode,
|
||
|
String storeId,
|
||
|
String orderId,
|
||
|
dynamic actInfo,
|
||
|
String productId,
|
||
|
String productName,
|
||
|
String skuId,
|
||
|
String skuNameStr,
|
||
|
String skuImg,
|
||
|
num buyNum,
|
||
|
num refundNum,
|
||
|
num type,
|
||
|
dynamic reason,
|
||
|
num weight,
|
||
|
String applyPrice,
|
||
|
String sellPrice,
|
||
|
String postPay,
|
||
|
num isDelete,
|
||
|
String discountAmount,
|
||
|
num discountPercent,
|
||
|
bool status,
|
||
|
num batch,
|
||
|
num deliveries,
|
||
|
String ticketType,
|
||
|
String ticketDays,
|
||
|
dynamic takeType,
|
||
|
List<dynamic> skuTickets,
|
||
|
String ticketStyle,
|
||
|
List<dynamic> setMealDataList,
|
||
|
String packagingFee,}){
|
||
|
_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;
|
||
|
_deliveries = deliveries;
|
||
|
_ticketType = ticketType;
|
||
|
_ticketDays = ticketDays;
|
||
|
_takeType = takeType;
|
||
|
_skuTickets = skuTickets;
|
||
|
_ticketStyle = ticketStyle;
|
||
|
_setMealDataList = setMealDataList;
|
||
|
_packagingFee = packagingFee;
|
||
|
}
|
||
|
|
||
|
OrderProductDtoList.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'];
|
||
|
_actInfo = json['actInfo'];
|
||
|
_productId = json['productId'];
|
||
|
_productName = json['productName'];
|
||
|
_skuId = json['skuId'];
|
||
|
_skuNameStr = json['skuNameStr'];
|
||
|
_skuImg = json['skuImg'];
|
||
|
_buyNum = json['buyNum'];
|
||
|
_refundNum = json['refundNum'];
|
||
|
_type = json['type'];
|
||
|
_reason = json['reason'];
|
||
|
_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'];
|
||
|
_deliveries = json['deliveries'];
|
||
|
_ticketType = json['ticketType'];
|
||
|
_ticketDays = json['ticketDays'];
|
||
|
_takeType = json['takeType'];
|
||
|
// if (json['skuTickets'] != null) {
|
||
|
// _skuTickets = [];
|
||
|
// json['skuTickets'].forEach((v) {
|
||
|
// _skuTickets.add(Dynamic.fromJson(v));
|
||
|
// });
|
||
|
// }
|
||
|
_ticketStyle = json['ticketStyle'];
|
||
|
// if (json['setMealDataList'] != null) {
|
||
|
// _setMealDataList = [];
|
||
|
// json['setMealDataList'].forEach((v) {
|
||
|
// _setMealDataList.add(Dynamic.fromJson(v));
|
||
|
// });
|
||
|
// }
|
||
|
_packagingFee = json['packagingFee'];
|
||
|
}
|
||
|
String _id;
|
||
|
String _createTime;
|
||
|
String _createUser;
|
||
|
String _updateTime;
|
||
|
String _updateUser;
|
||
|
String _tenantCode;
|
||
|
String _storeId;
|
||
|
String _orderId;
|
||
|
dynamic _actInfo;
|
||
|
String _productId;
|
||
|
String _productName;
|
||
|
String _skuId;
|
||
|
String _skuNameStr;
|
||
|
String _skuImg;
|
||
|
num _buyNum;
|
||
|
num _refundNum;
|
||
|
num _type;
|
||
|
dynamic _reason;
|
||
|
num _weight;
|
||
|
String _applyPrice;
|
||
|
String _sellPrice;
|
||
|
String _postPay;
|
||
|
num _isDelete;
|
||
|
String _discountAmount;
|
||
|
num _discountPercent;
|
||
|
bool _status;
|
||
|
num _batch;
|
||
|
num _deliveries;
|
||
|
String _ticketType;
|
||
|
String _ticketDays;
|
||
|
dynamic _takeType;
|
||
|
List<dynamic> _skuTickets;
|
||
|
String _ticketStyle;
|
||
|
List<dynamic> _setMealDataList;
|
||
|
String _packagingFee;
|
||
|
OrderProductDtoList copyWith({ String id,
|
||
|
String createTime,
|
||
|
String createUser,
|
||
|
String updateTime,
|
||
|
String updateUser,
|
||
|
String tenantCode,
|
||
|
String storeId,
|
||
|
String orderId,
|
||
|
dynamic actInfo,
|
||
|
String productId,
|
||
|
String productName,
|
||
|
String skuId,
|
||
|
String skuNameStr,
|
||
|
String skuImg,
|
||
|
num buyNum,
|
||
|
num refundNum,
|
||
|
num type,
|
||
|
dynamic reason,
|
||
|
num weight,
|
||
|
String applyPrice,
|
||
|
String sellPrice,
|
||
|
String postPay,
|
||
|
num isDelete,
|
||
|
String discountAmount,
|
||
|
num discountPercent,
|
||
|
bool status,
|
||
|
num batch,
|
||
|
num deliveries,
|
||
|
String ticketType,
|
||
|
String ticketDays,
|
||
|
dynamic takeType,
|
||
|
List<dynamic> skuTickets,
|
||
|
String ticketStyle,
|
||
|
List<dynamic> setMealDataList,
|
||
|
String packagingFee,
|
||
|
}) => OrderProductDtoList( id: id ?? _id,
|
||
|
createTime: createTime ?? _createTime,
|
||
|
createUser: createUser ?? _createUser,
|
||
|
updateTime: updateTime ?? _updateTime,
|
||
|
updateUser: updateUser ?? _updateUser,
|
||
|
tenantCode: tenantCode ?? _tenantCode,
|
||
|
storeId: storeId ?? _storeId,
|
||
|
orderId: orderId ?? _orderId,
|
||
|
actInfo: actInfo ?? _actInfo,
|
||
|
productId: productId ?? _productId,
|
||
|
productName: productName ?? _productName,
|
||
|
skuId: skuId ?? _skuId,
|
||
|
skuNameStr: skuNameStr ?? _skuNameStr,
|
||
|
skuImg: skuImg ?? _skuImg,
|
||
|
buyNum: buyNum ?? _buyNum,
|
||
|
refundNum: refundNum ?? _refundNum,
|
||
|
type: type ?? _type,
|
||
|
reason: reason ?? _reason,
|
||
|
weight: weight ?? _weight,
|
||
|
applyPrice: applyPrice ?? _applyPrice,
|
||
|
sellPrice: sellPrice ?? _sellPrice,
|
||
|
postPay: postPay ?? _postPay,
|
||
|
isDelete: isDelete ?? _isDelete,
|
||
|
discountAmount: discountAmount ?? _discountAmount,
|
||
|
discountPercent: discountPercent ?? _discountPercent,
|
||
|
status: status ?? _status,
|
||
|
batch: batch ?? _batch,
|
||
|
deliveries: deliveries ?? _deliveries,
|
||
|
ticketType: ticketType ?? _ticketType,
|
||
|
ticketDays: ticketDays ?? _ticketDays,
|
||
|
takeType: takeType ?? _takeType,
|
||
|
skuTickets: skuTickets ?? _skuTickets,
|
||
|
ticketStyle: ticketStyle ?? _ticketStyle,
|
||
|
setMealDataList: setMealDataList ?? _setMealDataList,
|
||
|
packagingFee: packagingFee ?? _packagingFee,
|
||
|
);
|
||
|
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 orderId => _orderId;
|
||
|
dynamic get actInfo => _actInfo;
|
||
|
String get productId => _productId;
|
||
|
String get productName => _productName;
|
||
|
String get skuId => _skuId;
|
||
|
String get skuNameStr => _skuNameStr;
|
||
|
String get skuImg => _skuImg;
|
||
|
num get buyNum => _buyNum;
|
||
|
num get refundNum => _refundNum;
|
||
|
num get type => _type;
|
||
|
dynamic get reason => _reason;
|
||
|
num get weight => _weight;
|
||
|
String get applyPrice => _applyPrice;
|
||
|
String get sellPrice => _sellPrice;
|
||
|
String get postPay => _postPay;
|
||
|
num get isDelete => _isDelete;
|
||
|
String get discountAmount => _discountAmount;
|
||
|
num get discountPercent => _discountPercent;
|
||
|
bool get status => _status;
|
||
|
num get batch => _batch;
|
||
|
num get deliveries => _deliveries;
|
||
|
String get ticketType => _ticketType;
|
||
|
String get ticketDays => _ticketDays;
|
||
|
dynamic get takeType => _takeType;
|
||
|
List<dynamic> get skuTickets => _skuTickets;
|
||
|
String get ticketStyle => _ticketStyle;
|
||
|
List<dynamic> get setMealDataList => _setMealDataList;
|
||
|
String get packagingFee => _packagingFee;
|
||
|
|
||
|
Map<String, dynamic> toJson() {
|
||
|
final 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['actInfo'] = _actInfo;
|
||
|
map['productId'] = _productId;
|
||
|
map['productName'] = _productName;
|
||
|
map['skuId'] = _skuId;
|
||
|
map['skuNameStr'] = _skuNameStr;
|
||
|
map['skuImg'] = _skuImg;
|
||
|
map['buyNum'] = _buyNum;
|
||
|
map['refundNum'] = _refundNum;
|
||
|
map['type'] = _type;
|
||
|
map['reason'] = _reason;
|
||
|
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;
|
||
|
map['deliveries'] = _deliveries;
|
||
|
map['ticketType'] = _ticketType;
|
||
|
map['ticketDays'] = _ticketDays;
|
||
|
map['takeType'] = _takeType;
|
||
|
if (_skuTickets != null) {
|
||
|
map['skuTickets'] = _skuTickets.map((v) => v.toJson()).toList();
|
||
|
}
|
||
|
map['ticketStyle'] = _ticketStyle;
|
||
|
if (_setMealDataList != null) {
|
||
|
map['setMealDataList'] = _setMealDataList.map((v) => v.toJson()).toList();
|
||
|
}
|
||
|
map['packagingFee'] = _packagingFee;
|
||
|
return map;
|
||
|
}
|
||
|
|
||
|
}
|