HomeManagementFrontView.java 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209
  1. package com.cyksj.model.views;
  2. import com.cyksj.model.dto.RealGoodsConfigDto;
  3. import com.cyksj.model.entity.GoodsDon;
  4. import com.cyksj.model.entity.GoodsDonSpec;
  5. import com.cyksj.model.entity.HomeManagementConfig;
  6. import com.ejlchina.searcher.bean.DbField;
  7. import com.ejlchina.searcher.bean.DbIgnore;
  8. import com.ejlchina.searcher.bean.SearchBean;
  9. import com.fasterxml.jackson.annotation.JsonInclude;
  10. import lombok.Getter;
  11. import lombok.Setter;
  12. import java.math.BigDecimal;
  13. import java.util.Date;
  14. import java.util.List;
  15. /*
  16. *项目名: netflix
  17. *文件名: HomeManagementFrontView
  18. *创建者: JavaZou
  19. *创建时间:2023/8/18 9:36
  20. */
  21. @Getter
  22. @Setter
  23. @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",
  24. where = ":condition:",
  25. orderBy = "hc.sorted asc")
  26. @JsonInclude(JsonInclude.Include.NON_NULL)
  27. public class HomeManagementFrontView {
  28. @DbField("hc.id")
  29. private Long homeManageConfigId;
  30. @DbField("hc.title")
  31. private String title;
  32. @DbField("hc.goods_id")
  33. private Long goodsId;
  34. @DbField("g.title")
  35. private String goodsTitle;
  36. @DbField("g.logo")
  37. private String logo;
  38. @DbField("g.is_owns")
  39. private Boolean isOwns;
  40. @DbField("hc.url")
  41. private String url;
  42. @DbField("hc.type")
  43. private HomeManagementConfig.Type type;
  44. @DbField("hc.ad_type")
  45. private HomeManagementConfig.AdType adType;
  46. @DbField("hc.is_shop")
  47. private Boolean isShop;
  48. @DbField("hc.rg_type")
  49. private HomeManagementConfig.RgType rgType;
  50. @DbField("hc.rg_price")
  51. private BigDecimal rgPrice;
  52. @DbField("hc.rg_sub_title")
  53. private String rgSubTitle;
  54. @DbField("hc.pic")
  55. private String pic;
  56. @DbField("hc.tag")
  57. private String tag;
  58. /**
  59. * 商品标签
  60. */
  61. @DbField("g.tags")
  62. private String goodsTags;
  63. /**
  64. * 缩略图
  65. */
  66. @DbField("g.logo")
  67. private String goodsLogo;
  68. /**
  69. * 背景图
  70. */
  71. @DbField("g.img")
  72. private String goodsImg;
  73. @DbField("g.match_img")
  74. private String matchImg;
  75. /**
  76. * 渠道优惠折扣
  77. */
  78. @DbIgnore
  79. private BigDecimal channelDiscount;
  80. /**
  81. * 优惠价格
  82. */
  83. @DbIgnore
  84. private BigDecimal discountPrice;
  85. /**
  86. * 优惠折扣
  87. */
  88. @DbIgnore
  89. private BigDecimal discount;
  90. /**
  91. * 满减金额
  92. */
  93. @DbIgnore
  94. private BigDecimal reduceMoney;
  95. /**
  96. * 优惠券有效结束时间
  97. */
  98. @DbIgnore
  99. private Date validEndTime;
  100. /**
  101. * 优惠券id
  102. */
  103. @DbIgnore
  104. private Long couponId;
  105. /**
  106. * 支付来源
  107. * 0全无 1.优惠券 2.渠道 3特定价格
  108. */
  109. @DbIgnore
  110. private Integer source = 0;
  111. /**
  112. * 类型
  113. */
  114. @DbField("g.type")
  115. private Integer goodsType;
  116. @DbField("g.second_type")
  117. private Integer secondType;
  118. @DbField("g.special_type")
  119. private GoodsDon.SpecialType specialType;
  120. /**
  121. * 最低规格价格
  122. */
  123. @DbField("g.min_price")
  124. private BigDecimal price = BigDecimal.ZERO;;
  125. /**
  126. * 最低规格月份
  127. */
  128. @DbField("g.min_months")
  129. private Integer months;
  130. /**
  131. * 最低规格天数
  132. */
  133. @DbField("g.min_days")
  134. private Integer days;
  135. /**
  136. * 已售
  137. */
  138. @DbField("g.virtual_sold")
  139. private Integer sold;
  140. @DbIgnore
  141. private BigDecimal specificPrice;
  142. @DbIgnore
  143. private Long specificSkuId;
  144. @DbField("g.pay_desc")
  145. private String payDesc;
  146. /**
  147. * 是否是特定价格平台
  148. */
  149. @DbField("g.is_sp")
  150. private Boolean isSp;
  151. /**
  152. * 购买通知信息
  153. */
  154. @DbIgnore
  155. private String notifyMsg;
  156. @DbIgnore
  157. private List<GoodsDonSkuFrontView> skuList;
  158. @DbIgnore
  159. private GoodsDonSpec specs;
  160. @DbIgnore
  161. private OrderCommentFrontView comments;
  162. @DbIgnore
  163. private List<RealGoodsConfigDto> subInfoList;
  164. }