UserBenefitsFrontView.java 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  1. package com.cyksj.model.views;
  2. import com.cyksj.model.entity.UserBenefits;
  3. import com.ejlchina.searcher.bean.DbField;
  4. import com.ejlchina.searcher.bean.DbIgnore;
  5. import com.ejlchina.searcher.bean.SearchBean;
  6. import com.fasterxml.jackson.annotation.JsonIgnore;
  7. import lombok.Getter;
  8. import lombok.Setter;
  9. import java.util.List;
  10. /**
  11. * 项目名: yhlxj2
  12. * 文件名: UserBenefitsFrontView
  13. * 创建者: JavaZou
  14. * 创建时间:2024/9/23 15:34
  15. */
  16. @Getter
  17. @Setter
  18. @SearchBean(tables = "user_benefits ub left join goods_don g on g.id = ub.goods_id" +
  19. " left join goods_don_sku sku on sku.id = ub.sku_id",
  20. where = "ud.status is true",
  21. orderBy = "ub.sorted asc")
  22. public class UserBenefitsFrontView {
  23. @DbField("ub.id")
  24. private Long id;
  25. /**
  26. * 权益类型
  27. */
  28. @DbField("ub.type")
  29. private UserBenefits.Type type;
  30. /**
  31. * 生效平台
  32. */
  33. @DbField("ub.goods_id")
  34. private Long goodsId;
  35. @DbField("g.title")
  36. private String title;
  37. /**
  38. * 实物套餐权益 生效套餐ids
  39. */
  40. @DbField("ub.combo_sku_ids")
  41. private String comboSkuIds;
  42. /**
  43. * 实物套餐信息
  44. */
  45. @DbIgnore
  46. private List<GoodsDonSkuFrontView> comboSkuInfo;
  47. /**
  48. * 续费减免生效规格(购买那个规格可享受权益)
  49. */
  50. @DbField("ub.sku_id")
  51. private Long skuId;
  52. @DbField("sku.spec_val")
  53. private String specVal;
  54. /**
  55. * 续费减免配置
  56. */
  57. @DbField("ub.renew_config")
  58. @JsonIgnore
  59. private String renewConfig;
  60. /**
  61. * 续费减免配置
  62. */
  63. @DbField("ub.renew_config")
  64. private List<UserBenefits.RenewConfig> renewConfigList;
  65. /**
  66. * 图片撇脂
  67. */
  68. @DbField("ub.img_config")
  69. private String imgConfig;
  70. /**
  71. * 续费减免前几次减免
  72. */
  73. @DbField("ub.start_renew")
  74. private Integer startRenew;
  75. @DbField("ub.description")
  76. private String description;
  77. /**
  78. * 是否符合条件
  79. */
  80. @DbIgnore
  81. private Boolean isFh;
  82. /**
  83. * 使用过套餐权益
  84. */
  85. @DbIgnore
  86. private Boolean isComboUsed;
  87. /**
  88. * 续费次数
  89. */
  90. @DbIgnore
  91. private Integer renewCount;
  92. /**
  93. * 用户认证优惠券详情
  94. */
  95. @DbIgnore
  96. private List<CouponUserView> couponUserViews;
  97. /**
  98. * 认证优惠券展示
  99. */
  100. @DbIgnore
  101. private List<CouponView> couponViews;
  102. }