2021-02-06 11:24:04 +08:00
|
|
|
package ${basePackage}.${table.moduleName}.controller.${table.businessName}.vo;
|
|
|
|
|
|
|
|
import lombok.*;
|
|
|
|
import java.util.*;
|
|
|
|
import io.swagger.annotations.*;
|
|
|
|
import javax.validation.constraints.*;
|
2021-02-06 19:12:08 +08:00
|
|
|
## 处理 Date 字段的引入
|
|
|
|
#foreach ($column in $columns)
|
2021-02-06 23:52:26 +08:00
|
|
|
#if (${column.updateOperation} && (!${column.createOperation} || !${column.listOperationResult})
|
|
|
|
&& ${column.javaType} == "Date"))## 时间类型
|
2021-02-06 19:12:08 +08:00
|
|
|
import org.springframework.format.annotation.DateTimeFormat;
|
|
|
|
|
|
|
|
import static ${DateUtilsClassName}.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;
|
|
|
|
#break
|
|
|
|
#end
|
|
|
|
#end
|
2021-02-06 11:24:04 +08:00
|
|
|
|
|
|
|
@ApiModel("${table.classComment}更新 Request VO")
|
|
|
|
@Data
|
|
|
|
@EqualsAndHashCode(callSuper = true)
|
|
|
|
@ToString(callSuper = true)
|
|
|
|
public class ${table.className}UpdateReqVO extends ${table.className}BaseVO {
|
|
|
|
|
|
|
|
#foreach ($column in $columns)
|
|
|
|
#if (${column.updateOperation} && (!${column.createOperation} || !${column.listOperationResult}))##不是通用字段
|
2021-02-06 19:12:08 +08:00
|
|
|
#parse("codegen/controller/vo/_column.vm")
|
2021-02-06 11:24:04 +08:00
|
|
|
|
|
|
|
#end
|
|
|
|
#end
|
|
|
|
}
|