feat:打印优化

This commit is contained in:
dzc committed 2026-09-22 13:29:10 +08:00
1 parent 22c4d4b9b9
commit 383ea2ad4b
32 files changed
+1879 -154

No files matched your search

@@ -1690,6 +1690,14 @@ class _$PrintHistoryDao extends PrintHistoryDao {
arguments: [servicePrintId]);
}
@override
Future<List<PrintHistoryEntity>> findAllByOrder(String orderId) async {
return _queryAdapter.queryList(
'SELECT * FROM print_history WHERE orderId = ?1 OR serviceOrderId = ?1 ORDER BY id DESC',
mapper: (Map<String, Object?> row) => PrintHistoryEntity(id: row['id'] as int?, orderId: row['orderId'] as String, serviceOrderId: row['serviceOrderId'] as String, servicePrintId: row['servicePrintId'] as String, invoiceUrl: row['invoiceUrl'] as String, printCmd: row['printCmd'] as String?, printType: row['printType'] as String, printNo: row['printNo'] as int, retryVersion: row['retryVersion'] as int, attemptCount: row['attemptCount'] as int, lastError: row['lastError'] as String?, resultPending: _boolConverter.decode(row['resultPending'] as int), status: _printStatusConverter.decode(row['status'] as String), printTime: row['printTime'] as String?, syncTime: _dateTimeEmptyConverter.decode(row['syncTime'] as String), createTime: _dateTimeConverter.decode(row['createTime'] as String)),
arguments: [orderId]);
}
@override
Future<List<PrintHistoryEntity>> getPendingResults() async {
return _queryAdapter.queryList(