mirror of
https://gitee.com/dromara/liteFlow.git
synced 2026-05-14 04:02:09 +08:00
兼容数据
This commit is contained in:
@@ -59,8 +59,15 @@ public class ChainRead extends AbstractSqlRead<ChainVO> {
|
||||
String customFilterType = super.config.getCustomFilterType();
|
||||
|
||||
if (StrUtil.isNotBlank(customFilterType)) {
|
||||
String replace = customFilterType.replace("where", "").replace("WHERE", "");
|
||||
String trim = replace.trim();
|
||||
|
||||
if (trim.startsWith("AND") || trim.startsWith("and")) {
|
||||
trim = trim.substring(3);
|
||||
}
|
||||
|
||||
return StrUtil.format(SqlReadConstant.SQL_PATTERN_WITH_SUFFIX, chainTableName,
|
||||
chainApplicationNameField, customFilterType);
|
||||
chainApplicationNameField, trim);
|
||||
} else {
|
||||
return StrUtil.format(SqlReadConstant.SQL_PATTERN, chainTableName, chainApplicationNameField);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user