部门接口,字典树接口调整
This commit is contained in:
@@ -30,6 +30,9 @@ public class PvTerminalTreeVO {
|
||||
@ApiModelProperty(name = "code",value = "单位编号")
|
||||
private String code;
|
||||
|
||||
@ApiModelProperty(name = "level",value = "层级 1.全国 2.省级 3.市级 4.县级")
|
||||
private Integer level;
|
||||
|
||||
|
||||
|
||||
@ApiModelProperty(name = "children",value = "子级")
|
||||
|
||||
@@ -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