fix:超市购物卡支付、选择钱包、称重商品小数精度不够的问题
This commit is contained in:
1 parent
3a7ca1e5be
commit
9c82df3617
13 files changed
+61
-35
No files matched your search
@@ -117,7 +117,7 @@ class ServiceWallet {
|
||||
|
||||
/// 是否冻结饭卡
|
||||
@JsonKey(fromJson: JsonTool.stringToBoolean, toJson: JsonTool.booleanToString)
|
||||
bool? walletIsFreeze;
|
||||
bool? isFreeze;
|
||||
|
||||
ServiceWallet({
|
||||
required this.id,
|
||||
@@ -126,7 +126,7 @@ class ServiceWallet {
|
||||
required this.walletTypeId,
|
||||
required this.balance,
|
||||
this.cardNumber,
|
||||
this.walletIsFreeze,
|
||||
this.isFreeze,
|
||||
});
|
||||
|
||||
factory ServiceWallet.fromJson(Map<String, dynamic> json) =>
|
||||
|
||||
@@ -66,8 +66,8 @@ ServiceWallet _$ServiceWalletFromJson(Map<String, dynamic> json) =>
|
||||
userId: json['userId'] as String,
|
||||
walletTypeId: json['walletTypeId'] as String,
|
||||
balance: (json['balance'] as num).toInt(),
|
||||
walletIsFreeze:
|
||||
JsonTool.stringToBoolean(json['walletIsFreeze'] as String),
|
||||
cardNumber: json['cardNumber'] as String?,
|
||||
isFreeze: JsonTool.stringToBoolean(json['isFreeze'] as String),
|
||||
);
|
||||
|
||||
Map<String, dynamic> _$ServiceWalletToJson(ServiceWallet instance) =>
|
||||
@@ -77,5 +77,6 @@ Map<String, dynamic> _$ServiceWalletToJson(ServiceWallet instance) =>
|
||||
'userId': instance.userId,
|
||||
'walletTypeId': instance.walletTypeId,
|
||||
'balance': instance.balance,
|
||||
'walletIsFreeze': JsonTool.booleanToString(instance.walletIsFreeze),
|
||||
'cardNumber': instance.cardNumber,
|
||||
'isFreeze': JsonTool.booleanToString(instance.isFreeze),
|
||||
};
|
||||
Reference in new issue
Block a user