fix(report):order progress_month_report
This commit is contained in:
@@ -10,9 +10,9 @@ from core.service.mongo_db import use_collection
|
||||
class ReportRepository():
|
||||
async def project_status(self, _inp: StatusReport, type):
|
||||
if _inp.state:
|
||||
match = {f'{type}.sts': {'$exists': 1}, 'design.state': _inp.state}
|
||||
match = {f'{type}.sts': {'$exists': 1}, 'design.state': _inp.state,'sts':1}
|
||||
else:
|
||||
match = {f'{type}.sts': {'$exists': 1}}
|
||||
match = {f'{type}.sts': {'$exists': 1},'sts':1}
|
||||
if _inp.type_id:
|
||||
match.update({'design.type_id': _inp.type_id})
|
||||
if _inp.nature_id:
|
||||
|
||||
Reference in New Issue
Block a user