js.formatNumber优化,传递0数值的时候返回0.00,传递null的时候返回默认值。

This commit is contained in:
thinkgem
2019-05-07 17:30:19 +08:00
parent 7b4ca62ce8
commit e123d96465

View File

@@ -120,10 +120,8 @@ public class ${ClassName}Service extends ${table.isTreeEntity?'Tree':'Crud'}Serv
}
%>
if (${@StringUtils.uncap(child.className)}.getIsNewRecord()){
${@StringUtils.uncap(child.className)}.preInsert();
${@StringUtils.uncap(child.className)}Dao.insert(${@StringUtils.uncap(child.className)});
}else{
${@StringUtils.uncap(child.className)}.preUpdate();
${@StringUtils.uncap(child.className)}Dao.update(${@StringUtils.uncap(child.className)});
}
}else{