parent
ace0c13502
commit
665300c2b0
@ -0,0 +1,48 @@
|
|||||||
|
package ${bussiPackage}.vo;
|
||||||
|
|
||||||
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||||
|
import io.swagger.annotations.ApiModel;
|
||||||
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
|
import lombok.*;
|
||||||
|
import lombok.experimental.Accessors;
|
||||||
|
import org.springframework.format.annotation.DateTimeFormat;
|
||||||
|
import java.io.Serializable;
|
||||||
|
import java.util.Date;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @Description: 查询${entityName}对象
|
||||||
|
* @Author: ${author}
|
||||||
|
* @Date: ${.now?string["yyyy-MM-dd"]}
|
||||||
|
* @Version: V1.0
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
@AllArgsConstructor
|
||||||
|
@NoArgsConstructor
|
||||||
|
@EqualsAndHashCode(callSuper = false)
|
||||||
|
@Accessors(chain = true)
|
||||||
|
@ApiModel(value="查询${entityName}对象", description="${tableVo.ftlDescription}")
|
||||||
|
public class Query${entityName}VO implements Serializable{
|
||||||
|
<#list originalColumns as po>
|
||||||
|
/**${po.filedComment}*/
|
||||||
|
<#if po.fieldName == primaryKeyField>
|
||||||
|
<#else>
|
||||||
|
<#if po.fieldType =='Date'>
|
||||||
|
<#if po.fieldDbType =='date'>
|
||||||
|
@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
|
||||||
|
@DateTimeFormat(pattern="yyyy-MM-dd")
|
||||||
|
<#elseif po.fieldDbType =='datetime'>
|
||||||
|
@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
|
||||||
|
@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
|
||||||
|
<#elseif po.fieldDbType =='timestamp'>
|
||||||
|
@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
|
||||||
|
@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
|
||||||
|
</#if>
|
||||||
|
<#else>
|
||||||
|
</#if>
|
||||||
|
</#if>
|
||||||
|
@ApiModelProperty(value = "${po.filedComment}")
|
||||||
|
<#if po.fieldName == 'delFlag'>
|
||||||
|
</#if>
|
||||||
|
private <#if po.fieldType=='java.sql.Blob'>byte[]<#else>${po.fieldType}</#if> ${po.fieldName};
|
||||||
|
</#list>
|
||||||
|
}
|
Loading…
Reference in new issue