HomeManagementFrontView.java 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187
  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.List;
  14. /*
  15. *项目名: netflix
  16. *文件名: HomeManagementFrontView
  17. *创建者: JavaZou
  18. *创建时间:2023/8/18 9:36
  19. */
  20. @Getter
  21. @Setter
  22. @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",
  23. where = ":condition:",
  24. orderBy = "hc.sorted asc")
  25. @JsonInclude(JsonInclude.Include.NON_NULL)
  26. public class HomeManagementFrontView {
  27. @DbField("hc.id")
  28. private Long homeManageConfigId;
  29. @DbField("hc.title")
  30. private String title;
  31. @DbField("hc.goods_id")
  32. private Long goodsId;
  33. @DbField("g.title")
  34. private String goodsTitle;
  35. @DbField("g.logo")
  36. private String logo;
  37. @DbField("g.is_owns")
  38. private Boolean isOwns;
  39. @DbField("hc.url")
  40. private String url;
  41. @DbField("hc.type")
  42. private HomeManagementConfig.Type type;
  43. @DbField("hc.ad_type")
  44. private HomeManagementConfig.AdType adType;
  45. @DbField("hc.is_shop")
  46. private Boolean isShop;
  47. @DbField("hc.rg_type")
  48. private HomeManagementConfig.RgType rgType;
  49. @DbField("hc.rg_price")
  50. private BigDecimal rgPrice;
  51. @DbField("hc.rg_sub_title")
  52. private String rgSubTitle;
  53. @DbField("hc.pic")
  54. private String pic;
  55. @DbField("hc.tag")
  56. private String tag;
  57. /**
  58. * 跳转类型
  59. */
  60. @DbField("hc.jump_type")
  61. private Integer jumpType;
  62. /**
  63. * 跳转平台
  64. */
  65. @DbField("hc.plat_sku_ids")
  66. private String platSkuIds;
  67. /**
  68. * 跳转平台
  69. */
  70. @DbField("hc.jump_title")
  71. private String jumpTitle;
  72. /**
  73. * 跳转规格
  74. */
  75. @DbField("hc.jump_spec_val")
  76. private String jumpSpecVal;
  77. /**
  78. * 商品标签
  79. */
  80. @DbField("g.tags")
  81. private String goodsTags;
  82. /**
  83. * 缩略图
  84. */
  85. @DbField("g.logo")
  86. private String goodsLogo;
  87. /**
  88. * 背景图
  89. */
  90. @DbField("g.img")
  91. private String goodsImg;
  92. @DbField("g.match_img")
  93. private String matchImg;
  94. /**
  95. * 类型
  96. */
  97. @DbField("g.type")
  98. private Integer goodsType;
  99. @DbField("g.second_type")
  100. private Integer secondType;
  101. @DbField("g.special_type")
  102. private GoodsDon.SpecialType specialType;
  103. /**
  104. * 最低规格价格
  105. */
  106. @DbField("g.min_price")
  107. private BigDecimal price;
  108. /**
  109. * 最低规格月份
  110. */
  111. @DbField("g.min_months")
  112. private Integer months;
  113. /**
  114. * 最低规格天数
  115. */
  116. @DbField("g.min_days")
  117. private Integer days;
  118. /**
  119. * 已售
  120. */
  121. @DbField("g.virtual_sold")
  122. private Integer sold;
  123. @DbIgnore
  124. private BigDecimal specificPrice;
  125. @DbIgnore
  126. private Long specificSkuId;
  127. @DbField("g.pay_desc")
  128. private String payDesc;
  129. /**
  130. * 是否是特定价格平台
  131. */
  132. @DbField("g.is_sp")
  133. private Boolean isSp;
  134. /**
  135. * 购买通知信息
  136. */
  137. @DbIgnore
  138. private String notifyMsg;
  139. @DbIgnore
  140. private List<GoodsDonSkuFrontView> skuList;
  141. @DbIgnore
  142. private GoodsDonSpec specs;
  143. @DbIgnore
  144. private OrderCommentFrontView comments;
  145. @DbIgnore
  146. private List<RealGoodsConfigDto> subInfoList;
  147. }