HomeManagementFrontView.java 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244
  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("hc.jump_type")
  62. private Integer jumpType;
  63. /**
  64. * 跳转平台
  65. */
  66. @DbField("hc.plat_sku_ids")
  67. private String platSkuIds;
  68. /**
  69. * 跳转平台
  70. */
  71. @DbField("hc.jump_title")
  72. private String jumpTitle;
  73. /**
  74. * 跳转规格
  75. */
  76. @DbField("hc.jump_spec_val")
  77. private String jumpSpecVal;
  78. /**
  79. * 商品标签
  80. */
  81. @DbField("g.tags")
  82. private String goodsTags;
  83. /**
  84. * 缩略图
  85. */
  86. @DbField("g.logo")
  87. private String goodsLogo;
  88. /**
  89. * 背景图
  90. */
  91. @DbField("g.img")
  92. private String goodsImg;
  93. @DbField("g.match_img")
  94. private String matchImg;
  95. /**
  96. * 突出展示
  97. */
  98. @DbField("g.highlight_points")
  99. private String highlightPoints;
  100. /**
  101. * 渠道优惠折扣
  102. */
  103. @DbIgnore
  104. private BigDecimal channelDiscount;
  105. /**
  106. * 优惠价格
  107. */
  108. @DbIgnore
  109. private BigDecimal discountPrice;
  110. /**
  111. * 优惠折扣
  112. */
  113. @DbIgnore
  114. private BigDecimal discount;
  115. /**
  116. * 满减金额
  117. */
  118. @DbIgnore
  119. private BigDecimal reduceMoney;
  120. /**
  121. * 优惠券有效结束时间
  122. */
  123. @DbIgnore
  124. private Date validEndTime;
  125. /**
  126. * 优惠券id
  127. */
  128. @DbIgnore
  129. private Long couponId;
  130. /**
  131. * 支付来源
  132. * 0全无 1.优惠券 2.渠道 3特定价格
  133. */
  134. @DbIgnore
  135. private Integer source = 0;
  136. /**
  137. * 类型
  138. */
  139. @DbField("g.type")
  140. private Integer goodsType;
  141. @DbField("g.second_type")
  142. private Integer secondType;
  143. @DbField("g.special_type")
  144. private GoodsDon.SpecialType specialType;
  145. /**
  146. * 最低规格价格
  147. */
  148. @DbField("g.min_price")
  149. private BigDecimal price = BigDecimal.ZERO;;
  150. /**
  151. * 最低规格月份
  152. */
  153. @DbField("g.min_months")
  154. private Integer months;
  155. /**
  156. * 最低规格天数
  157. */
  158. @DbField("g.min_days")
  159. private Integer days;
  160. /**
  161. * 已售
  162. */
  163. @DbField("g.virtual_sold")
  164. private Integer sold;
  165. @DbIgnore
  166. private BigDecimal specificPrice;
  167. @DbIgnore
  168. private Long specificSkuId;
  169. @DbField("g.pay_desc")
  170. private String payDesc;
  171. /**
  172. * 是否是特定价格平台
  173. */
  174. @DbField("g.is_sp")
  175. private Boolean isSp;
  176. /**
  177. * 购买通知信息
  178. */
  179. @DbIgnore
  180. private String notifyMsg;
  181. @DbIgnore
  182. private List<GoodsDonSkuFrontView> skuList;
  183. @DbIgnore
  184. private GoodsDonSpec specs;
  185. @DbIgnore
  186. private OrderCommentFrontView comments;
  187. @DbIgnore
  188. private List<RealGoodsConfigDto> subInfoList;
  189. /**
  190. * gpt赠送天卡活动标识 默认false
  191. */
  192. @DbIgnore
  193. private Boolean isGptGift = false;
  194. }