mirror of
				https://github.com/continew-org/continew-starter.git
				synced 2025-10-31 22:57:19 +08:00 
			
		
		
		
	refactor(core): 拆分字符串常量和字符常量
This commit is contained in:
		| @@ -16,7 +16,7 @@ | ||||
|  | ||||
| package top.continew.starter.data.mf.datapermission; | ||||
|  | ||||
| import cn.hutool.core.util.StrUtil; | ||||
| import cn.hutool.core.text.CharSequenceUtil; | ||||
| import com.mybatisflex.core.dialect.impl.CommonsDialectImpl; | ||||
| import com.mybatisflex.core.query.QueryWrapper; | ||||
|  | ||||
| @@ -152,7 +152,7 @@ public class DataPermissionDialect extends CommonsDialectImpl { | ||||
|      * @return 带表别名字段 | ||||
|      */ | ||||
|     private String buildColumn(String tableAlias, String columnName) { | ||||
|         if (StrUtil.isNotEmpty(tableAlias)) { | ||||
|         if (CharSequenceUtil.isNotEmpty(tableAlias)) { | ||||
|             return "%s.%s".formatted(tableAlias, columnName); | ||||
|         } | ||||
|         return columnName; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user