Merge pull request #5811 from dataease/pr@dev@fix_linkage-error

fix(仪表板): 修复仪表板空属性联动时被联动视图出现报错问题
This commit is contained in:
王嘉豪 2023-08-01 12:56:33 +08:00 committed by GitHub
commit 15880af0bc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -5,6 +5,10 @@ package io.dataease.provider.query;
*/
public class SQLUtils {
public static String transKeyword(String value) {
return value.replaceAll("'", "\\\\'");
if(value == null){
return null;
}else{
return value.replaceAll("'", "\\\\'");
}
}
}