|
@@ -33,13 +33,11 @@ import cn.com.qmth.examcloud.core.basic.api.controller.bean.PrivilegeGroupDomain
|
|
|
import cn.com.qmth.examcloud.core.basic.api.controller.bean.RoleDomain;
|
|
|
import cn.com.qmth.examcloud.core.basic.api.controller.bean.UpdateRolePrivilegeRelationsDomain;
|
|
|
import cn.com.qmth.examcloud.core.basic.base.constants.BasicConsts;
|
|
|
-import cn.com.qmth.examcloud.core.basic.dao.AppRepo;
|
|
|
import cn.com.qmth.examcloud.core.basic.dao.OrgRepo;
|
|
|
import cn.com.qmth.examcloud.core.basic.dao.PrivilegeGroupRepo;
|
|
|
import cn.com.qmth.examcloud.core.basic.dao.PrivilegeRepo;
|
|
|
import cn.com.qmth.examcloud.core.basic.dao.RolePrivilegeRelationRepo;
|
|
|
import cn.com.qmth.examcloud.core.basic.dao.RoleRepo;
|
|
|
-import cn.com.qmth.examcloud.core.basic.dao.entity.AppEntity;
|
|
|
import cn.com.qmth.examcloud.core.basic.dao.entity.PrivilegeEntity;
|
|
|
import cn.com.qmth.examcloud.core.basic.dao.entity.PrivilegeGroupEntity;
|
|
|
import cn.com.qmth.examcloud.core.basic.dao.entity.RoleEntity;
|
|
@@ -69,9 +67,6 @@ public class RolePrivilegeController extends ControllerSupport {
|
|
|
private static List<String> disabledCodeList = Arrays
|
|
|
.asList(new String[]{"index_privilege_group_list", "index_app_list", "index_school"});
|
|
|
|
|
|
- @Autowired
|
|
|
- AppRepo appRepo;
|
|
|
-
|
|
|
@Autowired
|
|
|
PrivilegeGroupRepo privilegeGroupRepo;
|
|
|
|
|
@@ -201,11 +196,6 @@ public class RolePrivilegeController extends ControllerSupport {
|
|
|
for (PrivilegeGroupEntity cur : list) {
|
|
|
PrivilegeGroupDomain bean = new PrivilegeGroupDomain();
|
|
|
bean.setId(cur.getId());
|
|
|
- bean.setAppId(cur.getAppId());
|
|
|
- AppEntity app = GlobalHelper.getEntity(appRepo, cur.getAppId(), AppEntity.class);
|
|
|
- if (null != app) {
|
|
|
- bean.setAppName(app.getName());
|
|
|
- }
|
|
|
bean.setCode(cur.getCode());
|
|
|
bean.setName(cur.getName());
|
|
|
|