vo.java.ftl 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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. <#--子表遍历-->
  9. <#if childTables?? >
  10. <#list childTables as childTable>
  11. import com.xjrsoft.module.${outputArea}.entity.${childTable.tableName?cap_first};
  12. </#list>
  13. </#if>
  14. /**
  15. * @title: ${tableComment}
  16. * @Author ${author}
  17. * @Date: ${date}
  18. * @Version 1.0
  19. */
  20. @Data
  21. public class ${entityClass}Vo {
  22. <#--属性遍历-->
  23. <#list fields as field>
  24. /**
  25. * ${(field.fieldComment)!''}
  26. */
  27. @ApiModelProperty("${(field.fieldComment)!''}")
  28. private ${field.fieldType} ${field.fieldName};
  29. </#list>
  30. <#--子表遍历-->
  31. <#if childTables?? >
  32. <#list childTables as childTable>
  33. /**
  34. * ${childTable.tableName}
  35. */
  36. @ApiModelProperty("${childTable.tableName}子表")
  37. private List<${childTable.tableName?cap_first}Vo> ${childTable.tableName}List;
  38. </#list>
  39. </#if>
  40. }