新增数据库Wrapper支持反解

This commit is contained in:
Looly
2024-03-28 15:53:11 +08:00
parent c93e28d775
commit abfa378ce0
2 changed files with 5 additions and 3 deletions

View File

@@ -121,10 +121,11 @@ public class Wrapper implements Serializable {
}
/**
* 解包装字段名<br>
* 解包装字段名<br>
*
* @param field 字段名
* @return 未包装的字段名
* @since 5.8.27
*/
public String unWrap(String field) {
if (preWrapQuote == null || sufWrapQuote == null || StrUtil.isBlank(field)) {
@@ -136,7 +137,7 @@ public class Wrapper implements Serializable {
return field;
}
//如果字段中包含通配符或者括号(字段通配符或者函数),不做包装
//如果字段中包含通配符或者括号(字段通配符或者函数),不做包装
if (StrUtil.containsAnyIgnoreCase(field, "*", "(", " ", " as ")) {
return field;
}