2022-11-08 15:51:08 +08:00
|
|
|
package ${package}.${moduleName}.query;
|
|
|
|
|
|
|
|
import io.swagger.v3.oas.annotations.media.Schema;
|
|
|
|
import lombok.Data;
|
|
|
|
import lombok.EqualsAndHashCode;
|
|
|
|
import ${package}.framework.common.query.Query;
|
2024-01-16 10:56:37 +08:00
|
|
|
import org.springframework.format.annotation.DateTimeFormat;
|
2022-11-08 15:51:08 +08:00
|
|
|
|
|
|
|
<#list importList as i>
|
|
|
|
import ${i!};
|
|
|
|
</#list>
|
|
|
|
|
|
|
|
/**
|
|
|
|
* ${tableComment}查询
|
|
|
|
*
|
|
|
|
* @author ${author} ${email}
|
|
|
|
* @since ${version} ${date}
|
|
|
|
*/
|
|
|
|
@Data
|
|
|
|
@EqualsAndHashCode(callSuper = false)
|
|
|
|
@Schema(description = "${tableComment}查询")
|
|
|
|
public class ${ClassName}Query extends Query {
|
|
|
|
<#list queryList as field>
|
|
|
|
<#if field.fieldComment!?length gt 0>
|
|
|
|
@Schema(description = "${field.fieldComment}")
|
|
|
|
</#if>
|
2024-01-16 10:56:37 +08:00
|
|
|
<#if field.attrType == 'Date'>
|
|
|
|
@DateTimeFormat(pattern = DateUtils.DATE_TIME_PATTERN)
|
|
|
|
</#if>
|
2022-11-08 15:51:08 +08:00
|
|
|
private ${field.attrType} ${field.attrName};
|
|
|
|
|
|
|
|
</#list>
|
|
|
|
}
|