提交 f8907d54 编写于 作者: zhouweidong's avatar zhouweidong

补充联合键值中出现时间类型属性的处理

上级 a114c1bb
...@@ -22,6 +22,7 @@ import ${pub.getPKGCodeName()}.util.domain.EntityBase; ...@@ -22,6 +22,7 @@ import ${pub.getPKGCodeName()}.util.domain.EntityBase;
import ${pub.getPKGCodeName()}.util.annotation.DEField; import ${pub.getPKGCodeName()}.util.annotation.DEField;
import ${pub.getPKGCodeName()}.util.enums.DEPredefinedFieldType; import ${pub.getPKGCodeName()}.util.enums.DEPredefinedFieldType;
import ${pub.getPKGCodeName()}.util.enums.DEFieldDefaultValueType; import ${pub.getPKGCodeName()}.util.enums.DEFieldDefaultValueType;
import ${pub.getPKGCodeName()}.util.helper.DataObject;
import java.io.Serializable; import java.io.Serializable;
import lombok.*; import lombok.*;
import org.springframework.data.annotation.Transient; import org.springframework.data.annotation.Transient;
...@@ -942,13 +943,19 @@ public class ${item.getCodeName()} extends EntityBase implements Serializable { ...@@ -942,13 +943,19 @@ public class ${item.getCodeName()} extends EntityBase implements Serializable {
<#assign formatKey=""> <#assign formatKey="">
<#assign formatValue=""> <#assign formatValue="">
<#list item.getUnionKeyValuePSDEFields() as defield> <#list item.getUnionKeyValuePSDEFields() as defield>
<#assign dataType = (defield.getDataType())!"">
<#assign unionKeyPrivateCodeName = srfcaseformat(defield.getCodeName(),'l_u2lC') > <#assign unionKeyPrivateCodeName = srfcaseformat(defield.getCodeName(),'l_u2lC') >
<#assign unionKeyPublicCodeName = unionKeyPrivateCodeName?cap_first > <#assign unionKeyPublicCodeName = unionKeyPrivateCodeName?cap_first >
<#assign formatKey=formatKey+"%s"> <#assign formatKey=formatKey+"%s">
<#if defield_has_next> <#if defield_has_next>
<#assign formatKey=formatKey+"||"> <#assign formatKey=formatKey+"||">
</#if> </#if>
<#assign formatValue=formatValue+"this.get"+unionKeyPublicCodeName+"()"> <#comment>补充联合键值中出现时间类型属性的处理</#comment>
<#if dataType=="DATETIME" || dataType=="DATE" || dataType=="TIME">
<#assign formatValue=formatValue+"DataObject.datetimeFormat.format(this.get"+unionKeyPublicCodeName+"())">
<#else>
<#assign formatValue=formatValue+"this.get"+unionKeyPublicCodeName+"()">
</#if>
<#if defield_has_next> <#if defield_has_next>
<#assign formatValue=formatValue+","> <#assign formatValue=formatValue+",">
</#if> </#if>
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册