diff --git a/server/apps/supervision/views2.py b/server/apps/supervision/views2.py index 15a2294..f86e7aa 100644 --- a/server/apps/supervision/views2.py +++ b/server/apps/supervision/views2.py @@ -68,7 +68,7 @@ left join supervision_pgoal pgoal on pgoal.year = 2023 left join system_dict dict on dict.id = dept.type_id where task2.year = {vdata['year']} and (dept.name = '{vdata['dept_name']}' or '{vdata['dept_name']}'='') -and (dic.name = '{vdata['dept_type_name']}' or '{vdata['dept_type_name']}'='') +and (dict.name = '{vdata['dept_type_name']}' or '{vdata['dept_type_name']}'='') GROUP BY task2.year, dept.id, dict.name, pgoal.pgoal_1, pgoal.pgoal_2,