easycode globalconfig init.vm
##初始化区域
##去掉表的t_前缀
!
t
a
b
l
e
I
n
f
o
.
s
e
t
N
a
m
e
(
!tableInfo.setName(
!tableInfo.setName(tool.getClassName($tableInfo.obj.name.replaceFirst(“tt_”,“”)))
!
t
a
b
l
e
I
n
f
o
.
s
e
t
N
a
m
e
(
!tableInfo.setName(
!tableInfo.setName(tool.getClassName(KaTeX parse error: Expected 'EOF', got '#' at position 45: …st("tm_",""))) #̲#参考阿里巴巴开发手册,POJ…column in KaTeX parse error: Expected 'EOF', got '#' at position 23: …fo.fullColumn) #̲if(column.name.startsWith(“is”) && $column.type.equals(“java.lang.Boolean”))
!
c
o
l
u
m
n
.
s
e
t
N
a
m
e
(
!column.setName(
!column.setName(tool.firstLowerCase($column.name.substring(2)))
#end
#end
##实现动态排除列
#set($temp = KaTeX parse error: Expected 'EOF', got '#' at position 51: …otherColumn")) #̲foreach(item in KaTeX parse error: Expected 'EOF', got '#' at position 11: temp) #̲set(newList = KaTeX parse error: Expected 'EOF', got '#' at position 26: …rayList()) #̲foreach(column in KaTeX parse error: Expected 'EOF', got '#' at position 31: …olumn) #̲if(column.name!=KaTeX parse error: Expected 'EOF', got '#' at position 19: …m) #̲#带有反回值的方法调用时使用tool.call来消除返回值
t
o
o
l
.
c
a
l
l
(
tool.call(
tool.call(newList.add($column))
#end
#end
##重新保存
t
a
b
l
e
I
n
f
o
.
s
e
t
F
u
l
l
C
o
l
u
m
n
(
tableInfo.setFullColumn(
tableInfo.setFullColumn(newList)
#end
##对importList进行篡改
#set($temp = KaTeX parse error: Expected 'EOF', got '#' at position 20: ….newHashSet()) #̲foreach(column in KaTeX parse error: Expected 'EOF', got '#' at position 27: …ullColumn) #̲if(!column.type.startsWith(“java.lang.”))
##带有反回值的方法调用时使用$tool.call来消除返回值
t
o
o
l
.
c
a
l
l
(
tool.call(
tool.call(temp.add(KaTeX parse error: Expected 'EOF', got '#' at position 19: …umn.type)) #̲end #end ##覆盖 #…importList = $temp)