提交 82ef904e 编写于 作者: Crimson's avatar Crimson

时间/日期格式的数据追加format方法,返回format后的日期String--bug fix:手残写错了

上级 27c6c287
......@@ -225,13 +225,13 @@ public class ${item.getCodeName()} extends EntityMP implements Serializable {
<#if defDataType == "DATETIME" || (defDataType=='PICKUPDATA' && srfdatatype(defield.getStdDataType())== "DATETIME" && defield.getValueFormat()=="%1$tY-%1$tm-%1$td %1$tH:%1$tM:%1$tS")>
<#assign defieldIsDate=true>
<#assign defieldFormatStr="%1$tY-%1$tm-%1$td %1$tH:%1$tM:%1$tS">
<#assign defieldFormatStr="yyyy-MM-dd HH:mm:ss">
<#elseif defDataType == "DATE" || (defDataType=='PICKUPDATA' && srfdatatype(defield.getStdDataType())== "DATETIME" && defield.getValueFormat()=="%1$tY-%1$tm-%1$td")>
<#assign defieldIsDate=true>
<#assign defieldFormatStr="%1$tY-%1$tm-%1$td">
<#assign defieldFormatStr="yyyy-MM-dd">
<#elseif defDataType == "TIME" || (defDataType=='PICKUPDATA' && srfdatatype(defield.getStdDataType())== "DATETIME" && defield.getValueFormat()=="%1$tH:%1$tM:%1$tS")>
<#assign defieldIsDate=true>
<#assign defieldFormatStr="%1$tH:%1$tM:%1$tS">
<#assign defieldFormatStr="HH:mm">
</#if>
<#if defieldIsDate && defieldFormatStr != "">
/**
......@@ -593,13 +593,13 @@ public class ${item.getCodeName()} extends EntityClient implements Serializable
<#if defDataType == "DATETIME" || (defDataType=='PICKUPDATA' && srfdatatype(defield.getStdDataType())== "DATETIME" && defield.getValueFormat()=="%1$tY-%1$tm-%1$td %1$tH:%1$tM:%1$tS")>
<#assign defieldIsDate=true>
<#assign defieldFormatStr="%1$tY-%1$tm-%1$td %1$tH:%1$tM:%1$tS">
<#assign defieldFormatStr="yyyy-MM-dd HH:mm:ss">
<#elseif defDataType == "DATE" || (defDataType=='PICKUPDATA' && srfdatatype(defield.getStdDataType())== "DATETIME" && defield.getValueFormat()=="%1$tY-%1$tm-%1$td")>
<#assign defieldIsDate=true>
<#assign defieldFormatStr="%1$tY-%1$tm-%1$td">
<#assign defieldFormatStr="yyyy-MM-dd">
<#elseif defDataType == "TIME" || (defDataType=='PICKUPDATA' && srfdatatype(defield.getStdDataType())== "DATETIME" && defield.getValueFormat()=="%1$tH:%1$tM:%1$tS")>
<#assign defieldIsDate=true>
<#assign defieldFormatStr="%1$tH:%1$tM:%1$tS">
<#assign defieldFormatStr="HH:mm">
</#if>
<#if defieldIsDate && defieldFormatStr != "">
/**
......@@ -758,13 +758,13 @@ public class ${item.getCodeName()} extends EntityBase implements Serializable {
<#else >
<#if defDataType == "DATETIME" || (defDataType=='PICKUPDATA' && srfdatatype(defield.getStdDataType())== "DATETIME" && defield.getValueFormat()=="%1$tY-%1$tm-%1$td %1$tH:%1$tM:%1$tS")>
<#assign defieldIsDate=true>
<#assign defieldFormatStr="%1$tY-%1$tm-%1$td %1$tH:%1$tM:%1$tS">
<#assign defieldFormatStr="yyyy-MM-dd HH:mm:ss">
<#elseif defDataType == "DATE" || (defDataType=='PICKUPDATA' && srfdatatype(defield.getStdDataType())== "DATETIME" && defield.getValueFormat()=="%1$tY-%1$tm-%1$td")>
<#assign defieldIsDate=true>
<#assign defieldFormatStr="%1$tY-%1$tm-%1$td">
<#assign defieldFormatStr="yyyy-MM-dd">
<#elseif defDataType == "TIME" || (defDataType=='PICKUPDATA' && srfdatatype(defield.getStdDataType())== "DATETIME" && defield.getValueFormat()=="%1$tH:%1$tM:%1$tS")>
<#assign defieldIsDate=true>
<#assign defieldFormatStr="%1$tH:%1$tM:%1$tS">
<#assign defieldFormatStr="HH:mm">
</#if>
<#if defieldIsDate && defieldFormatStr != "">
/**
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册