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

ibizdev提交

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