2021-02-05 01:31:53 +08:00
|
|
|
|
package ${basePackage}.${table.moduleName}.controller.${table.businessName}.vo;
|
|
|
|
|
|
|
|
|
|
import lombok.*;
|
|
|
|
|
import java.util.*;
|
|
|
|
|
import io.swagger.annotations.*;
|
2021-02-06 10:09:17 +08:00
|
|
|
|
import ${PageParamClassName};
|
|
|
|
|
#if (${hasDateColumn})
|
|
|
|
|
import org.springframework.format.annotation.DateTimeFormat;
|
|
|
|
|
|
|
|
|
|
import static ${DateUtilsClassName}.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;
|
|
|
|
|
#end
|
2021-02-05 01:31:53 +08:00
|
|
|
|
|
|
|
|
|
@ApiModel("${table.classComment}分页 Request VO")
|
|
|
|
|
@Data
|
|
|
|
|
@EqualsAndHashCode(callSuper = true)
|
|
|
|
|
@ToString(callSuper = true)
|
|
|
|
|
@Builder
|
|
|
|
|
@NoArgsConstructor
|
|
|
|
|
@AllArgsConstructor
|
|
|
|
|
public class ${table.className}PageReqVO extends PageParam {
|
|
|
|
|
|
|
|
|
|
#foreach ($column in $columns)
|
|
|
|
|
#set ($JavaField = $column.javaField.substring(0,1).toUpperCase() + ${column.javaField.substring(1)})##首字母大写
|
|
|
|
|
#if (${column.listOperation})##查询操作
|
2021-02-06 10:09:17 +08:00
|
|
|
|
#if (${column.listOperationCondition} == "BETWEEN")## 情况一,Between 的时候
|
2021-02-05 01:31:53 +08:00
|
|
|
|
@ApiModelProperty(value = "开始${column.columnComment}"#if ("$!column.example" != ""), example = "${column.example}"#end)
|
|
|
|
|
#if (${column.javaType} == "Date")## 时间类型
|
|
|
|
|
@DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
|
|
|
|
|
#end
|
|
|
|
|
private ${column.javaType} begin${JavaField};
|
|
|
|
|
|
|
|
|
|
@ApiModelProperty(value = "结束${column.columnComment}"#if ("$!column.example" != ""), example = "${column.example}"#end)
|
|
|
|
|
#if (${column.javaType} == "Date")## 时间类型
|
|
|
|
|
@DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
|
|
|
|
|
#end
|
|
|
|
|
private ${column.javaType} end${JavaField};
|
2021-02-06 10:09:17 +08:00
|
|
|
|
#else##情况二,非 Between 的时间
|
2021-02-05 01:31:53 +08:00
|
|
|
|
#if (${column.javaType} == "Date")## 时间类型
|
|
|
|
|
@DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
|
|
|
|
|
#end
|
|
|
|
|
@ApiModelProperty(value = "${column.columnComment}"#if ("$!column.example" != ""), example = "${column.example}"#end)
|
|
|
|
|
private ${column.javaType} ${column.javaField};
|
|
|
|
|
#end
|
|
|
|
|
|
|
|
|
|
#end
|
|
|
|
|
#end
|
|
|
|
|
}
|