think-orm icon indicating copy to clipboard operation
think-orm copied to clipboard

mongodb 完善聚会统计

Open XY-JX opened this issue 4 years ago • 0 comments

mongodb 完善聚会统计 可以一次完成多个 sum / avg 等统计 增加 count 计数统计 multiAggregate(array $aggregate, array $groupBy): array $aggregate 聚合指令, 可以聚合多个参数, 如 ['as1' => ['sum','field1'], 'as1' =>  ['sum','field2'], 'as3' =>  ['avg','field2'], 'count' =>  ['sum',1]]

XY-JX avatar Apr 22 '21 12:04 XY-JX