Commit ab91a03bebca5636501a2ed0db97f93124377191
1 parent
10d70ed347
Exists in
master
修改路径名称
Showing 7 changed files with 116 additions and 115 deletions
- base.common/src/main/java/com/lyms/base/common/dao/role/PermissionsMapper.java
- base.common/src/main/java/com/lyms/base/common/dao/role/PermissionsMapper.xml
- base.common/src/main/java/com/lyms/base/common/dao/role/TreeNode.java
- base.common/src/main/java/com/lyms/base/common/entity/role/TreeNode.java
- base.common/src/main/java/com/lyms/base/common/service/role/PermissionsService.java
- base.common/src/main/java/com/lyms/base/common/service/role/impl/PermissionsServiceImpl.java
- center.manager/src/main/java/com/lyms/cm/controller/LoginController.java
base.common/src/main/java/com/lyms/base/common/dao/role/PermissionsMapper.java
View file @
ab91a03
base.common/src/main/java/com/lyms/base/common/dao/role/PermissionsMapper.xml
View file @
ab91a03
| ... | ... | @@ -23,7 +23,7 @@ |
| 23 | 23 | </sql> |
| 24 | 24 | |
| 25 | 25 | <!-- 根据puri获取子菜单--> |
| 26 | - <select id="getMenuTreeByPuri" resultType="com.lyms.base.common.dao.role.TreeNode"> | |
| 26 | + <select id="getMenuTreeByPuri" resultType="TreeNode"> | |
| 27 | 27 | SELECT uri as id ,puri as pid, uri as url,name as text FROM SYS_PERMISSIONS where type=1 and puri = #{puri} |
| 28 | 28 | </select> |
| 29 | 29 |
base.common/src/main/java/com/lyms/base/common/dao/role/TreeNode.java
View file @
ab91a03
| 1 | -package com.lyms.base.common.dao.role; | |
| 2 | - | |
| 3 | -import java.util.List; | |
| 4 | - | |
| 5 | -import org.apache.ibatis.type.Alias; | |
| 6 | - | |
| 7 | -@Alias(value = "TreeNode") | |
| 8 | -public class TreeNode implements java.io.Serializable { | |
| 9 | - | |
| 10 | - private static final long serialVersionUID = 980682543891282923L; | |
| 11 | - private String id; | |
| 12 | - private String text; | |
| 13 | - private String description; | |
| 14 | - private String url; | |
| 15 | - private String state = "closed";// open,closed | |
| 16 | - private boolean checked = false; | |
| 17 | - private Object attributes; | |
| 18 | - private List<TreeNode> children; | |
| 19 | - private String permissions; | |
| 20 | - private String icon; | |
| 21 | - private String pid; | |
| 22 | - | |
| 23 | - public String getId() { | |
| 24 | - return id; | |
| 25 | - } | |
| 26 | - | |
| 27 | - public void setId(String id) { | |
| 28 | - this.id = id; | |
| 29 | - } | |
| 30 | - | |
| 31 | - public String getText() { | |
| 32 | - return text; | |
| 33 | - } | |
| 34 | - | |
| 35 | - public void setText(String text) { | |
| 36 | - this.text = text; | |
| 37 | - } | |
| 38 | - | |
| 39 | - public String getDescription() { | |
| 40 | - return description; | |
| 41 | - } | |
| 42 | - | |
| 43 | - public void setDescription(String description) { | |
| 44 | - this.description = description; | |
| 45 | - } | |
| 46 | - | |
| 47 | - public String getUrl() { | |
| 48 | - return url; | |
| 49 | - } | |
| 50 | - | |
| 51 | - public void setUrl(String url) { | |
| 52 | - this.url = url; | |
| 53 | - } | |
| 54 | - | |
| 55 | - public String getState() { | |
| 56 | - return state; | |
| 57 | - } | |
| 58 | - | |
| 59 | - public void setState(String state) { | |
| 60 | - this.state = state; | |
| 61 | - } | |
| 62 | - | |
| 63 | - public boolean isChecked() { | |
| 64 | - return checked; | |
| 65 | - } | |
| 66 | - | |
| 67 | - public void setChecked(boolean checked) { | |
| 68 | - this.checked = checked; | |
| 69 | - } | |
| 70 | - | |
| 71 | - public Object getAttributes() { | |
| 72 | - return attributes; | |
| 73 | - } | |
| 74 | - | |
| 75 | - public void setAttributes(Object attributes) { | |
| 76 | - this.attributes = attributes; | |
| 77 | - } | |
| 78 | - | |
| 79 | - public List<TreeNode> getChildren() { | |
| 80 | - return children; | |
| 81 | - } | |
| 82 | - | |
| 83 | - public void setChildren(List<TreeNode> children) { | |
| 84 | - this.children = children; | |
| 85 | - } | |
| 86 | - | |
| 87 | - public String getPermissions() { | |
| 88 | - return permissions; | |
| 89 | - } | |
| 90 | - | |
| 91 | - public void setPermissions(String permissions) { | |
| 92 | - this.permissions = permissions; | |
| 93 | - } | |
| 94 | - | |
| 95 | - public String getIcon() { | |
| 96 | - return icon; | |
| 97 | - } | |
| 98 | - | |
| 99 | - public void setIcon(String icon) { | |
| 100 | - this.icon = icon; | |
| 101 | - } | |
| 102 | - | |
| 103 | - public String getPid() { | |
| 104 | - return pid; | |
| 105 | - } | |
| 106 | - | |
| 107 | - public void setPid(String pid) { | |
| 108 | - this.pid = pid; | |
| 109 | - } | |
| 110 | - | |
| 111 | -} |
base.common/src/main/java/com/lyms/base/common/entity/role/TreeNode.java
View file @
ab91a03
| 1 | +package com.lyms.base.common.entity.role; | |
| 2 | + | |
| 3 | +import java.util.List; | |
| 4 | + | |
| 5 | +import org.apache.ibatis.type.Alias; | |
| 6 | + | |
| 7 | +@Alias(value = "TreeNode") | |
| 8 | +public class TreeNode implements java.io.Serializable { | |
| 9 | + | |
| 10 | + private static final long serialVersionUID = 980682543891282923L; | |
| 11 | + private String id; | |
| 12 | + private String text; | |
| 13 | + private String description; | |
| 14 | + private String url; | |
| 15 | + private String state = "closed";// open,closed | |
| 16 | + private boolean checked = false; | |
| 17 | + private Object attributes; | |
| 18 | + private List<TreeNode> children; | |
| 19 | + private String permissions; | |
| 20 | + private String icon; | |
| 21 | + private String pid; | |
| 22 | + | |
| 23 | + public String getId() { | |
| 24 | + return id; | |
| 25 | + } | |
| 26 | + | |
| 27 | + public void setId(String id) { | |
| 28 | + this.id = id; | |
| 29 | + } | |
| 30 | + | |
| 31 | + public String getText() { | |
| 32 | + return text; | |
| 33 | + } | |
| 34 | + | |
| 35 | + public void setText(String text) { | |
| 36 | + this.text = text; | |
| 37 | + } | |
| 38 | + | |
| 39 | + public String getDescription() { | |
| 40 | + return description; | |
| 41 | + } | |
| 42 | + | |
| 43 | + public void setDescription(String description) { | |
| 44 | + this.description = description; | |
| 45 | + } | |
| 46 | + | |
| 47 | + public String getUrl() { | |
| 48 | + return url; | |
| 49 | + } | |
| 50 | + | |
| 51 | + public void setUrl(String url) { | |
| 52 | + this.url = url; | |
| 53 | + } | |
| 54 | + | |
| 55 | + public String getState() { | |
| 56 | + return state; | |
| 57 | + } | |
| 58 | + | |
| 59 | + public void setState(String state) { | |
| 60 | + this.state = state; | |
| 61 | + } | |
| 62 | + | |
| 63 | + public boolean isChecked() { | |
| 64 | + return checked; | |
| 65 | + } | |
| 66 | + | |
| 67 | + public void setChecked(boolean checked) { | |
| 68 | + this.checked = checked; | |
| 69 | + } | |
| 70 | + | |
| 71 | + public Object getAttributes() { | |
| 72 | + return attributes; | |
| 73 | + } | |
| 74 | + | |
| 75 | + public void setAttributes(Object attributes) { | |
| 76 | + this.attributes = attributes; | |
| 77 | + } | |
| 78 | + | |
| 79 | + public List<TreeNode> getChildren() { | |
| 80 | + return children; | |
| 81 | + } | |
| 82 | + | |
| 83 | + public void setChildren(List<TreeNode> children) { | |
| 84 | + this.children = children; | |
| 85 | + } | |
| 86 | + | |
| 87 | + public String getPermissions() { | |
| 88 | + return permissions; | |
| 89 | + } | |
| 90 | + | |
| 91 | + public void setPermissions(String permissions) { | |
| 92 | + this.permissions = permissions; | |
| 93 | + } | |
| 94 | + | |
| 95 | + public String getIcon() { | |
| 96 | + return icon; | |
| 97 | + } | |
| 98 | + | |
| 99 | + public void setIcon(String icon) { | |
| 100 | + this.icon = icon; | |
| 101 | + } | |
| 102 | + | |
| 103 | + public String getPid() { | |
| 104 | + return pid; | |
| 105 | + } | |
| 106 | + | |
| 107 | + public void setPid(String pid) { | |
| 108 | + this.pid = pid; | |
| 109 | + } | |
| 110 | + | |
| 111 | +} |
base.common/src/main/java/com/lyms/base/common/service/role/PermissionsService.java
View file @
ab91a03
| ... | ... | @@ -4,8 +4,8 @@ |
| 4 | 4 | import java.util.List; |
| 5 | 5 | import java.util.Set; |
| 6 | 6 | |
| 7 | -import com.lyms.base.common.dao.role.TreeNode; | |
| 8 | 7 | import com.lyms.base.common.entity.role.Permissions; |
| 8 | +import com.lyms.base.common.entity.role.TreeNode; | |
| 9 | 9 | import com.lyms.base.common.entity.user.Users; |
| 10 | 10 | import com.lyms.web.service.BaseService; |
| 11 | 11 |
base.common/src/main/java/com/lyms/base/common/service/role/impl/PermissionsServiceImpl.java
View file @
ab91a03
| ... | ... | @@ -10,8 +10,8 @@ |
| 10 | 10 | |
| 11 | 11 | import com.baomidou.mybatisplus.service.impl.ServiceImpl; |
| 12 | 12 | import com.lyms.base.common.dao.role.PermissionsMapper; |
| 13 | -import com.lyms.base.common.dao.role.TreeNode; | |
| 14 | 13 | import com.lyms.base.common.entity.role.Permissions; |
| 14 | +import com.lyms.base.common.entity.role.TreeNode; | |
| 15 | 15 | import com.lyms.base.common.entity.user.Users; |
| 16 | 16 | import com.lyms.base.common.service.role.PermissionsService; |
| 17 | 17 | import com.lyms.util.InstanceUtils; |
center.manager/src/main/java/com/lyms/cm/controller/LoginController.java
View file @
ab91a03
| ... | ... | @@ -16,7 +16,7 @@ |
| 16 | 16 | import org.springframework.web.bind.annotation.RequestMethod; |
| 17 | 17 | import org.springframework.web.bind.annotation.RequestParam; |
| 18 | 18 | |
| 19 | -import com.lyms.base.common.dao.role.TreeNode; | |
| 19 | +import com.lyms.base.common.entity.role.TreeNode; | |
| 20 | 20 | import com.lyms.base.common.entity.user.Users; |
| 21 | 21 | import com.lyms.base.common.enums.PermissionEnum; |
| 22 | 22 | import com.lyms.base.common.service.role.PermissionsService; |