HomeManagementFrontView.java 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266
  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. /**
  41. * 是否是特殊ip过滤商品
  42. */
  43. @DbField("g.is_filter")
  44. private Boolean filter;
  45. /**
  46. * 是否开启订阅提醒
  47. */
  48. @DbField("g.is_subscribe_alert")
  49. private Boolean isSubscribeAlert;
  50. /**
  51. * 用户订阅状态
  52. * true 已开启
  53. */
  54. @DbIgnore
  55. private Boolean userSubscribeStatus = false;
  56. @DbField("hc.url")
  57. private String url;
  58. @DbField("hc.type")
  59. private HomeManagementConfig.Type type;
  60. @DbField("hc.ad_type")
  61. private HomeManagementConfig.AdType adType;
  62. @DbField("hc.is_shop")
  63. private Boolean isShop;
  64. @DbField("hc.rg_type")
  65. private HomeManagementConfig.RgType rgType;
  66. @DbField("hc.rg_price")
  67. private BigDecimal rgPrice;
  68. @DbField("hc.rg_sub_title")
  69. private String rgSubTitle;
  70. @DbField("hc.pic")
  71. private String pic;
  72. @DbField("hc.tag")
  73. private String tag;
  74. /**
  75. * 跳转类型
  76. */
  77. @DbField("hc.jump_type")
  78. private Integer jumpType;
  79. /**
  80. * 跳转平台
  81. */
  82. @DbField("hc.plat_sku_ids")
  83. private String platSkuIds;
  84. /**
  85. * 跳转平台
  86. */
  87. @DbField("hc.jump_title")
  88. private String jumpTitle;
  89. /**
  90. * 跳转规格
  91. */
  92. @DbField("hc.jump_spec_val")
  93. private String jumpSpecVal;
  94. /**
  95. * 商品标签
  96. */
  97. @DbField("g.tags")
  98. private String goodsTags;
  99. /**
  100. * 缩略图
  101. */
  102. @DbField("g.logo")
  103. private String goodsLogo;
  104. /**
  105. * 背景图
  106. */
  107. @DbField("g.img")
  108. private String goodsImg;
  109. @DbField("g.match_img")
  110. private String matchImg;
  111. /**
  112. * 突出展示
  113. */
  114. @DbField("g.highlight_points")
  115. private String highlightPoints;
  116. /**
  117. * 渠道优惠折扣
  118. */
  119. @DbIgnore
  120. private BigDecimal channelDiscount;
  121. /**
  122. * 优惠价格
  123. */
  124. @DbIgnore
  125. private BigDecimal discountPrice;
  126. /**
  127. * 优惠折扣
  128. */
  129. @DbIgnore
  130. private BigDecimal discount;
  131. /**
  132. * 满减金额
  133. */
  134. @DbIgnore
  135. private BigDecimal reduceMoney;
  136. /**
  137. * 优惠券有效结束时间
  138. */
  139. @DbIgnore
  140. private Date validEndTime;
  141. /**
  142. * 优惠券id
  143. */
  144. @DbIgnore
  145. private Long couponId;
  146. /**
  147. * 支付来源
  148. * 0全无 1.优惠券 2.渠道 3特定价格
  149. */
  150. @DbIgnore
  151. private Integer source = 0;
  152. /**
  153. * 类型
  154. */
  155. @DbField("g.type")
  156. private Integer goodsType;
  157. @DbField("g.second_type")
  158. private Integer secondType;
  159. @DbField("g.special_type")
  160. private GoodsDon.SpecialType specialType;
  161. /**
  162. * 最低规格价格
  163. */
  164. @DbField("g.min_price")
  165. private BigDecimal price = BigDecimal.ZERO;;
  166. /**
  167. * 最低规格月份
  168. */
  169. @DbField("g.min_months")
  170. private Integer months;
  171. /**
  172. * 最低规格天数
  173. */
  174. @DbField("g.min_days")
  175. private Integer days;
  176. /**
  177. * 已售
  178. */
  179. @DbField("g.virtual_sold")
  180. private Integer sold;
  181. @DbIgnore
  182. private BigDecimal specificPrice;
  183. @DbIgnore
  184. private Long specificSkuId;
  185. @DbField("g.pay_desc")
  186. private String payDesc;
  187. /**
  188. * 是否是特定价格平台
  189. */
  190. @DbField("g.is_sp")
  191. private Boolean isSp;
  192. @DbField("g.status")
  193. private Boolean status;
  194. /**
  195. * 购买通知信息
  196. */
  197. @DbIgnore
  198. private String notifyMsg;
  199. @DbIgnore
  200. private List<GoodsDonSkuFrontView> skuList;
  201. @DbIgnore
  202. private GoodsDonSpec specs;
  203. @DbIgnore
  204. private OrderCommentFrontView comments;
  205. @DbIgnore
  206. private List<RealGoodsConfigDto> subInfoList;
  207. /**
  208. * gpt赠送天卡活动标识 默认false
  209. */
  210. @DbIgnore
  211. private Boolean isGptGift = false;
  212. }