Commit c5047ec9f418d98157d939d39ba51f9abd0defc4

Authored by fangcheng
1 parent 437e5b7680
Exists in master

修改boolean 类型方法名称

Showing 2 changed files with 2 additions and 2 deletions

center.manager/src/main/java/com/lyms/cm/entity/sys/SysRoles.java View file @ c5047ec
... ... @@ -164,7 +164,7 @@
164 164 this.modified = modified;
165 165 }
166 166  
167   - public boolean isEnable() {
  167 + public boolean isEnabled() {
168 168 return StatusEnum.isEnabled(this.getEnable());
169 169 }
170 170  
center.manager/src/main/java/com/lyms/cm/service/sys/impl/SysRolesServiceImpl.java View file @ c5047ec
... ... @@ -104,7 +104,7 @@
104 104  
105 105 // 判断当前用户的启用,禁用情况
106 106 // TODO 拆分成SQL执行,两种操作
107   - if (role.isEnable()) {
  107 + if (role.isEnabled()) {
108 108 role.setEnable(StatusEnum.DISENABLED.getStatus());
109 109 } else {
110 110 role.setEnable(StatusEnum.ENABLED.getStatus());