2b6dfcf9046c8e7977e3eeb89f3ce1aeebb837df.svn-base 1.8 KB

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