From 861aec80a36d79e85dcb3956b21b88f605c4b723 Mon Sep 17 00:00:00 2001 From: caoqianming Date: Tue, 1 Aug 2023 11:26:07 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20group=5Fby=5Fdept=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/apps/supervision/views2.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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,