diff --git a/src/main/resources/yangliu/XXXEntityAddPVO.javai b/src/main/resources/yangliu/XXXEntityAddPVO.javai index c143669..3902477 100644 --- a/src/main/resources/yangliu/XXXEntityAddPVO.javai +++ b/src/main/resources/yangliu/XXXEntityAddPVO.javai @@ -24,9 +24,9 @@ import java.util.Date; public class Add${entityName}PVO implements Serializable{ private static final long serialVersionUID = 1L; <#list originalColumns as po> - /**${po.filedComment}*/ <#if po.fieldName == primaryKeyField> <#else> + /**${po.filedComment}*/ <#if po.fieldType =='Date'> <#if po.fieldDbType =='date'> @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd") @@ -41,9 +41,9 @@ public class Add${entityName}PVO implements Serializable{ <#else> + <#if po.fieldName != primaryKeyField> @ApiModelProperty(value = "${po.filedComment}") - <#if po.fieldName == 'delFlag'> + private <#if po.fieldType=='java.sql.Blob'>byte[]<#else>${po.fieldType} ${po.fieldName}; - private <#if po.fieldType=='java.sql.Blob'>byte[]<#else>${po.fieldType} ${po.fieldName}; }