HomeManagementFrontView.java 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176
  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.JsonIgnore;
  10. import com.fasterxml.jackson.annotation.JsonInclude;
  11. import lombok.Getter;
  12. import lombok.Setter;
  13. import java.math.BigDecimal;
  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.rg_type")
  47. private HomeManagementConfig.AdType rgType;
  48. @DbField("hc.rg_price")
  49. private BigDecimal rgPrice;
  50. @DbField("hc.rg_sub_title")
  51. private String rgSubTitle;
  52. @DbField("hc.pic")
  53. private String pic;
  54. @DbField("hc.icon")
  55. private String icon;
  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. /**
  74. * 类型
  75. */
  76. @DbField("g.type")
  77. private Integer goodsType;
  78. /**
  79. * 分类
  80. * 1、AI 2、流媒体
  81. */
  82. @DbField("g.category")
  83. private Long category;
  84. @DbField("g.second_type")
  85. private Integer secondType;
  86. @DbField("g.special_type")
  87. private GoodsDon.SpecialType specialType;
  88. /**
  89. * 最低规格价格
  90. */
  91. @DbField("g.min_price")
  92. private BigDecimal price;
  93. /**
  94. * 最低规格月份
  95. */
  96. @DbField("g.min_months")
  97. private Integer months;
  98. /**
  99. * 最低规格天数
  100. */
  101. @DbField("g.min_days")
  102. private Integer days;
  103. /**
  104. * 已售
  105. */
  106. @DbIgnore
  107. private Integer sold;
  108. /**
  109. * 虚拟销量
  110. */
  111. @DbField("g.virtual_sold")
  112. @JsonIgnore
  113. private Integer virtualSold;
  114. @DbIgnore
  115. private BigDecimal specificPrice;
  116. @DbIgnore
  117. private Long specificSkuId;
  118. @DbField("g.pay_desc")
  119. private String payDesc;
  120. /**
  121. * 是否是特定价格平台
  122. */
  123. @DbField("g.is_sp")
  124. private Boolean isSp;
  125. /**
  126. * 购买通知信息
  127. */
  128. @DbIgnore
  129. private String notifyMsg;
  130. @DbIgnore
  131. private List<GoodsDonSkuFrontView> skuList;
  132. @DbIgnore
  133. private GoodsDonSpec specs;
  134. @DbIgnore
  135. private OrderCommentFrontView comments;
  136. @DbIgnore
  137. private List<RealGoodsConfigDto> subInfoList;
  138. }