使用正则表达式去除表名前缀

This commit is contained in:
黎叔 2019-10-27 21:11:16 +08:00 committed by Gitee
parent 41ae66fada
commit 3ac8922809
1 changed files with 1 additions and 3 deletions

View File

@ -1,9 +1,7 @@
##初始化区域
##去掉表的t_前缀
#if($tableInfo.obj.name.startsWith("t_"))
$!tableInfo.setName($tool.getClassName($tableInfo.obj.name.substring(2)))
#end
$!tableInfo.setName($tool.getClassName($tableInfo.obj.name.replaceFirst("book_","")))