All Downloads are FREE. Search and download functionalities are using the official Maven repository.

templates.queryvo.ftl Maven / Gradle / Ivy

package ${packageName}.vo.${moduleName}.${bizName};

import com.lframework.starter.web.vo.BaseVo;
import com.lframework.starter.web.vo.PageVo;
import lombok.Data;
import lombok.EqualsAndHashCode;
<#if importPackages??>
    <#list importPackages as p>
import ${p};
    

import java.io.Serializable;

@Data
@EqualsAndHashCode(callSuper = true)
public class Query${className}Vo extends PageVo implements BaseVo, Serializable {

    private static final long serialVersionUID = 1L;

    <#list columns as column>
    <#if column.viewType != 6>
    /**
     * ${column.description}
     */
     
    <#if column.fixEnum>
    <#if column.type != 'String'>
    @TypeMismatch(message = "${column.description}格式有误!")
    
    <#if column.regularExpression??>
    @Pattern(regexp = "${column.regularExpression}", message = "${column.description}格式有误!")
    
    @IsEnum(message = "${column.description}格式有误!", enumClass = ${column.type}.class)
    private ${column.enumCodeType} ${column.name};
    <#else>
    <#if column.viewType == 6>
    /**
     * ${column.description} 起始时间
     */
    <#if column.type != 'String'>
    @TypeMismatch(message = "${column.description}起始时间格式有误!")
    
    <#if column.regularExpression??>
    @Pattern(regexp = "${column.regularExpression}", message = "${column.description}格式有误!")
    
    private ${column.type} ${column.name}Start;

    /**
     * ${column.description} 截止时间
     */
    <#if column.type != 'String'>
    @TypeMismatch(message = "${column.description}截止时间格式有误!")
    
    <#if column.regularExpression??>
    @Pattern(regexp = "${column.regularExpression}", message = "${column.description}格式有误!")
    
    private ${column.type} ${column.name}End;
    <#else>
    <#if column.type != 'String'>
    @TypeMismatch(message = "${column.description}格式有误!")
    
    <#if column.regularExpression??>
    @Pattern(regexp = "${column.regularExpression}", message = "${column.description}格式有误!")
    
    private ${column.type} ${column.name};
    
    

    
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy