|
@@ -10,6 +10,8 @@ import com.zhongzheng.common.constant.UserConstants;
|
|
|
import com.zhongzheng.common.core.domain.entity.SysRole;
|
|
|
import com.zhongzheng.common.exception.CustomException;
|
|
|
import com.zhongzheng.common.utils.spring.SpringUtils;
|
|
|
+import com.zhongzheng.modules.course.bo.CourseHandoutsBusinessAddBo;
|
|
|
+import com.zhongzheng.modules.system.bo.SysRoleBusinessQueryBo;
|
|
|
import com.zhongzheng.modules.system.domain.SysRoleBusiness;
|
|
|
import com.zhongzheng.modules.system.domain.SysRoleDept;
|
|
|
import com.zhongzheng.modules.system.domain.SysRoleMenu;
|
|
@@ -20,6 +22,7 @@ import com.zhongzheng.modules.system.mapper.SysRoleMenuMapper;
|
|
|
import com.zhongzheng.modules.system.service.ISysRoleBusinessService;
|
|
|
import com.zhongzheng.modules.system.service.ISysRoleService;
|
|
|
import com.zhongzheng.modules.system.mapper.SysUserRoleMapper;
|
|
|
+import com.zhongzheng.modules.system.vo.SysRoleBusinessVo;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
import org.springframework.transaction.annotation.Transactional;
|
|
@@ -119,7 +122,18 @@ public class SysRoleServiceImpl extends ServiceImpl<SysRoleMapper, SysRole> impl
|
|
|
*/
|
|
|
@Override
|
|
|
public SysRole selectRoleById(Long roleId) {
|
|
|
- return getById(roleId);
|
|
|
+ SysRole sysRole = getById(roleId);
|
|
|
+ SysRoleBusinessQueryBo bo = new SysRoleBusinessQueryBo();
|
|
|
+ bo.setRoleId(roleId);
|
|
|
+ List<SysRoleBusinessVo> list = iSysRoleBusinessService.queryList(bo);
|
|
|
+ List<Long> bList = new ArrayList<>();
|
|
|
+ if(list!=null){
|
|
|
+ for (SysRoleBusinessVo vo : list) {
|
|
|
+ bList.add(vo.getBusinessId());
|
|
|
+ }
|
|
|
+ }
|
|
|
+ sysRole.setBusinessIds(bList);
|
|
|
+ return sysRole;
|
|
|
}
|
|
|
|
|
|
/**
|