干燥机配套车间生产管理系统/云平台服务端
baoshiwei
2024-12-11 7c585586e9bea943161676bd9d127e81123891c3
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
package ${bussiPackage}.${entityPackage}.vo;
 
import java.util.List;
import ${bussiPackage}.${entityPackage}.entity.${entityName};
<#list subTables as sub>
import ${bussiPackage}.${entityPackage}.entity.${sub.entityName};
</#list>
import lombok.Data;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.jeecgframework.poi.excel.annotation.ExcelCollection;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
 
/**
 * @Description: ${tableVo.ftlDescription}
 * @Author: jeecg-boot
 * @Date:   ${.now?string["yyyy-MM-dd"]}
 * @Version: V1.0
 */
@Data
@ApiModel(value="${tableName}Page对象", description="${tableVo.ftlDescription}")
public class ${entityName}Page {
 
    <#list originalColumns as po>
    /**${po.filedComment}*/
    <#if po.fieldName == primaryKeyField>
    <#else>
    <#if po.fieldType =='java.util.Date'>
      <#if po.fieldDbType =='date'>
      @Excel(name = "${po.filedComment}", width = 15, format = "yyyy-MM-dd")
      @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
      <#elseif po.fieldDbType =='datetime'>
      @Excel(name = "${po.filedComment}", width = 20, format = "yyyy-MM-dd HH:mm:ss")
      @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
      </#if>
      <#else>
      @Excel(name = "${po.filedComment}", width = 15)
    </#if>
  </#if>
    private <#if po.fieldType=='java.sql.Blob'>byte[]<#else>${po.fieldType}</#if> ${po.fieldName};
    </#list>
 
    <#list subTables as sub>
    @ExcelCollection(name="${sub.ftlDescription}")
    @ApiModelProperty(value = "${sub.ftlDescription}")
    private List<${sub.entityName}> ${sub.entityName?uncap_first}List;
    </#list>
    
}