소스 검색

数据元加载权限过滤:description=3?deptid由‘;’改为‘,’?

guoyuanquan@mail.taiji.com.cn 8 달 전
부모
커밋
2bd64547d8
1개의 변경된 파일4개의 추가작업 그리고 4개의 파일을 삭제
  1. 4 4
      cn.com.taiji.system/src/main/java/cn/com/taiji/zhongxiao/service/DatametaService.java

+ 4 - 4
cn.com.taiji.system/src/main/java/cn/com/taiji/zhongxiao/service/DatametaService.java

@@ -110,12 +110,12 @@ public class DatametaService extends BaseService {
 						boolean flag_bmsh_role = false;
 						boolean flag_zgbmsh_role = false;
 						for (Role role : serRole) {
-							if(admin_id.equals(role.getRoleId()))
+							if(admin_id.equals(role.getRoleId())&&!"3".equals(dto.getDescription()))
 								flag = true;
-							if(bmsh_role.equals(role.getRoleId())){
+							if(bmsh_role.equals(role.getRoleId())&&!"3".equals(dto.getDescription())){
 								flag_bmsh_role=true;
 							}
-							if(zgbmsh_role.equals(role.getRoleId())){
+							if(zgbmsh_role.equals(role.getRoleId())&&!"3".equals(dto.getDescription())){
 								flag_zgbmsh_role=true;
 							}
 						}
@@ -158,7 +158,7 @@ public class DatametaService extends BaseService {
 			        	Predicate[] statList1 = new Predicate[2];
 			        	if(flag_bmsh_role) {
 			        		 In<Object> in = cb.in(root.get("creatorOrg"));
-					            String []strArgs=dto.getCreatorOrg().split(";");
+					            String []strArgs=dto.getCreatorOrg().split(",");
 					            Boolean exist=false; 
 					            //获取当前用户所处机构
 							  for (String st : strArgs) {