【mongo】去重操作 查询昨日存在log的机构数量并进行去重: db.log.distinct("org_Id",{ "createTime"::{$lte:"昨日的23:59:59",$gt:"昨日的00:00:00"} }).length;