mirror of
https://gitee.com/hhyykk/ipms-sjy.git
synced 2025-07-10 09:05:07 +08:00
32 lines
991 B
Plaintext
32 lines
991 B
Plaintext
package ${basePackage}.${table.moduleName}.controller.${table.businessName}.vo;
|
||
|
||
import lombok.*;
|
||
import java.util.*;
|
||
import io.swagger.annotations.*;
|
||
import javax.validation.constraints.*;
|
||
## 处理 Date 字段的引入
|
||
#foreach ($column in $columns)
|
||
#if (${column.createOperation} && ${column.updateOperation} && ${column.listOperationResult}
|
||
&& ${column.javaType} == "Date")## 时间类型
|
||
import org.springframework.format.annotation.DateTimeFormat;
|
||
|
||
import static ${DateUtilsClassName}.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;
|
||
#break
|
||
#end
|
||
#end
|
||
|
||
/**
|
||
* ${table.classComment} Base VO,提供给添加、修改、详细的子 VO 使用
|
||
* 如果子 VO 存在差异的字段,请不要添加到这里,影响 Swagger 文档生成
|
||
*/
|
||
@Data
|
||
public class ${table.className}BaseVO {
|
||
|
||
#foreach ($column in $columns)
|
||
#if (${column.createOperation} && ${column.updateOperation} && ${column.listOperationResult})##通用操作
|
||
#parse("codegen/java/controller/vo/_column.vm")
|
||
|
||
#end
|
||
#end
|
||
}
|