提交 2a72edf6 编写于 作者: misaka's avatar misaka

注册系统时添加系统逻辑名称

上级 a78a1475
...@@ -137,6 +137,10 @@ public class SysPSSystem extends EntityMP implements Serializable { ...@@ -137,6 +137,10 @@ public class SysPSSystem extends EntityMP implements Serializable {
{ {
if (!StringUtils.isEmpty(this.getPssystemid())) if (!StringUtils.isEmpty(this.getPssystemid()))
this.sysstructure.setSystemid(this.getPssystemid()); this.sysstructure.setSystemid(this.getPssystemid());
if (!StringUtils.isEmpty(this.getPssystemname()))
this.sysstructure.setSystemname(this.getPssystemname());
else
this.sysstructure.setSystemname(this.getPssystemid());
} }
return this.sysstructure; return this.sysstructure;
} }
......
...@@ -18,6 +18,8 @@ public class SysStructure ...@@ -18,6 +18,8 @@ public class SysStructure
{ {
private String systemid; private String systemid;
private String systemname;
private List<EntityNode> entities; private List<EntityNode> entities;
@JsonProperty("unires") @JsonProperty("unires")
...@@ -31,7 +33,7 @@ public class SysStructure ...@@ -31,7 +33,7 @@ public class SysStructure
public PermissionNode getPermissionTree(PermissionType type) public PermissionNode getPermissionTree(PermissionType type)
{ {
PermissionNode root = PermissionNode.builder().id(systemid).label(systemid).systemid(systemid).build(); PermissionNode root = PermissionNode.builder().id(systemid).label(systemname).systemid(systemid).build();
switch (type) switch (type)
{ {
case OPPRIV: case OPPRIV:
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册