feat: group_by_dept优化

This commit is contained in:
caoqianming 2023-08-01 11:26:07 +08:00
parent 39e98f4e69
commit 861aec80a3
1 changed files with 1 additions and 1 deletions

View File

@ -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,