Commit afbf6c74 authored by chenzhao's avatar chenzhao

权限sql拼接修改

parent 41b5f3ba
...@@ -307,7 +307,7 @@ public class UserEmpowerInterceptor implements Interceptor { ...@@ -307,7 +307,7 @@ public class UserEmpowerInterceptor implements Interceptor {
sql = sql+ getnotInData( filed,wnotdata); sql = sql+ getnotInData( filed,wnotdata);
} }
//内部全选, 外度全选 //内部全选, 外度全选
if(wdata!=null&&wdata.size()!=0&&wnotdata==null){ if(wdata!=null&&wdata.size()!=0&&(wnotdata==null||wnotdata.size() == 0)){
//返回恒等看所有 //返回恒等看所有
sql= sql+" 1=1 "; sql= sql+" 1=1 ";
} }
...@@ -323,7 +323,7 @@ public class UserEmpowerInterceptor implements Interceptor { ...@@ -323,7 +323,7 @@ public class UserEmpowerInterceptor implements Interceptor {
sql = sql+getInData( filed,data); sql = sql+getInData( filed,data);
} }
//内部选一部分 外部选一部分 //内部选一部分 外部选一部分
if(wdata!=null&&wdata.size()!=0&&wnotdata!=null){ if(wdata!=null&&wdata.size()!=0&&wnotdata!=null&&wnotdata.size()!=0){
data.addAll(wdata); data.addAll(wdata);
sql = sql+getInData( filed,data); sql = sql+getInData( filed,data);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment