线程池统一管理

This commit is contained in:
RuoYi
2019-01-24 16:31:50 +08:00
parent c6bd84818a
commit d5a89621a9
8 changed files with 71 additions and 16 deletions

View File

@ -105,13 +105,11 @@ public class GenUtils
*/
public static String tableToJava(String tableName)
{
if (Constants.AUTO_REOMVE_PRE.equals(Global.getAutoRemovePre()))
String autoRemovePre = Global.getAutoRemovePre();
String tablePrefix = Global.getTablePrefix();
if (Constants.AUTO_REOMVE_PRE.equals(autoRemovePre) && StringUtils.isNotEmpty(tablePrefix))
{
tableName = tableName.substring(tableName.indexOf("_") + 1);
}
if (StringUtils.isNotEmpty(Global.getTablePrefix()))
{
tableName = tableName.replace(Global.getTablePrefix(), "");
tableName = tableName.replaceFirst(tablePrefix, "");
}
return StringUtils.convertToCamelCase(tableName);
}