feat: group_by_dept优化
This commit is contained in:
parent
39e98f4e69
commit
861aec80a3
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in New Issue