HomeManagementFrontView.java 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139
  1. package com.cyksj.model.views;
  2. import com.cyksj.model.entity.GoodsDon;
  3. import com.cyksj.model.entity.GoodsDonSpec;
  4. import com.cyksj.model.entity.HomeManagementConfig;
  5. import com.ejlchina.searcher.bean.DbField;
  6. import com.ejlchina.searcher.bean.DbIgnore;
  7. import com.ejlchina.searcher.bean.SearchBean;
  8. import com.fasterxml.jackson.annotation.JsonInclude;
  9. import lombok.Getter;
  10. import lombok.Setter;
  11. import java.math.BigDecimal;
  12. import java.util.List;
  13. /*
  14. *项目名: netflix
  15. *文件名: HomeManagementFrontView
  16. *创建者: JavaZou
  17. *创建时间:2023/8/18 9:36
  18. */
  19. @Getter
  20. @Setter
  21. @SearchBean(tables = "(select * from home_management_config where status is true and deleted is true) hc left join goods_don g on g.id = hc.goods_id",
  22. where = ":condition:",
  23. orderBy = "hc.sorted asc")
  24. @JsonInclude(JsonInclude.Include.NON_NULL)
  25. public class HomeManagementFrontView {
  26. @DbField("hc.id")
  27. private Long homeManageConfigId;
  28. @DbField("hc.title")
  29. private String title;
  30. @DbField("hc.goods_id")
  31. private Long goodsId;
  32. @DbField("g.title")
  33. private String goodsTitle;
  34. @DbField("g.logo")
  35. private String logo;
  36. @DbField("hc.url")
  37. private String url;
  38. @DbField("hc.type")
  39. private HomeManagementConfig.Type type;
  40. @DbField("hc.pic")
  41. private String pic;
  42. @DbField("hc.tag")
  43. private String tag;
  44. /**
  45. * 商品标签
  46. */
  47. @DbField("g.tags")
  48. private String goodsTags;
  49. /**
  50. * 缩略图
  51. */
  52. @DbField("g.logo")
  53. private String goodsLogo;
  54. /**
  55. * 背景图
  56. */
  57. @DbField("g.img")
  58. private String goodsImg;
  59. /**
  60. * 类型
  61. */
  62. @DbField("g.type")
  63. private Integer goodsType;
  64. @DbField("g.second_type")
  65. private Integer secondType;
  66. @DbField("g.special_type")
  67. private GoodsDon.SpecialType specialType;
  68. /**
  69. * 最低规格价格
  70. */
  71. @DbField("g.min_price")
  72. private BigDecimal price;
  73. /**
  74. * 最低规格月份
  75. */
  76. @DbField("g.min_months")
  77. private Integer months;
  78. /**
  79. * 最低规格天数
  80. */
  81. @DbField("g.min_days")
  82. private Integer days;
  83. /**
  84. * 已售
  85. */
  86. @DbField("g.virtual_sold")
  87. private Integer sold;
  88. @DbIgnore
  89. private BigDecimal specificPrice;
  90. @DbIgnore
  91. private Long specificSkuId;
  92. @DbField("g.pay_desc")
  93. private String payDesc;
  94. /**
  95. * 是否是特定价格平台
  96. */
  97. @DbField("g.is_sp")
  98. private Boolean isSp;
  99. /**
  100. * 购买通知信息
  101. */
  102. @DbIgnore
  103. private String notifyMsg;
  104. @DbIgnore
  105. private List<GoodsDonSkuFrontView> skuList;
  106. @DbIgnore
  107. private GoodsDonSpec specs;
  108. @DbIgnore
  109. private OrderCommentFrontView comments;
  110. }