fix(report):check design projects

This commit is contained in:
shahzeydyfah
2026-08-10 23:32:52 +03:30
parent 9fd5481461
commit 439f7b3c15
+10
View File
@@ -17,6 +17,16 @@ class ReportRepository():
match.update({'design.type_id': _inp.type_id})
if _inp.nature_id:
match.update({'design.nature_id': _inp.nature_id})
if type == 'design':
match.update({
'$or': [
{'has_monitor': False},
{
'monitor.has_design': True,
'has_monitor': True
}
]
})
if type == 'monitor' and _inp.monitor_type:
match.update({'monitor.base_information.type': _inp.monitor_type})
report = await use_collection(TaskEnv.CLN_PROJECT).aggregate([