feat(report):add design_progress_status_state
This commit is contained in:
@@ -421,4 +421,16 @@ class ReportRepository():
|
||||
]).to_list(None)
|
||||
return result
|
||||
|
||||
async def design_progress_status_state(self):
|
||||
result = await use_collection("design_progress").aggregate([
|
||||
{'$match':{'complete_at':{"$exists":0},'parent_id':{"$exists":0}}},
|
||||
{"$group":
|
||||
{'_id': {'state':"$state",'type':'$type'},
|
||||
'count': {'$sum': 1},
|
||||
"projectIds": {"$addToSet": "$project_id"},
|
||||
},
|
||||
}
|
||||
]).to_list(None)
|
||||
return result
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user