|
@@ -50,22 +50,22 @@ public class ChartsUtilService {
|
|
|
if (tableName == null || "".equals(tableName)) {
|
|
if (tableName == null || "".equals(tableName)) {
|
|
|
return "";
|
|
return "";
|
|
|
} else {
|
|
} else {
|
|
|
- return columnNameUtil(userId, baseId, tableName, true, id, -1);
|
|
|
|
|
|
|
+ return columnNameUtil(userId, baseId, tableName, true, id, -1, role);
|
|
|
}
|
|
}
|
|
|
} else {
|
|
} else {
|
|
|
//先拿图表创建者权限,在取分发权限
|
|
//先拿图表创建者权限,在取分发权限
|
|
|
- String sql = columnNameUtil(createID, baseId, tableName, true, id, -1);
|
|
|
|
|
- return columnNameUtil(userId, baseId, sql, false, id, -1);
|
|
|
|
|
|
|
+ String sql = columnNameUtil(createID, baseId, tableName, true, id, -1, role);
|
|
|
|
|
+ return columnNameUtil(userId, baseId, sql, false, id, -1, role);
|
|
|
}
|
|
}
|
|
|
}else {
|
|
}else {
|
|
|
- return columnNameUtil(createID, baseId, tableName, true, id, -1);
|
|
|
|
|
|
|
+ return columnNameUtil(createID, baseId, tableName, true, id, -1, role);
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- public String columnNameUtil(int userId, int baseId, String tableName, boolean isOrder, int id, int createBId){
|
|
|
|
|
|
|
+ public String columnNameUtil(int userId, int baseId, String tableName, boolean isOrder, int id, int createBId, String role){
|
|
|
//用户不是创建人
|
|
//用户不是创建人
|
|
|
List<String> strList = new ArrayList<>();
|
|
List<String> strList = new ArrayList<>();
|
|
|
- String role = BaseContextHolder.getRole();
|
|
|
|
|
|
|
+ //String role = BaseContextHolder.getRole();
|
|
|
if (isOrder){
|
|
if (isOrder){
|
|
|
int baseCreateId;
|
|
int baseCreateId;
|
|
|
if (id != 0) {
|
|
if (id != 0) {
|