HomeManagementFrontView.java 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238
  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. @DbIgnore
  99. private BigDecimal channelDiscount;
  100. /**
  101. * 优惠价格
  102. */
  103. @DbIgnore
  104. private BigDecimal discountPrice;
  105. /**
  106. * 优惠折扣
  107. */
  108. @DbIgnore
  109. private BigDecimal discount;
  110. /**
  111. * 满减金额
  112. */
  113. @DbIgnore
  114. private BigDecimal reduceMoney;
  115. /**
  116. * 优惠券有效结束时间
  117. */
  118. @DbIgnore
  119. private Date validEndTime;
  120. /**
  121. * 优惠券id
  122. */
  123. @DbIgnore
  124. private Long couponId;
  125. /**
  126. * 支付来源
  127. * 0全无 1.优惠券 2.渠道 3特定价格
  128. */
  129. @DbIgnore
  130. private Integer source = 0;
  131. /**
  132. * 类型
  133. */
  134. @DbField("g.type")
  135. private Integer goodsType;
  136. @DbField("g.second_type")
  137. private Integer secondType;
  138. @DbField("g.special_type")
  139. private GoodsDon.SpecialType specialType;
  140. /**
  141. * 最低规格价格
  142. */
  143. @DbField("g.min_price")
  144. private BigDecimal price = BigDecimal.ZERO;;
  145. /**
  146. * 最低规格月份
  147. */
  148. @DbField("g.min_months")
  149. private Integer months;
  150. /**
  151. * 最低规格天数
  152. */
  153. @DbField("g.min_days")
  154. private Integer days;
  155. /**
  156. * 已售
  157. */
  158. @DbField("g.virtual_sold")
  159. private Integer sold;
  160. @DbIgnore
  161. private BigDecimal specificPrice;
  162. @DbIgnore
  163. private Long specificSkuId;
  164. @DbField("g.pay_desc")
  165. private String payDesc;
  166. /**
  167. * 是否是特定价格平台
  168. */
  169. @DbField("g.is_sp")
  170. private Boolean isSp;
  171. /**
  172. * 购买通知信息
  173. */
  174. @DbIgnore
  175. private String notifyMsg;
  176. @DbIgnore
  177. private List<GoodsDonSkuFrontView> skuList;
  178. @DbIgnore
  179. private GoodsDonSpec specs;
  180. @DbIgnore
  181. private OrderCommentFrontView comments;
  182. @DbIgnore
  183. private List<RealGoodsConfigDto> subInfoList;
  184. /**
  185. * gpt赠送天卡活动标识 默认false
  186. */
  187. @DbIgnore
  188. private Boolean isGptGift = false;
  189. }