CouponClassificationCascadeView.java 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. package com.cyksj.model.views;
  2. import com.ejlchina.searcher.bean.DbField;
  3. import com.ejlchina.searcher.bean.DbIgnore;
  4. import com.ejlchina.searcher.bean.SearchBean;
  5. import lombok.Getter;
  6. import lombok.Setter;
  7. import java.util.Date;
  8. import java.util.List;
  9. /**
  10. * 项目名: yhlxj2
  11. * 文件名: CouponClassificationCascadeView
  12. * 创建者: JavaZou
  13. * 创建时间:2025/4/7 15:17
  14. */
  15. @Getter
  16. @Setter
  17. @SearchBean(tables = "coupon c inner join coupon_classification cc on cc.id = c.classification_id",
  18. where = "c.deleted is true")
  19. public class CouponClassificationCascadeView {
  20. @DbField("c.id")
  21. private Long id;
  22. @DbField("c.name")
  23. private String name;
  24. @DbField("c.is_valid_time")
  25. private Boolean isValidTime;
  26. @DbField("c.valid_start_time")
  27. private Date validStartTime;
  28. @DbField("c.valid_end_time")
  29. private Date validEndTime;
  30. @DbField("cc.name")
  31. private String category;
  32. @DbIgnore
  33. private String label;
  34. @DbIgnore
  35. private String value;
  36. private List<CouponChild> children;
  37. @Getter
  38. @Setter
  39. public static class CouponChild{
  40. private String label;
  41. private Long value;
  42. }
  43. }