HomeManagementFrontView.java 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164
  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("g.tags")
  61. private String goodsTags;
  62. /**
  63. * 缩略图
  64. */
  65. @DbField("g.logo")
  66. private String goodsLogo;
  67. /**
  68. * 背景图
  69. */
  70. @DbField("g.img")
  71. private String goodsImg;
  72. @DbField("g.match_img")
  73. private String matchImg;
  74. /**
  75. * 类型
  76. */
  77. @DbField("g.type")
  78. private Integer goodsType;
  79. @DbField("g.second_type")
  80. private Integer secondType;
  81. @DbField("g.special_type")
  82. private GoodsDon.SpecialType specialType;
  83. /**
  84. * 最低规格价格
  85. */
  86. @DbField("g.min_price")
  87. private BigDecimal price;
  88. /**
  89. * 最低规格月份
  90. */
  91. @DbField("g.min_months")
  92. private Integer months;
  93. /**
  94. * 最低规格天数
  95. */
  96. @DbField("g.min_days")
  97. private Integer days;
  98. /**
  99. * 已售
  100. */
  101. @DbField("g.virtual_sold")
  102. private Integer sold;
  103. @DbIgnore
  104. private BigDecimal specificPrice;
  105. @DbIgnore
  106. private Long specificSkuId;
  107. @DbField("g.pay_desc")
  108. private String payDesc;
  109. /**
  110. * 是否是特定价格平台
  111. */
  112. @DbField("g.is_sp")
  113. private Boolean isSp;
  114. /**
  115. * 购买通知信息
  116. */
  117. @DbIgnore
  118. private String notifyMsg;
  119. @DbIgnore
  120. private List<GoodsDonSkuFrontView> skuList;
  121. @DbIgnore
  122. private GoodsDonSpec specs;
  123. @DbIgnore
  124. private OrderCommentFrontView comments;
  125. @DbIgnore
  126. private List<RealGoodsConfigDto> subInfoList;
  127. }