easycode配置

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)

  • 17
    点赞
  • 22
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值