提交 93bc4d30 编写于 作者: ibizdev's avatar ibizdev

laizhilong 发布系统代码

上级 bf23f0f7
...@@ -170,6 +170,22 @@ public class SYS_ROLE_PERMISSION extends EntityMP implements Serializable { ...@@ -170,6 +170,22 @@ public class SYS_ROLE_PERMISSION extends EntityMP implements Serializable {
this.modify("systemid",systemid); this.modify("systemid",systemid);
} }
/**
* 获取 [角色权限关系表标识]
*/
public String getRolepermissionid(){
if(ObjectUtils.isEmpty(rolepermissionid)){
rolepermissionid=(String)getDefaultKey(true);
}
return rolepermissionid;
}
@Override
public Serializable getDefaultKey(boolean gen) {
if((!ObjectUtils.isEmpty(this.getRoleid()))&&(!ObjectUtils.isEmpty(this.getPermissionid())))
return DigestUtils.md5DigestAsHex(String.format("%s||%s" ,this.getRoleid(),this.getPermissionid()).getBytes());
return null;
}
} }
...@@ -97,7 +97,7 @@ public class SYS_ROLE_PERMISSIONServiceImpl extends ServiceImpl<SYS_ROLE_PERMISS ...@@ -97,7 +97,7 @@ public class SYS_ROLE_PERMISSIONServiceImpl extends ServiceImpl<SYS_ROLE_PERMISS
@Override @Override
public void createBatch(List<SYS_ROLE_PERMISSION> list) { public void createBatch(List<SYS_ROLE_PERMISSION> list) {
list.forEach(item->fillParentData(item)); list.forEach(item->fillParentData(item));
this.saveBatch(list,batchSize); this.saveOrUpdateBatch(list,batchSize);
} }
@Override @Override
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册