2020-06-08 16:28
@JFinal 按照波总的风格,能省则省,我也是把内部模板拿出来用了,哈哈哈
List tableMetas=(List) queryTablesList(record).getList();
String template = "/com/jfinal/plugin/activerecord/generator/base_model_template.jf";
Kv data = Kv.by("baseModelPackageName", baseModelPackageName);
data.set("generateChainSetter", true);
data.set("tableMeta", tableMetas.get(0));
String content=engine.getTemplate(template).renderToString(data);
2020-05-07 10:30
@Psbye 添加一个时间参数转换,这样就完美了
if(lO instanceof Date){
lO =DateKit.toStr((Date)lO ,"yyyy-MM-dd HH:mm:ss");
}