如何使用 moor flutter 在地图中返回数量和小计以进行 dart 查询。
Stream<double> qtyOfItemOnRegister(String transactionNumber, int itemId,
String uom, String transactionStatus) {
final quantity = db.salesOrderDetailTemp.quantity.sum();
final subtotal = db.salesOrderDetailTemp.subTotal.sum();
final query = selectOnly(db.salesOrderDetailTemp)
..addColumns([quantity, subtotal]);
return query.map((row) => row.read(quantity)).watchSingle();
}