|
|
@ -222,7 +222,7 @@
|
|
|
|
LEFT JOIN sys_dept d ON b.dept_id = d.dept_id
|
|
|
|
LEFT JOIN sys_dept d ON b.dept_id = d.dept_id
|
|
|
|
WHERE
|
|
|
|
WHERE
|
|
|
|
d.dept_id IS NOT NULL
|
|
|
|
d.dept_id IS NOT NULL
|
|
|
|
AND d.parent_id != 0
|
|
|
|
|
|
|
|
GROUP BY
|
|
|
|
GROUP BY
|
|
|
|
d.dept_id,
|
|
|
|
d.dept_id,
|
|
|
|
d.parent_id,
|
|
|
|
d.parent_id,
|
|
|
@ -256,7 +256,7 @@
|
|
|
|
LEFT JOIN sys_dept d ON b.dept_id = d.dept_id
|
|
|
|
LEFT JOIN sys_dept d ON b.dept_id = d.dept_id
|
|
|
|
WHERE
|
|
|
|
WHERE
|
|
|
|
d.dept_id IS NOT NULL
|
|
|
|
d.dept_id IS NOT NULL
|
|
|
|
AND d.parent_id != 0
|
|
|
|
|
|
|
|
GROUP BY
|
|
|
|
GROUP BY
|
|
|
|
d.dept_id,
|
|
|
|
d.dept_id,
|
|
|
|
d.parent_id,
|
|
|
|
d.parent_id,
|
|
|
@ -290,7 +290,7 @@
|
|
|
|
LEFT JOIN sys_dept d ON b.dept_id = d.dept_id
|
|
|
|
LEFT JOIN sys_dept d ON b.dept_id = d.dept_id
|
|
|
|
WHERE
|
|
|
|
WHERE
|
|
|
|
d.dept_id IS NOT NULL
|
|
|
|
d.dept_id IS NOT NULL
|
|
|
|
AND d.parent_id != 0
|
|
|
|
|
|
|
|
GROUP BY
|
|
|
|
GROUP BY
|
|
|
|
d.dept_id,
|
|
|
|
d.dept_id,
|
|
|
|
d.parent_id,
|
|
|
|
d.parent_id,
|
|
|
@ -324,7 +324,7 @@
|
|
|
|
LEFT JOIN sys_dept d ON b.dept_id = d.dept_id
|
|
|
|
LEFT JOIN sys_dept d ON b.dept_id = d.dept_id
|
|
|
|
WHERE
|
|
|
|
WHERE
|
|
|
|
d.dept_id IS NOT NULL
|
|
|
|
d.dept_id IS NOT NULL
|
|
|
|
AND d.parent_id != 0
|
|
|
|
|
|
|
|
GROUP BY
|
|
|
|
GROUP BY
|
|
|
|
d.dept_id,
|
|
|
|
d.dept_id,
|
|
|
|
d.parent_id,
|
|
|
|
d.parent_id,
|
|
|
@ -358,7 +358,7 @@
|
|
|
|
LEFT JOIN sys_dept d ON b.dept_id = d.dept_id
|
|
|
|
LEFT JOIN sys_dept d ON b.dept_id = d.dept_id
|
|
|
|
WHERE
|
|
|
|
WHERE
|
|
|
|
d.dept_id IS NOT NULL
|
|
|
|
d.dept_id IS NOT NULL
|
|
|
|
AND d.parent_id != 0
|
|
|
|
|
|
|
|
GROUP BY
|
|
|
|
GROUP BY
|
|
|
|
d.dept_id,
|
|
|
|
d.dept_id,
|
|
|
|
d.parent_id,
|
|
|
|
d.parent_id,
|
|
|
|