|
|
@@ -316,6 +316,24 @@ public class SysUserOrderAuthorServiceImpl implements ISysUserOrderAuthorService
|
|
|
roleUser.setUserId(sysUserExt.getUserId());
|
|
|
roleUser.setAuthorId(sys.getAuthorId());
|
|
|
userAuthorRelMapper.insertSysUserAuthorRel(roleUser);
|
|
|
+ List<SysUserOrderAuthor> OrderList = sysUserOrderAuthorMapper.selectAuthorIdByParentId(sys.getAuthorId());
|
|
|
+ if(OrderList.size()>0){
|
|
|
+ OrderList.forEach(sysUserOrderAuthor -> {
|
|
|
+ SysUserAuthorRel userRel = new SysUserAuthorRel();
|
|
|
+ userRel.setUserId(sysUserExt.getUserId());
|
|
|
+ userRel.setAuthorId(sysUserOrderAuthor.getAuthorId());
|
|
|
+ userAuthorRelMapper.insertSysUserAuthorRel(userRel);
|
|
|
+ List<SysUserOrderAuthor> OList = sysUserOrderAuthorMapper.selectAuthorIdByParentId(sysUserOrderAuthor.getAuthorId());
|
|
|
+ if(OList.size()>0){
|
|
|
+ OList.forEach(sysUserOrder -> {
|
|
|
+ SysUserAuthorRel use = new SysUserAuthorRel();
|
|
|
+ use.setUserId(sysUserExt.getUserId());
|
|
|
+ use.setAuthorId(sysUserOrder.getAuthorId());
|
|
|
+ userAuthorRelMapper.insertSysUserAuthorRel(use);
|
|
|
+ });
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
}
|