feat(report):add status agreement
This commit is contained in:
@@ -436,13 +436,13 @@ class ReportRepository():
|
|||||||
async def design_sts(self):
|
async def design_sts(self):
|
||||||
result = await use_collection(TaskEnv.CLN_PROJECT).aggregate([
|
result = await use_collection(TaskEnv.CLN_PROJECT).aggregate([
|
||||||
{"$group":{"_id":'$design.sts','count':{'$sum':1},"projectIds": {"$addToSet": "$_id"}}}
|
{"$group":{"_id":'$design.sts','count':{'$sum':1},"projectIds": {"$addToSet": "$_id"}}}
|
||||||
])
|
]).to_list(None)
|
||||||
return result
|
return result
|
||||||
|
|
||||||
async def status_agreement(self):
|
async def status_agreement(self):
|
||||||
result = await use_collection(TaskEnv.CLN_PROJECT).aggregate([
|
result = await use_collection(TaskEnv.CLN_PROJECT).aggregate([
|
||||||
{"$group":{"_id":'$design.status_agreement','count':{'$sum':1},"projectIds": {"$addToSet": "$_id"}}}
|
{"$group":{"_id":'$design.status_agreement','count':{'$sum':1},"projectIds": {"$addToSet": "$_id"}}}
|
||||||
])
|
]).to_list(None)
|
||||||
return result
|
return result
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user