记得上下班打卡 | git大法好,push需谨慎

Commit a2f16442 authored by 胡佳晨's avatar 胡佳晨

资金 增加 商品类型

parent 9b24e704
...@@ -896,9 +896,10 @@ public class GoblinMongoUtils { ...@@ -896,9 +896,10 @@ public class GoblinMongoUtils {
//查询聚合数据 //查询聚合数据
Aggregation aggregation = Aggregation.newAggregation( Aggregation aggregation = Aggregation.newAggregation(
Aggregation.match(criteria), Aggregation.match(criteria),
Aggregation.project("spuId", "skuPriceActual"), Aggregation.project("spuId", "skuPriceActual","orderType"),
Aggregation.group("spuId") Aggregation.group("spuId")
.first("spuId").as("spuId") .first("spuId").as("spuId")
.first("orderType").as("orderType")
.sum("skuPriceActual").as("skuPriceActual"), .sum("skuPriceActual").as("skuPriceActual"),
Aggregation.sort(Sort.by(Sort.Order.desc("spuId"))) Aggregation.sort(Sort.by(Sort.Order.desc("spuId")))
); );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment