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.
367 lines
14 KiB
367 lines
14 KiB
/// records : [{"id":"1726925231030796288","createTime":"2023-11-21 19:27:14","createUser":"1699083374745878528","updateTime":"2023-11-21 19:27:14","updateUser":"1699083374745878528","mid":"1699083374745878528","linkId":"202311211927130002","pm":0,"title":"商户余额操作","category":"用户消费","type":"商户会员余额支付","number":"58.00","realNumber":"0.00","balance":"32.00","mark":"","status":true,"isDeleted":false,"storeName":"海峡姐妹茶(洛神)","nickname":"","phone":"13938248263","startTime":null,"endTime":null,"tenantCode":null,"storeId":null},{"id":"1726916049208606720","createTime":"2023-11-21 18:50:45","createUser":"1699075203830644736","updateTime":"2023-11-21 18:50:45","updateUser":"1699075203830644736","mid":"1699075203830644736","linkId":"202311211850440002","pm":0,"title":"商户余额操作","category":"用户消费","type":"商户会员余额支付","number":"22.50","realNumber":"0.00","balance":"50.50","mark":"","status":true,"isDeleted":false,"storeName":"台南湾蚵仔煎","nickname":"","phone":"13803841444","startTime":null,"endTime":null,"tenantCode":null,"storeId":null},{"id":"1726913953642053632","createTime":"2023-11-21 18:42:26","createUser":"1699075203830644736","updateTime":"2023-11-21 18:42:26","updateUser":"1699075203830644736","mid":"1699075203830644736","linkId":"202311211842250002","pm":0,"title":"商户余额操作","category":"用户消费","type":"商户会员余额支付","number":"25.00","realNumber":"0.00","balance":"73.00","mark":"","status":true,"isDeleted":false,"storeName":"前进麦味","nickname":"","phone":"13803841444","startTime":null,"endTime":null,"tenantCode":null,"storeId":null},{"id":"1726908739681779712","createTime":"2023-11-21 18:21:43","createUser":"1693622184796225536","updateTime":"2023-11-21 18:21:43","updateUser":"1693622184796225536","mid":"1693622184796225536","linkId":"202311211821410002","pm":0,"title":"商户余额操作","category":"用户消费","type":"商户会员余额支付","number":"15.00","realNumber":"0.00","balance":"38.00","mark":"","status":true,"isDeleted":false,"storeName":"嘉义鸡肉饭","nickname":"张心旷","phone":"18162517594","startTime":null,"endTime":null,"tenantCode":null,"storeId":null},{"id":"1726812435815333888","createTime":"2023-11-21 11:59:02","createUser":"1699272927989465088","updateTime":"2023-11-21 11:59:02","updateUser":"1699272927989465088","mid":"1699272927989465088","linkId":"202311211159010002","pm":0,"title":"商户余额操作","category":"用户消费","type":"特殊活动赠送金额支付","number":"26.00","realNumber":"0.00","balance":"74.00","mark":"","status":true,"isDeleted":false,"storeName":"台南锅烧意面","nickname":"","phone":"15515981657","startTime":null,"endTime":null,"tenantCode":null,"storeId":null},{"id":"1726812193049018368","createTime":"2023-11-21 11:58:04","createUser":"1699272910234976256","updateTime":"2023-11-21 11:58:04","updateUser":"1699272910234976256","mid":"1699272910234976256","linkId":"202311211158030001","pm":0,"title":"商户余额操作","category":"用户消费","type":"商户会员余额支付","number":"23.40","realNumber":"0.00","balance":"26.60","mark":"","status":true,"isDeleted":false,"storeName":"台南锅烧意面","nickname":"","phone":"13592548807","startTime":null,"endTime":null,"tenantCode":null,"storeId":null},{"id":"1726564858045923328","createTime":"2023-11-20 19:35:15","createUser":"1700858271767724032","updateTime":"2023-11-20 19:35:15","updateUser":"1700858271767724032","mid":"1700858271767724032","linkId":"202311201935140002","pm":0,"title":"商户余额操作","category":"用户消费","type":"商户会员余额支付","number":"10.00","realNumber":"0.00","balance":"90.00","mark":"","status":true,"isDeleted":false,"storeName":"前进麦味","nickname":"","phone":"15890630566","startTime":null,"endTime":null,"tenantCode":null,"storeId":null},{"id":"1726564858037534720","createTime":"2023-11-20 19:35:15","createUser":"1700858271767724032","updateTime":"2023-11-20 19:35:15","updateUser":"1700858271767724032","mid":"1700858271767724032","linkId":"202311201935140002","pm":0,"title":"商户余额操作","category":"用户消费","type":"特殊活动赠送金额支付","number":"14.00","realNumber":"0.00","balance":"0.00","mark":"","status":true,"isDeleted":false,"storeName":"前进麦味","nickname":"","phone":"15890630566","startTime":null,"endTime":null,"tenantCode":null,"storeId":null},{"id":"1726561831784284160","createTime":"2023-11-20 19:23:13","createUser":"1700356595696795648","updateTime":"2023-11-20 19:23:13","updateUser":"1700356595696795648","mid":"1700356595696795648","linkId":"202311201923120001","pm":0,"title":"商户余额操作","category":"用户消费","type":"商户会员余额支付","number":"17.00","realNumber":"0.00","balance":"119.60","mark":"","status":true,"isDeleted":false,"storeName":"海峡姐妹茶(奶茶)","nickname":"","phone":"13938290600","startTime":null,"endTime":null,"tenantCode":null,"storeId":null},{"id":"1726561243927412736","createTime":"2023-11-20 19:20:53","createUser":"1700356595696795648","updateTime":"2023-11-20 19:20:53","updateUser":"1700356595696795648","mid":"1700356595696795648","linkId":"202311201920520001","pm":0,"title":"商户余额操作","category":"用户消费","type":"商户会员余额支付","number":"29.00","realNumber":"0.00","balance":"136.60","mark":"","status":true,"isDeleted":false,"storeName":"前进麦味","nickname":"","phone":"13938290600","startTime":null,"endTime":null,"tenantCode":null,"storeId":null}] |
|
/// total : "5617" |
|
/// size : "10" |
|
/// current : "1" |
|
/// orders : [{"column":"id","asc":false}] |
|
/// hitCount : false |
|
/// searchCount : true |
|
/// pages : "562" |
|
|
|
class BalanceChangeList { |
|
BalanceChangeList({ |
|
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; |
|
} |
|
|
|
BalanceChangeList.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; |
|
BalanceChangeList copyWith({ List<Records> records, |
|
String total, |
|
String size, |
|
String current, |
|
List<Orders> orders, |
|
bool hitCount, |
|
bool searchCount, |
|
String pages, |
|
}) => BalanceChangeList( 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 : "1726925231030796288" |
|
/// createTime : "2023-11-21 19:27:14" |
|
/// createUser : "1699083374745878528" |
|
/// updateTime : "2023-11-21 19:27:14" |
|
/// updateUser : "1699083374745878528" |
|
/// mid : "1699083374745878528" |
|
/// linkId : "202311211927130002" |
|
/// pm : 0 |
|
/// title : "商户余额操作" |
|
/// category : "用户消费" |
|
/// type : "商户会员余额支付" |
|
/// number : "58.00" |
|
/// realNumber : "0.00" |
|
/// balance : "32.00" |
|
/// mark : "" |
|
/// status : true |
|
/// isDeleted : false |
|
/// storeName : "海峡姐妹茶(洛神)" |
|
/// nickname : "" |
|
/// phone : "13938248263" |
|
/// startTime : null |
|
/// endTime : null |
|
/// tenantCode : null |
|
/// storeId : null |
|
|
|
class Records { |
|
Records({ |
|
String id, |
|
String createTime, |
|
String createUser, |
|
String updateTime, |
|
String updateUser, |
|
String mid, |
|
String linkId, |
|
num pm, |
|
String title, |
|
String category, |
|
String type, |
|
String number, |
|
String realNumber, |
|
String balance, |
|
String mark, |
|
bool status, |
|
bool isDeleted, |
|
String storeName, |
|
String nickname, |
|
String phone, |
|
dynamic startTime, |
|
dynamic endTime, |
|
dynamic tenantCode, |
|
dynamic storeId,}){ |
|
_id = id; |
|
_createTime = createTime; |
|
_createUser = createUser; |
|
_updateTime = updateTime; |
|
_updateUser = updateUser; |
|
_mid = mid; |
|
_linkId = linkId; |
|
_pm = pm; |
|
_title = title; |
|
_category = category; |
|
_type = type; |
|
_number = number; |
|
_realNumber = realNumber; |
|
_balance = balance; |
|
_mark = mark; |
|
_status = status; |
|
_isDeleted = isDeleted; |
|
_storeName = storeName; |
|
_nickname = nickname; |
|
_phone = phone; |
|
_startTime = startTime; |
|
_endTime = endTime; |
|
_tenantCode = tenantCode; |
|
_storeId = storeId; |
|
} |
|
|
|
Records.fromJson(dynamic json) { |
|
_id = json['id']; |
|
_createTime = json['createTime']; |
|
_createUser = json['createUser']; |
|
_updateTime = json['updateTime']; |
|
_updateUser = json['updateUser']; |
|
_mid = json['mid']; |
|
_linkId = json['linkId']; |
|
_pm = json['pm']; |
|
_title = json['title']; |
|
_category = json['category']; |
|
_type = json['type']; |
|
_number = json['number']; |
|
_realNumber = json['realNumber']; |
|
_balance = json['balance']; |
|
_mark = json['mark']; |
|
_status = json['status']; |
|
_isDeleted = json['isDeleted']; |
|
_storeName = json['storeName']; |
|
_nickname = json['nickname']; |
|
_phone = json['phone']; |
|
_startTime = json['startTime']; |
|
_endTime = json['endTime']; |
|
_tenantCode = json['tenantCode']; |
|
_storeId = json['storeId']; |
|
} |
|
String _id; |
|
String _createTime; |
|
String _createUser; |
|
String _updateTime; |
|
String _updateUser; |
|
String _mid; |
|
String _linkId; |
|
num _pm; |
|
String _title; |
|
String _category; |
|
String _type; |
|
String _number; |
|
String _realNumber; |
|
String _balance; |
|
String _mark; |
|
bool _status; |
|
bool _isDeleted; |
|
String _storeName; |
|
String _nickname; |
|
String _phone; |
|
dynamic _startTime; |
|
dynamic _endTime; |
|
dynamic _tenantCode; |
|
dynamic _storeId; |
|
Records copyWith({ String id, |
|
String createTime, |
|
String createUser, |
|
String updateTime, |
|
String updateUser, |
|
String mid, |
|
String linkId, |
|
num pm, |
|
String title, |
|
String category, |
|
String type, |
|
String number, |
|
String realNumber, |
|
String balance, |
|
String mark, |
|
bool status, |
|
bool isDeleted, |
|
String storeName, |
|
String nickname, |
|
String phone, |
|
dynamic startTime, |
|
dynamic endTime, |
|
dynamic tenantCode, |
|
dynamic storeId, |
|
}) => Records( id: id ?? _id, |
|
createTime: createTime ?? _createTime, |
|
createUser: createUser ?? _createUser, |
|
updateTime: updateTime ?? _updateTime, |
|
updateUser: updateUser ?? _updateUser, |
|
mid: mid ?? _mid, |
|
linkId: linkId ?? _linkId, |
|
pm: pm ?? _pm, |
|
title: title ?? _title, |
|
category: category ?? _category, |
|
type: type ?? _type, |
|
number: number ?? _number, |
|
realNumber: realNumber ?? _realNumber, |
|
balance: balance ?? _balance, |
|
mark: mark ?? _mark, |
|
status: status ?? _status, |
|
isDeleted: isDeleted ?? _isDeleted, |
|
storeName: storeName ?? _storeName, |
|
nickname: nickname ?? _nickname, |
|
phone: phone ?? _phone, |
|
startTime: startTime ?? _startTime, |
|
endTime: endTime ?? _endTime, |
|
tenantCode: tenantCode ?? _tenantCode, |
|
storeId: storeId ?? _storeId, |
|
); |
|
String get id => _id; |
|
String get createTime => _createTime; |
|
String get createUser => _createUser; |
|
String get updateTime => _updateTime; |
|
String get updateUser => _updateUser; |
|
String get mid => _mid; |
|
String get linkId => _linkId; |
|
num get pm => _pm; |
|
String get title => _title; |
|
String get category => _category; |
|
String get type => _type; |
|
String get number => _number; |
|
String get realNumber => _realNumber; |
|
String get balance => _balance; |
|
String get mark => _mark; |
|
bool get status => _status; |
|
bool get isDeleted => _isDeleted; |
|
String get storeName => _storeName; |
|
String get nickname => _nickname; |
|
String get phone => _phone; |
|
dynamic get startTime => _startTime; |
|
dynamic get endTime => _endTime; |
|
dynamic get tenantCode => _tenantCode; |
|
dynamic get storeId => _storeId; |
|
|
|
Map<String, dynamic> toJson() { |
|
final map = <String, dynamic>{}; |
|
map['id'] = _id; |
|
map['createTime'] = _createTime; |
|
map['createUser'] = _createUser; |
|
map['updateTime'] = _updateTime; |
|
map['updateUser'] = _updateUser; |
|
map['mid'] = _mid; |
|
map['linkId'] = _linkId; |
|
map['pm'] = _pm; |
|
map['title'] = _title; |
|
map['category'] = _category; |
|
map['type'] = _type; |
|
map['number'] = _number; |
|
map['realNumber'] = _realNumber; |
|
map['balance'] = _balance; |
|
map['mark'] = _mark; |
|
map['status'] = _status; |
|
map['isDeleted'] = _isDeleted; |
|
map['storeName'] = _storeName; |
|
map['nickname'] = _nickname; |
|
map['phone'] = _phone; |
|
map['startTime'] = _startTime; |
|
map['endTime'] = _endTime; |
|
map['tenantCode'] = _tenantCode; |
|
map['storeId'] = _storeId; |
|
return map; |
|
} |
|
|
|
} |