以下聚合使用$subtract表达式通过从 price 和 fee 的小计中减去 discount 来计算 total 。 db.sales.aggregate( [ { $project: { item: 1, total: { $subtract: [ { $add: ...
確定! 回上一頁