vo.java.ftl 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. package ${package};
  2. import io.swagger.annotations.ApiModelProperty;
  3. import lombok.Data;
  4. import java.time.LocalTime;
  5. import java.time.LocalDateTime;
  6. import java.math.BigDecimal;
  7. import java.util.List;
  8. import java.util.Date;
  9. <#--子表遍历-->
  10. <#if childTables?? >
  11. <#list childTables as childTable>
  12. import com.xjrsoft.module.${outputArea}.entity.${childTable.tableName?cap_first};
  13. </#list>
  14. </#if>
  15. /**
  16. * @title: ${tableComment}
  17. * @Author ${author}
  18. * @Date: ${date}
  19. * @Version 1.0
  20. */
  21. @Data
  22. public class ${entityClass}Vo {
  23. <#--属性遍历-->
  24. <#list fields as field>
  25. /**
  26. * ${field.fieldComment}
  27. */
  28. @ApiModelProperty("${field.fieldComment}")
  29. private ${field.fieldType} ${field.fieldName};
  30. </#list>
  31. <#--子表遍历-->
  32. <#if childTables?? >
  33. <#list childTables as childTable>
  34. /**
  35. * ${childTable.tableName}
  36. */
  37. @ApiModelProperty("${childTable.tableName}子表")
  38. private List<${childTable.tableName?cap_first}Vo> ${childTable.tableName}List;
  39. </#list>
  40. </#if>
  41. }