feat:机器上可以查询全部订单
This commit is contained in:
1 parent
88ff8988fb
commit
a6fc25ddce
13 files changed
+956
-388
No files matched your search
@@ -368,6 +368,7 @@ VerificationRecordQueryRequest _$VerificationRecordQueryRequestFromJson(
|
||||
startDate: json['startDate'] as String,
|
||||
endDate: json['endDate'] as String,
|
||||
verificationType: json['verificationType'] as String?,
|
||||
scope: json['scope'] as String?,
|
||||
);
|
||||
|
||||
Map<String, dynamic> _$VerificationRecordQueryRequestToJson(
|
||||
@@ -385,9 +386,112 @@ Map<String, dynamic> _$VerificationRecordQueryRequestToJson(
|
||||
}
|
||||
|
||||
writeNotNull('verificationType', instance.verificationType);
|
||||
writeNotNull('scope', instance.scope);
|
||||
return val;
|
||||
}
|
||||
|
||||
TerminalOrderRecordQueryRequest _$TerminalOrderRecordQueryRequestFromJson(
|
||||
Map<String, dynamic> json) =>
|
||||
TerminalOrderRecordQueryRequest(
|
||||
hardId: (json['hardId'] as num).toInt(),
|
||||
startDate: json['startDate'] as String,
|
||||
endDate: json['endDate'] as String,
|
||||
scope: json['scope'] as String?,
|
||||
orderStatusCodes: (json['orderStatusCodes'] as List<dynamic>?)
|
||||
?.map((e) => e as String)
|
||||
.toList(),
|
||||
hourType: json['hourType'] as String?,
|
||||
);
|
||||
|
||||
Map<String, dynamic> _$TerminalOrderRecordQueryRequestToJson(
|
||||
TerminalOrderRecordQueryRequest instance) {
|
||||
final val = <String, dynamic>{
|
||||
'hardId': instance.hardId,
|
||||
'startDate': instance.startDate,
|
||||
'endDate': instance.endDate,
|
||||
};
|
||||
|
||||
void writeNotNull(String key, dynamic value) {
|
||||
if (value != null) {
|
||||
val[key] = value;
|
||||
}
|
||||
}
|
||||
|
||||
writeNotNull('scope', instance.scope);
|
||||
writeNotNull('orderStatusCodes', instance.orderStatusCodes);
|
||||
writeNotNull('hourType', instance.hourType);
|
||||
return val;
|
||||
}
|
||||
|
||||
ServiceTerminalOrderRecord _$ServiceTerminalOrderRecordFromJson(
|
||||
Map<String, dynamic> json) =>
|
||||
ServiceTerminalOrderRecord(
|
||||
orderId: JsonTool.anyToInt(json['orderId']),
|
||||
orderNo: json['orderNo'] as String,
|
||||
orderType: json['orderType'] as String,
|
||||
orderTypeName: json['orderTypeName'] as String,
|
||||
orderStatus: json['orderStatus'] as String,
|
||||
orderStatusName: json['orderStatusName'] as String,
|
||||
payType: json['payType'] as String,
|
||||
payTypeName: json['payTypeName'] as String,
|
||||
username: json['username'] as String,
|
||||
productDesc: json['productDesc'] as String,
|
||||
totalPrice: JsonTool.anyToInt(json['totalPrice']),
|
||||
extraPrice: JsonTool.anyToInt(json['extraPrice']),
|
||||
payPrice: JsonTool.anyToInt(json['payPrice']),
|
||||
userDeptName: json['userDeptName'] as String?,
|
||||
hourType: json['hourType'] as String?,
|
||||
hardName: json['hardName'] as String?,
|
||||
createTime: json['createTime'] == null
|
||||
? null
|
||||
: DateTime.parse(json['createTime'] as String),
|
||||
);
|
||||
|
||||
Map<String, dynamic> _$ServiceTerminalOrderRecordToJson(
|
||||
ServiceTerminalOrderRecord instance) =>
|
||||
<String, dynamic>{
|
||||
'orderId': instance.orderId,
|
||||
'orderNo': instance.orderNo,
|
||||
'orderType': instance.orderType,
|
||||
'orderTypeName': instance.orderTypeName,
|
||||
'orderStatus': instance.orderStatus,
|
||||
'orderStatusName': instance.orderStatusName,
|
||||
'payType': instance.payType,
|
||||
'payTypeName': instance.payTypeName,
|
||||
'username': instance.username,
|
||||
'userDeptName': instance.userDeptName,
|
||||
'productDesc': instance.productDesc,
|
||||
'hourType': instance.hourType,
|
||||
'hardName': instance.hardName,
|
||||
'totalPrice': instance.totalPrice,
|
||||
'extraPrice': instance.extraPrice,
|
||||
'payPrice': instance.payPrice,
|
||||
'createTime': instance.createTime?.toIso8601String(),
|
||||
};
|
||||
|
||||
ServiceTerminalOrderRecordPage _$ServiceTerminalOrderRecordPageFromJson(
|
||||
Map<String, dynamic> json) =>
|
||||
ServiceTerminalOrderRecordPage(
|
||||
records: (json['records'] as List<dynamic>?)
|
||||
?.map((e) =>
|
||||
ServiceTerminalOrderRecord.fromJson(e as Map<String, dynamic>))
|
||||
.toList(),
|
||||
)
|
||||
..current = (json['current'] as num).toInt()
|
||||
..pages = (json['pages'] as num).toInt()
|
||||
..size = (json['size'] as num).toInt()
|
||||
..total = (json['total'] as num).toInt();
|
||||
|
||||
Map<String, dynamic> _$ServiceTerminalOrderRecordPageToJson(
|
||||
ServiceTerminalOrderRecordPage instance) =>
|
||||
<String, dynamic>{
|
||||
'current': instance.current,
|
||||
'pages': instance.pages,
|
||||
'size': instance.size,
|
||||
'total': instance.total,
|
||||
'records': instance.records,
|
||||
};
|
||||
|
||||
ServiceVerificationRecord _$ServiceVerificationRecordFromJson(
|
||||
Map<String, dynamic> json) =>
|
||||
ServiceVerificationRecord(
|
||||
|
||||
Reference in new issue
Block a user