|
|
@@ -189,5 +189,14 @@ public class EntityHelper { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
* 获取带数据库的表名,用于sql |
|
|
|
* @param tableName |
|
|
|
* @return |
|
|
|
*/ |
|
|
|
public static String getSchemaTableName(String tableName) { |
|
|
|
ModelTable table = ModelTableCache.getInstance().getByName(tableName); |
|
|
|
if (table == null) throw new SwException("没有找到表定义:" + tableName); |
|
|
|
return table.getSchemaTableName(); |
|
|
|
} |
|
|
|
} |