|
|
@@ -3,6 +3,7 @@ package cc.smtweb.framework.core.util; |
|
|
|
import cc.smtweb.framework.core.common.AbstractEnum; |
|
|
|
import cc.smtweb.framework.core.common.IntEnum; |
|
|
|
import cc.smtweb.framework.core.common.StrEnum; |
|
|
|
import cc.smtweb.framework.core.db.EntityHelper; |
|
|
|
import org.apache.commons.lang3.StringUtils; |
|
|
|
|
|
|
|
import java.util.List; |
|
|
@@ -22,7 +23,14 @@ public abstract class SqlUtil { |
|
|
|
* @return |
|
|
|
*/ |
|
|
|
public static String replaceTable(String sql) { |
|
|
|
return sql; |
|
|
|
return StringUtil.myReplaceStrEx(sql, "[#", "#]", new StringUtil.IStrHanlder() { |
|
|
|
@Override |
|
|
|
public String work(String src) { |
|
|
|
src = src.toUpperCase(); |
|
|
|
return EntityHelper.getSchemaTableName(src); |
|
|
|
} |
|
|
|
}); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|