Forráskód Böngészése

自定义菜单功能开发

lideyin 5 éve
szülő
commit
05694ac313

+ 3 - 0
examcloud-core-basic-service/src/main/java/cn/com/qmth/examcloud/core/basic/service/impl/RolePrivilegeServiceImpl.java

@@ -127,6 +127,9 @@ public class RolePrivilegeServiceImpl implements RolePrivilegeService {
 		rootOrgPrivilegeRelationRepo.deleteByRootOrgIdAndGroupId(rootOrgId, privilegeGroupId);
 
 		for (Long cur : privilegeIdSet) {
+			if(cur==-1){
+				continue;
+			}
 			PrivilegeEntity privilegeEntity = GlobalHelper.getPresentEntity(privilegeRepo, cur,
 					PrivilegeEntity.class);
 			if (!privilegeEntity.getGroupId().equals(privilegeGroupId)) {