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.
329 lines
13 KiB
329 lines
13 KiB
/// records : [{"id":"1726114100938801152","rechargeType":2,"rechargeName":"微信","source":0,"createTime":"2023-11-19 13:44:06","createTimeFormat":null,"createPerson":"","phone":"18537827823","tenantCode":"1195","storeName":"","rechargeMoney":"50.00","giftdMoney":"20.00","sumMoney":"70.00","createMemberId":null,"rechargePreferentialId":null,"rechargeStatus":0,"refuseReason":null,"balance":"0.00","realRecharge":"0.00"},{"id":"1726114054612713472","rechargeType":2,"rechargeName":"微信","source":0,"createTime":"2023-11-19 13:43:55","createTimeFormat":null,"createPerson":"","phone":"18537827823","tenantCode":"1195","storeName":"","rechargeMoney":"50.00","giftdMoney":"20.00","sumMoney":"70.00","createMemberId":null,"rechargePreferentialId":null,"rechargeStatus":0,"refuseReason":null,"balance":"0.00","realRecharge":"0.00"},{"id":"1726113414083772416","rechargeType":2,"rechargeName":"微信","source":0,"createTime":"2023-11-19 13:41:22","createTimeFormat":null,"createPerson":"","phone":"18537827823","tenantCode":"1195","storeName":"","rechargeMoney":"50.00","giftdMoney":"20.00","sumMoney":"70.00","createMemberId":null,"rechargePreferentialId":null,"rechargeStatus":0,"refuseReason":null,"balance":"0.00","realRecharge":"0.00"},{"id":"1726113338053623808","rechargeType":2,"rechargeName":"微信","source":0,"createTime":"2023-11-19 13:41:04","createTimeFormat":null,"createPerson":"","phone":"18537827823","tenantCode":"1195","storeName":"","rechargeMoney":"50.00","giftdMoney":"20.00","sumMoney":"70.00","createMemberId":null,"rechargePreferentialId":null,"rechargeStatus":0,"refuseReason":null,"balance":"0.00","realRecharge":"0.00"},{"id":"1726113287562592256","rechargeType":2,"rechargeName":"微信","source":0,"createTime":"2023-11-19 13:40:52","createTimeFormat":null,"createPerson":"","phone":"18537827823","tenantCode":"1195","storeName":"","rechargeMoney":"50.00","giftdMoney":"20.00","sumMoney":"70.00","createMemberId":null,"rechargePreferentialId":null,"rechargeStatus":0,"refuseReason":null,"balance":"0.00","realRecharge":"0.00"},{"id":"1725756687412887552","rechargeType":2,"rechargeName":"微信","source":0,"createTime":"2023-11-18 14:03:52","createTimeFormat":null,"createPerson":"","phone":"17813120251","tenantCode":"1195","storeName":"","rechargeMoney":"50.00","giftdMoney":"20.00","sumMoney":"70.00","createMemberId":null,"rechargePreferentialId":null,"rechargeStatus":0,"refuseReason":null,"balance":"27.00","realRecharge":"27.00"},{"id":"1725730560917110784","rechargeType":2,"rechargeName":"微信","source":0,"createTime":"2023-11-18 12:20:03","createTimeFormat":null,"createPerson":"","phone":"15837166590","tenantCode":"1195","storeName":"","rechargeMoney":"50.00","giftdMoney":"20.00","sumMoney":"70.00","createMemberId":null,"rechargePreferentialId":null,"rechargeStatus":0,"refuseReason":null,"balance":"39.60","realRecharge":"39.60"},{"id":"1724976129296564224","rechargeType":2,"rechargeName":"微信","source":0,"createTime":"2023-11-16 10:22:12","createTimeFormat":null,"createPerson":"","phone":"15836615333","tenantCode":"1195","storeName":"","rechargeMoney":"50.00","giftdMoney":"20.00","sumMoney":"70.00","createMemberId":null,"rechargePreferentialId":null,"rechargeStatus":0,"refuseReason":null,"balance":"58.00","realRecharge":"50.00"},{"id":"1723958918691946496","rechargeType":2,"rechargeName":"微信","source":0,"createTime":"2023-11-13 15:00:10","createTimeFormat":null,"createPerson":"","phone":"17813120251","tenantCode":"1195","storeName":"","rechargeMoney":"50.00","giftdMoney":"20.00","sumMoney":"70.00","createMemberId":null,"rechargePreferentialId":null,"rechargeStatus":0,"refuseReason":null,"balance":"27.00","realRecharge":"27.00"},{"id":"1723682257861869568","rechargeType":1,"rechargeName":"现金","source":1,"createTime":"2023-11-12 20:40:49","createTimeFormat":null,"createPerson":"","phone":"13253333210","tenantCode":"1195","storeName":"台北牛肉面","rechargeMoney":"0.00","giftdMoney":"500.00","sumMoney":"500.00","createMemberId":null,"rechargePreferentialId":null,"rechargeStatus":0,"refuseReason":null,"balance":"1000.00","realRecharge":"0.00"}] |
|
/// total : "21" |
|
/// size : "10" |
|
/// current : "1" |
|
/// orders : [{"column":"id","asc":false}] |
|
/// hitCount : false |
|
/// searchCount : true |
|
/// pages : "3" |
|
|
|
class RechargeFlowList { |
|
RechargeFlowList({ |
|
List<Records> records, |
|
String total, |
|
String size, |
|
String current, |
|
List<Orders> orders, |
|
bool hitCount, |
|
bool searchCount, |
|
String pages,}){ |
|
_records = records; |
|
_total = total; |
|
_size = size; |
|
_current = current; |
|
_orders = orders; |
|
_hitCount = hitCount; |
|
_searchCount = searchCount; |
|
_pages = pages; |
|
} |
|
|
|
RechargeFlowList.fromJson(dynamic json) { |
|
if (json['records'] != null) { |
|
_records = []; |
|
json['records'].forEach((v) { |
|
_records.add(Records.fromJson(v)); |
|
}); |
|
} |
|
_total = json['total']; |
|
_size = json['size']; |
|
_current = json['current']; |
|
if (json['orders'] != null) { |
|
_orders = []; |
|
json['orders'].forEach((v) { |
|
_orders.add(Orders.fromJson(v)); |
|
}); |
|
} |
|
_hitCount = json['hitCount']; |
|
_searchCount = json['searchCount']; |
|
_pages = json['pages']; |
|
} |
|
List<Records> _records; |
|
String _total; |
|
String _size; |
|
String _current; |
|
List<Orders> _orders; |
|
bool _hitCount; |
|
bool _searchCount; |
|
String _pages; |
|
RechargeFlowList copyWith({ List<Records> records, |
|
String total, |
|
String size, |
|
String current, |
|
List<Orders> orders, |
|
bool hitCount, |
|
bool searchCount, |
|
String pages, |
|
}) => RechargeFlowList( records: records ?? _records, |
|
total: total ?? _total, |
|
size: size ?? _size, |
|
current: current ?? _current, |
|
orders: orders ?? _orders, |
|
hitCount: hitCount ?? _hitCount, |
|
searchCount: searchCount ?? _searchCount, |
|
pages: pages ?? _pages, |
|
); |
|
List<Records> get records => _records; |
|
String get total => _total; |
|
String get size => _size; |
|
String get current => _current; |
|
List<Orders> get orders => _orders; |
|
bool get hitCount => _hitCount; |
|
bool get searchCount => _searchCount; |
|
String get pages => _pages; |
|
|
|
Map<String, dynamic> toJson() { |
|
final map = <String, dynamic>{}; |
|
if (_records != null) { |
|
map['records'] = _records.map((v) => v.toJson()).toList(); |
|
} |
|
map['total'] = _total; |
|
map['size'] = _size; |
|
map['current'] = _current; |
|
if (_orders != null) { |
|
map['orders'] = _orders.map((v) => v.toJson()).toList(); |
|
} |
|
map['hitCount'] = _hitCount; |
|
map['searchCount'] = _searchCount; |
|
map['pages'] = _pages; |
|
return map; |
|
} |
|
|
|
} |
|
|
|
/// column : "id" |
|
/// asc : false |
|
|
|
class Orders { |
|
Orders({ |
|
String column, |
|
bool asc,}){ |
|
_column = column; |
|
_asc = asc; |
|
} |
|
|
|
Orders.fromJson(dynamic json) { |
|
_column = json['column']; |
|
_asc = json['asc']; |
|
} |
|
String _column; |
|
bool _asc; |
|
Orders copyWith({ String column, |
|
bool asc, |
|
}) => Orders( column: column ?? _column, |
|
asc: asc ?? _asc, |
|
); |
|
String get column => _column; |
|
bool get asc => _asc; |
|
|
|
Map<String, dynamic> toJson() { |
|
final map = <String, dynamic>{}; |
|
map['column'] = _column; |
|
map['asc'] = _asc; |
|
return map; |
|
} |
|
|
|
} |
|
|
|
/// id : "1726114100938801152" |
|
/// rechargeType : 2 |
|
/// rechargeName : "微信" |
|
/// source : 0 |
|
/// createTime : "2023-11-19 13:44:06" |
|
/// createTimeFormat : null |
|
/// createPerson : "" |
|
/// phone : "18537827823" |
|
/// tenantCode : "1195" |
|
/// storeName : "" |
|
/// rechargeMoney : "50.00" |
|
/// giftdMoney : "20.00" |
|
/// sumMoney : "70.00" |
|
/// createMemberId : null |
|
/// rechargePreferentialId : null |
|
/// rechargeStatus : 0 |
|
/// refuseReason : null |
|
/// balance : "0.00" |
|
/// realRecharge : "0.00" |
|
|
|
class Records { |
|
Records({ |
|
String id, |
|
num rechargeType, |
|
String rechargeName, |
|
num source, |
|
String createTime, |
|
dynamic createTimeFormat, |
|
String createPerson, |
|
String phone, |
|
String tenantCode, |
|
String storeName, |
|
String rechargeMoney, |
|
String giftdMoney, |
|
String sumMoney, |
|
dynamic createMemberId, |
|
dynamic rechargePreferentialId, |
|
num rechargeStatus, |
|
dynamic refuseReason, |
|
String balance, |
|
String realRecharge,}){ |
|
_id = id; |
|
_rechargeType = rechargeType; |
|
_rechargeName = rechargeName; |
|
_source = source; |
|
_createTime = createTime; |
|
_createTimeFormat = createTimeFormat; |
|
_createPerson = createPerson; |
|
_phone = phone; |
|
_tenantCode = tenantCode; |
|
_storeName = storeName; |
|
_rechargeMoney = rechargeMoney; |
|
_giftdMoney = giftdMoney; |
|
_sumMoney = sumMoney; |
|
_createMemberId = createMemberId; |
|
_rechargePreferentialId = rechargePreferentialId; |
|
_rechargeStatus = rechargeStatus; |
|
_refuseReason = refuseReason; |
|
_balance = balance; |
|
_realRecharge = realRecharge; |
|
} |
|
|
|
Records.fromJson(dynamic json) { |
|
_id = json['id']; |
|
_rechargeType = json['rechargeType']; |
|
_rechargeName = json['rechargeName']; |
|
_source = json['source']; |
|
_createTime = json['createTime']; |
|
_createTimeFormat = json['createTimeFormat']; |
|
_createPerson = json['createPerson']; |
|
_phone = json['phone']; |
|
_tenantCode = json['tenantCode']; |
|
_storeName = json['storeName']; |
|
_rechargeMoney = json['rechargeMoney']; |
|
_giftdMoney = json['giftdMoney']; |
|
_sumMoney = json['sumMoney']; |
|
_createMemberId = json['createMemberId']; |
|
_rechargePreferentialId = json['rechargePreferentialId']; |
|
_rechargeStatus = json['rechargeStatus']; |
|
_refuseReason = json['refuseReason']; |
|
_balance = json['balance']; |
|
_realRecharge = json['realRecharge']; |
|
} |
|
String _id; |
|
num _rechargeType; |
|
String _rechargeName; |
|
num _source; |
|
String _createTime; |
|
dynamic _createTimeFormat; |
|
String _createPerson; |
|
String _phone; |
|
String _tenantCode; |
|
String _storeName; |
|
String _rechargeMoney; |
|
String _giftdMoney; |
|
String _sumMoney; |
|
dynamic _createMemberId; |
|
dynamic _rechargePreferentialId; |
|
num _rechargeStatus; |
|
dynamic _refuseReason; |
|
String _balance; |
|
String _realRecharge; |
|
Records copyWith({ String id, |
|
num rechargeType, |
|
String rechargeName, |
|
num source, |
|
String createTime, |
|
dynamic createTimeFormat, |
|
String createPerson, |
|
String phone, |
|
String tenantCode, |
|
String storeName, |
|
String rechargeMoney, |
|
String giftdMoney, |
|
String sumMoney, |
|
dynamic createMemberId, |
|
dynamic rechargePreferentialId, |
|
num rechargeStatus, |
|
dynamic refuseReason, |
|
String balance, |
|
String realRecharge, |
|
}) => Records( id: id ?? _id, |
|
rechargeType: rechargeType ?? _rechargeType, |
|
rechargeName: rechargeName ?? _rechargeName, |
|
source: source ?? _source, |
|
createTime: createTime ?? _createTime, |
|
createTimeFormat: createTimeFormat ?? _createTimeFormat, |
|
createPerson: createPerson ?? _createPerson, |
|
phone: phone ?? _phone, |
|
tenantCode: tenantCode ?? _tenantCode, |
|
storeName: storeName ?? _storeName, |
|
rechargeMoney: rechargeMoney ?? _rechargeMoney, |
|
giftdMoney: giftdMoney ?? _giftdMoney, |
|
sumMoney: sumMoney ?? _sumMoney, |
|
createMemberId: createMemberId ?? _createMemberId, |
|
rechargePreferentialId: rechargePreferentialId ?? _rechargePreferentialId, |
|
rechargeStatus: rechargeStatus ?? _rechargeStatus, |
|
refuseReason: refuseReason ?? _refuseReason, |
|
balance: balance ?? _balance, |
|
realRecharge: realRecharge ?? _realRecharge, |
|
); |
|
String get id => _id; |
|
num get rechargeType => _rechargeType; |
|
String get rechargeName => _rechargeName; |
|
num get source => _source; |
|
String get createTime => _createTime; |
|
dynamic get createTimeFormat => _createTimeFormat; |
|
String get createPerson => _createPerson; |
|
String get phone => _phone; |
|
String get tenantCode => _tenantCode; |
|
String get storeName => _storeName; |
|
String get rechargeMoney => _rechargeMoney; |
|
String get giftdMoney => _giftdMoney; |
|
String get sumMoney => _sumMoney; |
|
dynamic get createMemberId => _createMemberId; |
|
dynamic get rechargePreferentialId => _rechargePreferentialId; |
|
num get rechargeStatus => _rechargeStatus; |
|
dynamic get refuseReason => _refuseReason; |
|
String get balance => _balance; |
|
String get realRecharge => _realRecharge; |
|
bool _isShow = false; |
|
|
|
bool get isShow => _isShow; |
|
|
|
set isShow(bool value) { |
|
_isShow = value; |
|
} |
|
|
|
Map<String, dynamic> toJson() { |
|
final map = <String, dynamic>{}; |
|
map['id'] = _id; |
|
map['rechargeType'] = _rechargeType; |
|
map['rechargeName'] = _rechargeName; |
|
map['source'] = _source; |
|
map['createTime'] = _createTime; |
|
map['createTimeFormat'] = _createTimeFormat; |
|
map['createPerson'] = _createPerson; |
|
map['phone'] = _phone; |
|
map['tenantCode'] = _tenantCode; |
|
map['storeName'] = _storeName; |
|
map['rechargeMoney'] = _rechargeMoney; |
|
map['giftdMoney'] = _giftdMoney; |
|
map['sumMoney'] = _sumMoney; |
|
map['createMemberId'] = _createMemberId; |
|
map['rechargePreferentialId'] = _rechargePreferentialId; |
|
map['rechargeStatus'] = _rechargeStatus; |
|
map['refuseReason'] = _refuseReason; |
|
map['balance'] = _balance; |
|
map['realRecharge'] = _realRecharge; |
|
return map; |
|
} |
|
|
|
} |