|
@@ -127,8 +127,13 @@ public class PermissionAspect implements Interceptor {
|
|
post = getSysPost(postUserList);
|
|
post = getSysPost(postUserList);
|
|
|
|
|
|
// 比较Scope字段并取最大值
|
|
// 比较Scope字段并取最大值
|
|
- if(null != post){
|
|
|
|
- scope = Integer.min(scope, post.getScope());
|
|
|
|
|
|
+ if(null != post ){
|
|
|
|
+ if("JCDW".equals(post.getKeyValue())){
|
|
|
|
+ scope = post.getScope();
|
|
|
|
+ }else {
|
|
|
|
+ scope = Integer.min(scope, post.getScope());
|
|
|
|
+ }
|
|
|
|
+
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
@@ -233,17 +238,24 @@ public class PermissionAspect implements Interceptor {
|
|
if (bktype) {
|
|
if (bktype) {
|
|
|
|
|
|
List<OrganizationEvaluationRule> list = CacheContext.ruleMap.get(organizationId);
|
|
List<OrganizationEvaluationRule> list = CacheContext.ruleMap.get(organizationId);
|
|
- StringBuilder bis = new StringBuilder("(");
|
|
|
|
- for (OrganizationEvaluationRule rule : list) {
|
|
|
|
- rule.getBinSection();
|
|
|
|
- for (String bi : rule.getBinSection().split(",")) {
|
|
|
|
- bis.append("'").append(bi).append("',");
|
|
|
|
|
|
+ StringBuilder bis = new StringBuilder();
|
|
|
|
+ if(null !=list && list.size()>0){
|
|
|
|
+ bis.append("(");
|
|
|
|
+ for (OrganizationEvaluationRule rule : list) {
|
|
|
|
+ rule.getBinSection();
|
|
|
|
+ for (String bi : rule.getBinSection().split(",")) {
|
|
|
|
+ bis.append("'").append(bi).append("',");
|
|
|
|
+ }
|
|
}
|
|
}
|
|
|
|
+ bis.append(")");
|
|
}
|
|
}
|
|
- bis.append(")");
|
|
|
|
-
|
|
|
|
System.out.println("查询条件:"+bis.toString().replace(",)",")"));
|
|
System.out.println("查询条件:"+bis.toString().replace(",)",")"));
|
|
- sql = getSql(sql, bis.toString().replace(",)",")"), "bktype");
|
|
|
|
|
|
+ if(bis.toString().length()<=0){
|
|
|
|
+ sql = getSql(sql,"('')", "bktype");
|
|
|
|
+ }else {
|
|
|
|
+ sql = getSql(sql, bis.toString().replace(",)",")"), "bktype");
|
|
|
|
+ }
|
|
|
|
+
|
|
}
|
|
}
|
|
|
|
|
|
} else {
|
|
} else {
|