diff --git a/ruoyi-admin/src/main/resources/mapper/UnitMapper.xml b/ruoyi-admin/src/main/resources/mapper/UnitMapper.xml index 6cb81dd..dd7ed3c 100644 --- a/ruoyi-admin/src/main/resources/mapper/UnitMapper.xml +++ b/ruoyi-admin/src/main/resources/mapper/UnitMapper.xml @@ -222,7 +222,7 @@ LEFT JOIN sys_dept d ON b.dept_id = d.dept_id WHERE d.dept_id IS NOT NULL - AND d.parent_id != 0 + GROUP BY d.dept_id, d.parent_id, @@ -256,7 +256,7 @@ LEFT JOIN sys_dept d ON b.dept_id = d.dept_id WHERE d.dept_id IS NOT NULL - AND d.parent_id != 0 + GROUP BY d.dept_id, d.parent_id, @@ -290,7 +290,7 @@ LEFT JOIN sys_dept d ON b.dept_id = d.dept_id WHERE d.dept_id IS NOT NULL - AND d.parent_id != 0 + GROUP BY d.dept_id, d.parent_id, @@ -324,7 +324,7 @@ LEFT JOIN sys_dept d ON b.dept_id = d.dept_id WHERE d.dept_id IS NOT NULL - AND d.parent_id != 0 + GROUP BY d.dept_id, d.parent_id, @@ -358,7 +358,7 @@ LEFT JOIN sys_dept d ON b.dept_id = d.dept_id WHERE d.dept_id IS NOT NULL - AND d.parent_id != 0 + GROUP BY d.dept_id, d.parent_id,