huixiang_app
1 year ago
15 changed files with 2448 additions and 869 deletions
File diff suppressed because one or more lines are too long
@ -0,0 +1,177 @@
|
||||
/// summaryDate : "2023-09-14" |
||||
/// dayMoney : "0" |
||||
/// discountSum : "0.00" |
||||
/// paySum : "0" |
||||
/// rechargeMoney : "0" |
||||
/// refundMoney : "0" |
||||
/// orderNum : 0 |
||||
/// rechargeOrderNum : 0 |
||||
/// refundOrderNum : 0 |
||||
/// payOrderNum : 0 |
||||
/// discountOrderNum : 0 |
||||
/// startDate : null |
||||
/// endDate : null |
||||
/// tablePerConsumption : null |
||||
/// numberOfPeople : 0 |
||||
/// peoplePerConsumption : "0" |
||||
/// realDiscountPer : null |
||||
/// tableRate : null |
||||
|
||||
class DayCount { |
||||
DayCount({ |
||||
String summaryDate, |
||||
String dayMoney, |
||||
String discountSum, |
||||
String paySum, |
||||
String rechargeMoney, |
||||
String refundMoney, |
||||
num orderNum, |
||||
num rechargeOrderNum, |
||||
num refundOrderNum, |
||||
num payOrderNum, |
||||
num discountOrderNum, |
||||
dynamic startDate, |
||||
dynamic endDate, |
||||
dynamic tablePerConsumption, |
||||
num numberOfPeople, |
||||
String peoplePerConsumption, |
||||
dynamic realDiscountPer, |
||||
dynamic tableRate,}){ |
||||
_summaryDate = summaryDate; |
||||
_dayMoney = dayMoney; |
||||
_discountSum = discountSum; |
||||
_paySum = paySum; |
||||
_rechargeMoney = rechargeMoney; |
||||
_refundMoney = refundMoney; |
||||
_orderNum = orderNum; |
||||
_rechargeOrderNum = rechargeOrderNum; |
||||
_refundOrderNum = refundOrderNum; |
||||
_payOrderNum = payOrderNum; |
||||
_discountOrderNum = discountOrderNum; |
||||
_startDate = startDate; |
||||
_endDate = endDate; |
||||
_tablePerConsumption = tablePerConsumption; |
||||
_numberOfPeople = numberOfPeople; |
||||
_peoplePerConsumption = peoplePerConsumption; |
||||
_realDiscountPer = realDiscountPer; |
||||
_tableRate = tableRate; |
||||
} |
||||
|
||||
DayCount.fromJson(dynamic json) { |
||||
_summaryDate = json['summaryDate']; |
||||
_dayMoney = json['dayMoney']; |
||||
_discountSum = json['discountSum']; |
||||
_paySum = json['paySum']; |
||||
_rechargeMoney = json['rechargeMoney']; |
||||
_refundMoney = json['refundMoney']; |
||||
_orderNum = json['orderNum']; |
||||
_rechargeOrderNum = json['rechargeOrderNum']; |
||||
_refundOrderNum = json['refundOrderNum']; |
||||
_payOrderNum = json['payOrderNum']; |
||||
_discountOrderNum = json['discountOrderNum']; |
||||
_startDate = json['startDate']; |
||||
_endDate = json['endDate']; |
||||
_tablePerConsumption = json['tablePerConsumption']; |
||||
_numberOfPeople = json['numberOfPeople']; |
||||
_peoplePerConsumption = json['peoplePerConsumption']; |
||||
_realDiscountPer = json['realDiscountPer']; |
||||
_tableRate = json['tableRate']; |
||||
} |
||||
String _summaryDate; |
||||
String _dayMoney; |
||||
String _discountSum; |
||||
String _paySum; |
||||
String _rechargeMoney; |
||||
String _refundMoney; |
||||
num _orderNum; |
||||
num _rechargeOrderNum; |
||||
num _refundOrderNum; |
||||
num _payOrderNum; |
||||
num _discountOrderNum; |
||||
dynamic _startDate; |
||||
dynamic _endDate; |
||||
dynamic _tablePerConsumption; |
||||
num _numberOfPeople; |
||||
String _peoplePerConsumption; |
||||
dynamic _realDiscountPer; |
||||
dynamic _tableRate; |
||||
DayCount copyWith({ String summaryDate, |
||||
String dayMoney, |
||||
String discountSum, |
||||
String paySum, |
||||
String rechargeMoney, |
||||
String refundMoney, |
||||
num orderNum, |
||||
num rechargeOrderNum, |
||||
num refundOrderNum, |
||||
num payOrderNum, |
||||
num discountOrderNum, |
||||
dynamic startDate, |
||||
dynamic endDate, |
||||
dynamic tablePerConsumption, |
||||
num numberOfPeople, |
||||
String peoplePerConsumption, |
||||
dynamic realDiscountPer, |
||||
dynamic tableRate, |
||||
}) => DayCount( summaryDate: summaryDate ?? _summaryDate, |
||||
dayMoney: dayMoney ?? _dayMoney, |
||||
discountSum: discountSum ?? _discountSum, |
||||
paySum: paySum ?? _paySum, |
||||
rechargeMoney: rechargeMoney ?? _rechargeMoney, |
||||
refundMoney: refundMoney ?? _refundMoney, |
||||
orderNum: orderNum ?? _orderNum, |
||||
rechargeOrderNum: rechargeOrderNum ?? _rechargeOrderNum, |
||||
refundOrderNum: refundOrderNum ?? _refundOrderNum, |
||||
payOrderNum: payOrderNum ?? _payOrderNum, |
||||
discountOrderNum: discountOrderNum ?? _discountOrderNum, |
||||
startDate: startDate ?? _startDate, |
||||
endDate: endDate ?? _endDate, |
||||
tablePerConsumption: tablePerConsumption ?? _tablePerConsumption, |
||||
numberOfPeople: numberOfPeople ?? _numberOfPeople, |
||||
peoplePerConsumption: peoplePerConsumption ?? _peoplePerConsumption, |
||||
realDiscountPer: realDiscountPer ?? _realDiscountPer, |
||||
tableRate: tableRate ?? _tableRate, |
||||
); |
||||
String get summaryDate => _summaryDate; |
||||
String get dayMoney => _dayMoney; |
||||
String get discountSum => _discountSum; |
||||
String get paySum => _paySum; |
||||
String get rechargeMoney => _rechargeMoney; |
||||
String get refundMoney => _refundMoney; |
||||
num get orderNum => _orderNum; |
||||
num get rechargeOrderNum => _rechargeOrderNum; |
||||
num get refundOrderNum => _refundOrderNum; |
||||
num get payOrderNum => _payOrderNum; |
||||
num get discountOrderNum => _discountOrderNum; |
||||
dynamic get startDate => _startDate; |
||||
dynamic get endDate => _endDate; |
||||
dynamic get tablePerConsumption => _tablePerConsumption; |
||||
num get numberOfPeople => _numberOfPeople; |
||||
String get peoplePerConsumption => _peoplePerConsumption; |
||||
dynamic get realDiscountPer => _realDiscountPer; |
||||
dynamic get tableRate => _tableRate; |
||||
|
||||
Map<String, dynamic> toJson() { |
||||
final map = <String, dynamic>{}; |
||||
map['summaryDate'] = _summaryDate; |
||||
map['dayMoney'] = _dayMoney; |
||||
map['discountSum'] = _discountSum; |
||||
map['paySum'] = _paySum; |
||||
map['rechargeMoney'] = _rechargeMoney; |
||||
map['refundMoney'] = _refundMoney; |
||||
map['orderNum'] = _orderNum; |
||||
map['rechargeOrderNum'] = _rechargeOrderNum; |
||||
map['refundOrderNum'] = _refundOrderNum; |
||||
map['payOrderNum'] = _payOrderNum; |
||||
map['discountOrderNum'] = _discountOrderNum; |
||||
map['startDate'] = _startDate; |
||||
map['endDate'] = _endDate; |
||||
map['tablePerConsumption'] = _tablePerConsumption; |
||||
map['numberOfPeople'] = _numberOfPeople; |
||||
map['peoplePerConsumption'] = _peoplePerConsumption; |
||||
map['realDiscountPer'] = _realDiscountPer; |
||||
map['tableRate'] = _tableRate; |
||||
return map; |
||||
} |
||||
|
||||
} |
@ -0,0 +1,33 @@
|
||||
/// date : "2023-09-08" |
||||
/// number : 0 |
||||
|
||||
class OrderTrend { |
||||
OrderTrend({ |
||||
String date, |
||||
num number,}){ |
||||
_date = date; |
||||
_number = number; |
||||
} |
||||
|
||||
OrderTrend.fromJson(dynamic json) { |
||||
_date = json['date']; |
||||
_number = json['number']; |
||||
} |
||||
String _date; |
||||
num _number; |
||||
OrderTrend copyWith({ String date, |
||||
num number, |
||||
}) => OrderTrend( date: date ?? _date, |
||||
number: number ?? _number, |
||||
); |
||||
String get date => _date; |
||||
num get number => _number; |
||||
|
||||
Map<String, dynamic> toJson() { |
||||
final map = <String, dynamic>{}; |
||||
map['date'] = _date; |
||||
map['number'] = _number; |
||||
return map; |
||||
} |
||||
|
||||
} |
@ -0,0 +1,311 @@
|
||||
/// dashMemberList : [{"id":"1645357356843794432","name":"哈哈哈","phone":"15623342902","balance":"817.21"},{"id":"1688728183219683328","name":"","phone":"17612711844","balance":"470.00"},{"id":"1693535584301088768","name":"西瓜太郎","phone":"18716285488","balance":"104.00"},{"id":"1645691116772655104","name":"丙阳测试环境","phone":"15827991714","balance":"0.88"},{"id":"1645348000345620480","name":"璇","phone":"15871490290","balance":"0.02"},{"id":"1685233051375763456","name":"","phone":"18672789329","balance":"0.00"},{"id":"1696812803165257728","name":"","phone":"15723456545","balance":"0.00"},{"id":"1652214301991108608","name":"","phone":"18573164593","balance":"0.00"},{"id":"1646037740963233792","name":"","phone":"13517240850","balance":"0.00"},{"id":"1650818734501134336","name":"","phone":"15172398708","balance":"0.00"},{"id":"1652493162733633536","name":"","phone":"15013675571","balance":"0.00"},{"id":"1646067749123784704","name":"","phone":"13720233327","balance":"0.00"}] |
||||
/// saleProductList : [{"product_id":"1646055704735252480","saleNum":12,"product_name":"香蕉牛乳"},{"product_id":"1645714721178910720","saleNum":8,"product_name":"红薯牛乳"},{"product_id":"1645991124428390400","saleNum":3,"product_name":"南瓜牛乳"},{"product_id":"1645722834221137920","saleNum":3,"product_name":"原味豆腐"},{"product_id":"1645992331242897408","saleNum":3,"product_name":"炸鲜香菇"},{"product_id":"1646449156648075264","saleNum":2,"product_name":"桑葚牛乳"},{"product_id":"1645724097411284992","saleNum":2,"product_name":"泡菜"},{"product_id":"1646449942484484096","saleNum":1,"product_name":"芒果牛乳"},{"product_id":"1645667029320990720","saleNum":1,"product_name":"木瓜牛奶"},{"product_id":"1645732366896857088","saleNum":1,"product_name":"酱烤玉米"}] |
||||
/// avgPrice : "11.43" |
||||
/// orderNum : 21 |
||||
/// storeDailyStatistics : [] |
||||
/// orderSum : "259.04" |
||||
/// changeData : {"addCartChangeRate":0.0,"payCountChangeRate":0.0,"sumAddCartCount":"0","sumSettleCount":"0","sumPaySuccessCount":"0","sumPV":"0","totalChangeRate":0.0,"sumPayCount":"0","settleChangeRate":0.0,"paySuccessChangeRate":0.0} |
||||
/// paySum : "240.00" |
||||
|
||||
class PopularSalesList { |
||||
PopularSalesList({ |
||||
List<DashMemberList> dashMemberList, |
||||
List<SaleProductList> saleProductList, |
||||
String avgPrice, |
||||
num orderNum, |
||||
// List<dynamic> storeDailyStatistics, |
||||
String orderSum, |
||||
ChangeData changeData, |
||||
String paySum,}){ |
||||
_dashMemberList = dashMemberList; |
||||
_saleProductList = saleProductList; |
||||
_avgPrice = avgPrice; |
||||
_orderNum = orderNum; |
||||
// _storeDailyStatistics = storeDailyStatistics; |
||||
_orderSum = orderSum; |
||||
_changeData = changeData; |
||||
_paySum = paySum; |
||||
} |
||||
|
||||
PopularSalesList.fromJson(dynamic json) { |
||||
if (json['dashMemberList'] != null) { |
||||
_dashMemberList = []; |
||||
json['dashMemberList'].forEach((v) { |
||||
_dashMemberList.add(DashMemberList.fromJson(v)); |
||||
}); |
||||
} |
||||
if (json['saleProductList'] != null) { |
||||
_saleProductList = []; |
||||
json['saleProductList'].forEach((v) { |
||||
_saleProductList.add(SaleProductList.fromJson(v)); |
||||
}); |
||||
} |
||||
_avgPrice = json['avgPrice']; |
||||
_orderNum = json['orderNum']; |
||||
// if (json['storeDailyStatistics'] != null) { |
||||
// _storeDailyStatistics = []; |
||||
// json['storeDailyStatistics'].forEach((v) { |
||||
// _storeDailyStatistics.add(Dynamic.fromJson(v)); |
||||
// }); |
||||
// } |
||||
_orderSum = json['orderSum']; |
||||
_changeData = json['changeData'] != null ? ChangeData.fromJson(json['changeData']) : null; |
||||
_paySum = json['paySum']; |
||||
} |
||||
List<DashMemberList> _dashMemberList; |
||||
List<SaleProductList> _saleProductList; |
||||
String _avgPrice; |
||||
num _orderNum; |
||||
// List<dynamic> _storeDailyStatistics; |
||||
String _orderSum; |
||||
ChangeData _changeData; |
||||
String _paySum; |
||||
PopularSalesList copyWith({ List<DashMemberList> dashMemberList, |
||||
List<SaleProductList> saleProductList, |
||||
String avgPrice, |
||||
num orderNum, |
||||
// List<dynamic> storeDailyStatistics, |
||||
String orderSum, |
||||
ChangeData changeData, |
||||
String paySum, |
||||
}) => PopularSalesList( dashMemberList: dashMemberList ?? _dashMemberList, |
||||
saleProductList: saleProductList ?? _saleProductList, |
||||
avgPrice: avgPrice ?? _avgPrice, |
||||
orderNum: orderNum ?? _orderNum, |
||||
// storeDailyStatistics: storeDailyStatistics ?? _storeDailyStatistics, |
||||
orderSum: orderSum ?? _orderSum, |
||||
changeData: changeData ?? _changeData, |
||||
paySum: paySum ?? _paySum, |
||||
); |
||||
List<DashMemberList> get dashMemberList => _dashMemberList; |
||||
List<SaleProductList> get saleProductList => _saleProductList; |
||||
String get avgPrice => _avgPrice; |
||||
num get orderNum => _orderNum; |
||||
// List<dynamic> get storeDailyStatistics => _storeDailyStatistics; |
||||
String get orderSum => _orderSum; |
||||
ChangeData get changeData => _changeData; |
||||
String get paySum => _paySum; |
||||
|
||||
Map<String, dynamic> toJson() { |
||||
final map = <String, dynamic>{}; |
||||
if (_dashMemberList != null) { |
||||
map['dashMemberList'] = _dashMemberList.map((v) => v.toJson()).toList(); |
||||
} |
||||
if (_saleProductList != null) { |
||||
map['saleProductList'] = _saleProductList.map((v) => v.toJson()).toList(); |
||||
} |
||||
map['avgPrice'] = _avgPrice; |
||||
map['orderNum'] = _orderNum; |
||||
// if (_storeDailyStatistics != null) { |
||||
// map['storeDailyStatistics'] = _storeDailyStatistics.map((v) => v.toJson()).toList(); |
||||
// } |
||||
map['orderSum'] = _orderSum; |
||||
if (_changeData != null) { |
||||
map['changeData'] = _changeData.toJson(); |
||||
} |
||||
map['paySum'] = _paySum; |
||||
return map; |
||||
} |
||||
|
||||
} |
||||
|
||||
/// addCartChangeRate : 0.0 |
||||
/// payCountChangeRate : 0.0 |
||||
/// sumAddCartCount : "0" |
||||
/// sumSettleCount : "0" |
||||
/// sumPaySuccessCount : "0" |
||||
/// sumPV : "0" |
||||
/// totalChangeRate : 0.0 |
||||
/// sumPayCount : "0" |
||||
/// settleChangeRate : 0.0 |
||||
/// paySuccessChangeRate : 0.0 |
||||
|
||||
class ChangeData { |
||||
ChangeData({ |
||||
num addCartChangeRate, |
||||
num payCountChangeRate, |
||||
String sumAddCartCount, |
||||
String sumSettleCount, |
||||
String sumPaySuccessCount, |
||||
String sumPV, |
||||
num totalChangeRate, |
||||
String sumPayCount, |
||||
num settleChangeRate, |
||||
num paySuccessChangeRate,}){ |
||||
_addCartChangeRate = addCartChangeRate; |
||||
_payCountChangeRate = payCountChangeRate; |
||||
_sumAddCartCount = sumAddCartCount; |
||||
_sumSettleCount = sumSettleCount; |
||||
_sumPaySuccessCount = sumPaySuccessCount; |
||||
_sumPV = sumPV; |
||||
_totalChangeRate = totalChangeRate; |
||||
_sumPayCount = sumPayCount; |
||||
_settleChangeRate = settleChangeRate; |
||||
_paySuccessChangeRate = paySuccessChangeRate; |
||||
} |
||||
|
||||
ChangeData.fromJson(dynamic json) { |
||||
_addCartChangeRate = json['addCartChangeRate']; |
||||
_payCountChangeRate = json['payCountChangeRate']; |
||||
_sumAddCartCount = json['sumAddCartCount']; |
||||
_sumSettleCount = json['sumSettleCount']; |
||||
_sumPaySuccessCount = json['sumPaySuccessCount']; |
||||
_sumPV = json['sumPV']; |
||||
_totalChangeRate = json['totalChangeRate']; |
||||
_sumPayCount = json['sumPayCount']; |
||||
_settleChangeRate = json['settleChangeRate']; |
||||
_paySuccessChangeRate = json['paySuccessChangeRate']; |
||||
} |
||||
num _addCartChangeRate; |
||||
num _payCountChangeRate; |
||||
String _sumAddCartCount; |
||||
String _sumSettleCount; |
||||
String _sumPaySuccessCount; |
||||
String _sumPV; |
||||
num _totalChangeRate; |
||||
String _sumPayCount; |
||||
num _settleChangeRate; |
||||
num _paySuccessChangeRate; |
||||
ChangeData copyWith({ num addCartChangeRate, |
||||
num payCountChangeRate, |
||||
String sumAddCartCount, |
||||
String sumSettleCount, |
||||
String sumPaySuccessCount, |
||||
String sumPV, |
||||
num totalChangeRate, |
||||
String sumPayCount, |
||||
num settleChangeRate, |
||||
num paySuccessChangeRate, |
||||
}) => ChangeData( addCartChangeRate: addCartChangeRate ?? _addCartChangeRate, |
||||
payCountChangeRate: payCountChangeRate ?? _payCountChangeRate, |
||||
sumAddCartCount: sumAddCartCount ?? _sumAddCartCount, |
||||
sumSettleCount: sumSettleCount ?? _sumSettleCount, |
||||
sumPaySuccessCount: sumPaySuccessCount ?? _sumPaySuccessCount, |
||||
sumPV: sumPV ?? _sumPV, |
||||
totalChangeRate: totalChangeRate ?? _totalChangeRate, |
||||
sumPayCount: sumPayCount ?? _sumPayCount, |
||||
settleChangeRate: settleChangeRate ?? _settleChangeRate, |
||||
paySuccessChangeRate: paySuccessChangeRate ?? _paySuccessChangeRate, |
||||
); |
||||
num get addCartChangeRate => _addCartChangeRate; |
||||
num get payCountChangeRate => _payCountChangeRate; |
||||
String get sumAddCartCount => _sumAddCartCount; |
||||
String get sumSettleCount => _sumSettleCount; |
||||
String get sumPaySuccessCount => _sumPaySuccessCount; |
||||
String get sumPV => _sumPV; |
||||
num get totalChangeRate => _totalChangeRate; |
||||
String get sumPayCount => _sumPayCount; |
||||
num get settleChangeRate => _settleChangeRate; |
||||
num get paySuccessChangeRate => _paySuccessChangeRate; |
||||
|
||||
Map<String, dynamic> toJson() { |
||||
final map = <String, dynamic>{}; |
||||
map['addCartChangeRate'] = _addCartChangeRate; |
||||
map['payCountChangeRate'] = _payCountChangeRate; |
||||
map['sumAddCartCount'] = _sumAddCartCount; |
||||
map['sumSettleCount'] = _sumSettleCount; |
||||
map['sumPaySuccessCount'] = _sumPaySuccessCount; |
||||
map['sumPV'] = _sumPV; |
||||
map['totalChangeRate'] = _totalChangeRate; |
||||
map['sumPayCount'] = _sumPayCount; |
||||
map['settleChangeRate'] = _settleChangeRate; |
||||
map['paySuccessChangeRate'] = _paySuccessChangeRate; |
||||
return map; |
||||
} |
||||
|
||||
} |
||||
|
||||
/// product_id : "1646055704735252480" |
||||
/// saleNum : 12 |
||||
/// product_name : "香蕉牛乳" |
||||
|
||||
class SaleProductList { |
||||
SaleProductList({ |
||||
String productId, |
||||
num saleNum, |
||||
String productName,}){ |
||||
_productId = productId; |
||||
_saleNum = saleNum; |
||||
_productName = productName; |
||||
} |
||||
|
||||
SaleProductList.fromJson(dynamic json) { |
||||
_productId = json['product_id']; |
||||
_saleNum = json['saleNum']; |
||||
_productName = json['product_name']; |
||||
} |
||||
String _productId; |
||||
num _saleNum; |
||||
String _productName; |
||||
SaleProductList copyWith({ String productId, |
||||
num saleNum, |
||||
String productName, |
||||
}) => SaleProductList( productId: productId ?? _productId, |
||||
saleNum: saleNum ?? _saleNum, |
||||
productName: productName ?? _productName, |
||||
); |
||||
String get productId => _productId; |
||||
num get saleNum => _saleNum; |
||||
String get productName => _productName; |
||||
|
||||
Map<String, dynamic> toJson() { |
||||
final map = <String, dynamic>{}; |
||||
map['product_id'] = _productId; |
||||
map['saleNum'] = _saleNum; |
||||
map['product_name'] = _productName; |
||||
return map; |
||||
} |
||||
|
||||
} |
||||
|
||||
/// id : "1645357356843794432" |
||||
/// name : "哈哈哈" |
||||
/// phone : "15623342902" |
||||
/// balance : "817.21" |
||||
|
||||
class DashMemberList { |
||||
DashMemberList({ |
||||
String id, |
||||
String name, |
||||
String phone, |
||||
String balance,}){ |
||||
_id = id; |
||||
_name = name; |
||||
_phone = phone; |
||||
_balance = balance; |
||||
} |
||||
|
||||
DashMemberList.fromJson(dynamic json) { |
||||
_id = json['id']; |
||||
_name = json['name']; |
||||
_phone = json['phone']; |
||||
_balance = json['balance']; |
||||
} |
||||
String _id; |
||||
String _name; |
||||
String _phone; |
||||
String _balance; |
||||
DashMemberList copyWith({ String id, |
||||
String name, |
||||
String phone, |
||||
String balance, |
||||
}) => DashMemberList( id: id ?? _id, |
||||
name: name ?? _name, |
||||
phone: phone ?? _phone, |
||||
balance: balance ?? _balance, |
||||
); |
||||
String get id => _id; |
||||
String get name => _name; |
||||
String get phone => _phone; |
||||
String get balance => _balance; |
||||
|
||||
Map<String, dynamic> toJson() { |
||||
final map = <String, dynamic>{}; |
||||
map['id'] = _id; |
||||
map['name'] = _name; |
||||
map['phone'] = _phone; |
||||
map['balance'] = _balance; |
||||
return map; |
||||
} |
||||
|
||||
} |
@ -0,0 +1,34 @@
|
||||
class BusinessInstance { |
||||
factory BusinessInstance() => _getInstance(); |
||||
|
||||
static BusinessInstance get instance => _getInstance(); |
||||
|
||||
static BusinessInstance _instance; |
||||
|
||||
String _businessToken; |
||||
|
||||
String _businessTenant; |
||||
|
||||
String get businessToken => _businessToken; |
||||
|
||||
set businessToken(String value) { |
||||
_businessToken = value; |
||||
} |
||||
|
||||
BusinessInstance._internal() { |
||||
//单例初始化 |
||||
} |
||||
|
||||
static BusinessInstance _getInstance() { |
||||
if (_instance == null) { |
||||
_instance = BusinessInstance._internal(); |
||||
} |
||||
return _instance; |
||||
} |
||||
|
||||
String get businessTenant => _businessTenant; |
||||
|
||||
set businessTenant(String value) { |
||||
_businessTenant = value; |
||||
} |
||||
} |
Loading…
Reference in new issue