DesignTemplate.java 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156
  1. package com.sdtool.common.entity.design;
  2. import com.sdtool.common.entity.base.BaseEntity;
  3. import com.sweetfish.util.Comment;
  4. import org.rex.db.RColumn;
  5. import java.util.ArrayList;
  6. import java.util.List;
  7. /**
  8. * 设计模板
  9. */
  10. public class DesignTemplate extends BaseEntity {
  11. @RColumn("id")
  12. @Comment("")
  13. private long id;
  14. @RColumn("templatename")
  15. @Comment("模板名称")
  16. private String templateName;
  17. @RColumn("backgroundpath")
  18. @Comment("背景图片")
  19. private String backgroundPath;
  20. @RColumn("viewthumbpath")
  21. @Comment("缩略图")
  22. private String viewThumbPath;
  23. @RColumn("canvasheight")
  24. @Comment("画布高(mm)")
  25. private double canvasHeight;
  26. @RColumn("canvaswidth")
  27. @Comment("画布宽(mm)")
  28. private double canvasWidth;
  29. @RColumn("breedheight")
  30. @Comment("拼版尺寸高")
  31. private double breedHeight;
  32. @RColumn("breedwidth")
  33. @Comment("拼版尺寸宽")
  34. private double breedWidth;
  35. @RColumn("idproduct")
  36. @Comment("产品id,暂时手传")
  37. private long idProduct;
  38. @Comment("")
  39. @RColumn("voidflag")
  40. private int voidFlag;
  41. @RColumn("jsoncontent")
  42. @Comment("模板属性json,数据库记录的是文件链接")
  43. private String jsonContent;
  44. @Comment("元素")
  45. private List<DesignTemplateItem> itemList = new ArrayList<>();
  46. public long getId() {
  47. return id;
  48. }
  49. public void setId(long id) {
  50. this.id = id;
  51. }
  52. public String getTemplateName() {
  53. return templateName;
  54. }
  55. public void setTemplateName(String templateName) {
  56. this.templateName = templateName;
  57. }
  58. public String getBackgroundPath() {
  59. return backgroundPath;
  60. }
  61. public void setBackgroundPath(String backgroundPath) {
  62. this.backgroundPath = backgroundPath;
  63. }
  64. public String getViewThumbPath() {
  65. return viewThumbPath;
  66. }
  67. public void setViewThumbPath(String viewThumbPath) {
  68. this.viewThumbPath = viewThumbPath;
  69. }
  70. public double getCanvasHeight() {
  71. return canvasHeight;
  72. }
  73. public void setCanvasHeight(double canvasHeight) {
  74. this.canvasHeight = canvasHeight;
  75. }
  76. public double getCanvasWidth() {
  77. return canvasWidth;
  78. }
  79. public void setCanvasWidth(double canvasWidth) {
  80. this.canvasWidth = canvasWidth;
  81. }
  82. public double getBreedHeight() {
  83. return breedHeight;
  84. }
  85. public void setBreedHeight(double breedHeight) {
  86. this.breedHeight = breedHeight;
  87. }
  88. public double getBreedWidth() {
  89. return breedWidth;
  90. }
  91. public void setBreedWidth(double breedWidth) {
  92. this.breedWidth = breedWidth;
  93. }
  94. public long getIdProduct() {
  95. return idProduct;
  96. }
  97. public void setIdProduct(long idProduct) {
  98. this.idProduct = idProduct;
  99. }
  100. public List<DesignTemplateItem> getItemList() {
  101. return itemList;
  102. }
  103. public void setItemList(List<DesignTemplateItem> itemList) {
  104. this.itemList = itemList;
  105. }
  106. public int getVoidFlag() {
  107. return voidFlag;
  108. }
  109. public void setVoidFlag(int voidFlag) {
  110. this.voidFlag = voidFlag;
  111. }
  112. public String getJsonContent() {
  113. return jsonContent;
  114. }
  115. public void setJsonContent(String jsonContent) {
  116. this.jsonContent = jsonContent;
  117. }
  118. }