部门接口,字典树接口调整
This commit is contained in:
@@ -166,7 +166,10 @@
|
||||
|
||||
|
||||
<select id="allDeptList" resultType="PvTerminalTreeVO">
|
||||
select id,name,pid,pids,code from sys_dept where state = 1 order by sort
|
||||
select
|
||||
id,name,pid,pids,code,
|
||||
LENGTH( pids ) - LENGTH(REPLACE ( pids, ',', '' )) +1 as `level`
|
||||
from sys_dept where state = 1 order by sort
|
||||
</select>
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user