mirror of https://gitee.com/makejava/EasyCode.git
使用正则表达式去除表名前缀
This commit is contained in:
parent
41ae66fada
commit
3ac8922809
|
@ -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_","")))
|
||||
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue