在线报表不支持子查询,解析报错 #4040

https://github.com/jeecgboot/jeecg-boot/issues/4040
pull/4077/head
zhangdaiscott 2022-09-27 20:30:53 +08:00
parent 47d6af5c46
commit ae74abe727
1 changed files with 8 additions and 1 deletions

View File

@ -41,7 +41,14 @@ public abstract class AbstractQueryBlackListHandler {
* @return * @return
*/ */
public boolean isPass(String sql) { public boolean isPass(String sql) {
List<QueryTable> list = this.getQueryTableInfo(sql.toLowerCase()); List<QueryTable> list = null;
//【jeecg-boot/issues/4040】在线报表不支持子查询解析报错 #4040
try {
list = this.getQueryTableInfo(sql.toLowerCase());
} catch (Exception e) {
log.warn("校验sql语句解析报错{}",e.getMessage());
}
if(list==null){ if(list==null){
return true; return true;
} }