代码提交

This commit is contained in:
itcast 2026-01-06 19:17:51 +08:00
parent f9c249e0c0
commit 03e4848b35
1 changed files with 1 additions and 1 deletions

View File

@ -169,7 +169,7 @@
GROUP BY on_company) t
-- 按公司ID合并数据避免同一公司多条记录
GROUP BY company_id) temp ON sd.dept_id = temp.company_id -- 公司ID关联
WHERE sd.is_show = '1'
WHERE sd.is_show = '1' and sd.del_flag='0'
-- 按公司ID分组确保每个公司只显示一行
GROUP BY sd.dept_id,
sd.dept_name