提交 4c46e598 编写于 作者: ibizdev's avatar ibizdev

ibizdev提交

上级 4b8b414f
...@@ -94,7 +94,7 @@ public class SYS_PERMISSION extends EntityMP implements Serializable { ...@@ -94,7 +94,7 @@ public class SYS_PERMISSION extends EntityMP implements Serializable {
@JsonIgnore @JsonIgnore
@JSONField(serialize = false) @JSONField(serialize = false)
@TableField(exist = false) @TableField(exist = false)
private List<cn.ibizlab.core.uaa.domain.SYS_ROLE_PERMISSION> ; private List<cn.ibizlab.core.uaa.domain.SYS_ROLE_PERMISSION> sysRolePermission;
/** /**
......
...@@ -80,7 +80,7 @@ public class SYS_ROLE extends EntityMP implements Serializable { ...@@ -80,7 +80,7 @@ public class SYS_ROLE extends EntityMP implements Serializable {
@JsonIgnore @JsonIgnore
@JSONField(serialize = false) @JSONField(serialize = false)
@TableField(exist = false) @TableField(exist = false)
private List<cn.ibizlab.core.uaa.domain.SYS_ROLE_PERMISSION> ; private List<cn.ibizlab.core.uaa.domain.SYS_ROLE_PERMISSION> sysRolePermission;
/** /**
* 用户角色关系 * 用户角色关系
...@@ -88,7 +88,7 @@ public class SYS_ROLE extends EntityMP implements Serializable { ...@@ -88,7 +88,7 @@ public class SYS_ROLE extends EntityMP implements Serializable {
@JsonIgnore @JsonIgnore
@JSONField(serialize = false) @JSONField(serialize = false)
@TableField(exist = false) @TableField(exist = false)
private List<cn.ibizlab.core.uaa.domain.SYS_USER_ROLE> ; private List<cn.ibizlab.core.uaa.domain.SYS_USER_ROLE> sysUserRole;
/** /**
......
...@@ -62,7 +62,7 @@ public class SYS_USER extends EntityMP implements Serializable { ...@@ -62,7 +62,7 @@ public class SYS_USER extends EntityMP implements Serializable {
@JsonIgnore @JsonIgnore
@JSONField(serialize = false) @JSONField(serialize = false)
@TableField(exist = false) @TableField(exist = false)
private List<cn.ibizlab.core.uaa.domain.SYS_USER_ROLE> ; private List<cn.ibizlab.core.uaa.domain.SYS_USER_ROLE> sysUserRole;
/** /**
......
...@@ -95,7 +95,7 @@ public class SYS_PERMISSIONServiceImpl extends ServiceImpl<SYS_PERMISSIONMapper, ...@@ -95,7 +95,7 @@ public class SYS_PERMISSIONServiceImpl extends ServiceImpl<SYS_PERMISSIONMapper,
public boolean update(SYS_PERMISSION et) { public boolean update(SYS_PERMISSION et) {
if(!update(et,(Wrapper) et.getUpdateWrapper(true).eq("sys_permissionid",et.getPermissionid()))) if(!update(et,(Wrapper) et.getUpdateWrapper(true).eq("sys_permissionid",et.getPermissionid())))
return false; return false;
sysRolePermissionService.saveByPermissionid(et.getPermissionid(),et.get()); sysRolePermissionService.saveByPermissionid(et.getPermissionid(),et.getSysRolePermission());
CachedBeanCopier.copy(get(et.getPermissionid()),et); CachedBeanCopier.copy(get(et.getPermissionid()),et);
return true; return true;
} }
...@@ -110,7 +110,7 @@ public class SYS_PERMISSIONServiceImpl extends ServiceImpl<SYS_PERMISSIONMapper, ...@@ -110,7 +110,7 @@ public class SYS_PERMISSIONServiceImpl extends ServiceImpl<SYS_PERMISSIONMapper,
public boolean create(SYS_PERMISSION et) { public boolean create(SYS_PERMISSION et) {
if(!this.retBool(this.baseMapper.insert(et))) if(!this.retBool(this.baseMapper.insert(et)))
return false; return false;
sysRolePermissionService.saveByPermissionid(et.getPermissionid(),et.get()); sysRolePermissionService.saveByPermissionid(et.getPermissionid(),et.getSysRolePermission());
CachedBeanCopier.copy(get(et.getPermissionid()),et); CachedBeanCopier.copy(get(et.getPermissionid()),et);
return true; return true;
} }
...@@ -134,7 +134,7 @@ public class SYS_PERMISSIONServiceImpl extends ServiceImpl<SYS_PERMISSIONMapper, ...@@ -134,7 +134,7 @@ public class SYS_PERMISSIONServiceImpl extends ServiceImpl<SYS_PERMISSIONMapper,
et.setPermissionid(key); et.setPermissionid(key);
} }
else{ else{
et.set(sysRolePermissionService.selectByPermissionid(key)); et.setSysRolePermission(sysRolePermissionService.selectByPermissionid(key));
} }
return et; return et;
} }
......
...@@ -80,8 +80,8 @@ public class SYS_ROLEServiceImpl extends ServiceImpl<SYS_ROLEMapper, SYS_ROLE> i ...@@ -80,8 +80,8 @@ public class SYS_ROLEServiceImpl extends ServiceImpl<SYS_ROLEMapper, SYS_ROLE> i
public boolean update(SYS_ROLE et) { public boolean update(SYS_ROLE et) {
if(!update(et,(Wrapper) et.getUpdateWrapper(true).eq("sys_roleid",et.getRoleid()))) if(!update(et,(Wrapper) et.getUpdateWrapper(true).eq("sys_roleid",et.getRoleid())))
return false; return false;
sysRolePermissionService.saveByRoleid(et.getRoleid(),et.get()); sysRolePermissionService.saveByRoleid(et.getRoleid(),et.getSysRolePermission());
sysUserRoleService.saveByRoleid(et.getRoleid(),et.get()); sysUserRoleService.saveByRoleid(et.getRoleid(),et.getSysUserRole());
CachedBeanCopier.copy(get(et.getRoleid()),et); CachedBeanCopier.copy(get(et.getRoleid()),et);
return true; return true;
} }
...@@ -96,8 +96,8 @@ public class SYS_ROLEServiceImpl extends ServiceImpl<SYS_ROLEMapper, SYS_ROLE> i ...@@ -96,8 +96,8 @@ public class SYS_ROLEServiceImpl extends ServiceImpl<SYS_ROLEMapper, SYS_ROLE> i
public boolean create(SYS_ROLE et) { public boolean create(SYS_ROLE et) {
if(!this.retBool(this.baseMapper.insert(et))) if(!this.retBool(this.baseMapper.insert(et)))
return false; return false;
sysRolePermissionService.saveByRoleid(et.getRoleid(),et.get()); sysRolePermissionService.saveByRoleid(et.getRoleid(),et.getSysRolePermission());
sysUserRoleService.saveByRoleid(et.getRoleid(),et.get()); sysUserRoleService.saveByRoleid(et.getRoleid(),et.getSysUserRole());
CachedBeanCopier.copy(get(et.getRoleid()),et); CachedBeanCopier.copy(get(et.getRoleid()),et);
return true; return true;
} }
...@@ -116,8 +116,8 @@ public class SYS_ROLEServiceImpl extends ServiceImpl<SYS_ROLEMapper, SYS_ROLE> i ...@@ -116,8 +116,8 @@ public class SYS_ROLEServiceImpl extends ServiceImpl<SYS_ROLEMapper, SYS_ROLE> i
et.setRoleid(key); et.setRoleid(key);
} }
else{ else{
et.set(sysRolePermissionService.selectByRoleid(key)); et.setSysRolePermission(sysRolePermissionService.selectByRoleid(key));
et.set(sysUserRoleService.selectByRoleid(key)); et.setSysUserRole(sysUserRoleService.selectByRoleid(key));
} }
return et; return et;
} }
......
...@@ -65,7 +65,7 @@ public class SYS_USERServiceImpl extends ServiceImpl<SYS_USERMapper, SYS_USER> i ...@@ -65,7 +65,7 @@ public class SYS_USERServiceImpl extends ServiceImpl<SYS_USERMapper, SYS_USER> i
public boolean update(SYS_USER et) { public boolean update(SYS_USER et) {
if(!update(et,(Wrapper) et.getUpdateWrapper(true).eq("userid",et.getUserid()))) if(!update(et,(Wrapper) et.getUpdateWrapper(true).eq("userid",et.getUserid())))
return false; return false;
sysUserRoleService.saveByUserid(et.getUserid(),et.get()); sysUserRoleService.saveByUserid(et.getUserid(),et.getSysUserRole());
CachedBeanCopier.copy(get(et.getUserid()),et); CachedBeanCopier.copy(get(et.getUserid()),et);
return true; return true;
} }
...@@ -89,7 +89,7 @@ public class SYS_USERServiceImpl extends ServiceImpl<SYS_USERMapper, SYS_USER> i ...@@ -89,7 +89,7 @@ public class SYS_USERServiceImpl extends ServiceImpl<SYS_USERMapper, SYS_USER> i
et.setUserid(key); et.setUserid(key);
} }
else{ else{
et.set(sysUserRoleService.selectByUserid(key)); et.setSysUserRole(sysUserRoleService.selectByUserid(key));
} }
return et; return et;
} }
...@@ -129,7 +129,7 @@ public class SYS_USERServiceImpl extends ServiceImpl<SYS_USERMapper, SYS_USER> i ...@@ -129,7 +129,7 @@ public class SYS_USERServiceImpl extends ServiceImpl<SYS_USERMapper, SYS_USER> i
public boolean create(SYS_USER et) { public boolean create(SYS_USER et) {
if(!this.retBool(this.baseMapper.insert(et))) if(!this.retBool(this.baseMapper.insert(et)))
return false; return false;
sysUserRoleService.saveByUserid(et.getUserid(),et.get()); sysUserRoleService.saveByUserid(et.getUserid(),et.getSysUserRole());
CachedBeanCopier.copy(get(et.getUserid()),et); CachedBeanCopier.copy(get(et.getUserid()),et);
return true; return true;
} }
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册