GoodsQaShowView.java 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  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.List;
  8. /**
  9. * 项目名: yhlxj2
  10. * 文件名: GoodsQaShowView
  11. * 创建者: JavaZou
  12. * 创建时间:2025/2/7 12:04
  13. */
  14. @Getter
  15. @Setter
  16. @SearchBean(tables = "goods_don_qa_relate gr inner join goods_don_qa ga on ga.id = gr.question_id" +
  17. " inner join goods_don g on g.id = gr.goods_id" +
  18. " left join goods_don_category_relate gcr on gcr.goods_id = g.id" +
  19. " left join goods_don_category gc on gc.id = gcr.category",
  20. where = "ga.status is true and ga.deleted is true and g.status is true")
  21. public class GoodsQaShowView {
  22. @DbField("if(ga.type = 1,'售前','售后')")
  23. private String label;
  24. /**
  25. * 1.售前,2.售后
  26. */
  27. @DbField("ga.type")
  28. private Integer type;
  29. @DbIgnore
  30. private Integer value;
  31. @DbField("g.id")
  32. private Long goodsId;
  33. @DbField("g.title")
  34. private String title;
  35. /**
  36. * 分类
  37. */
  38. @DbField("gc.name")
  39. private String categoryName;
  40. @DbIgnore
  41. private List<QaGoodsType> children;
  42. @Getter
  43. @Setter
  44. public static class QaGoodsType {
  45. private Long category;
  46. //分类名
  47. private String label;
  48. //分类名
  49. private String value;
  50. private List<GoodsDonQaView> children;
  51. @Getter
  52. @Setter
  53. public static class GoodsDonQaView{
  54. //平台名
  55. private String label;
  56. //平台id
  57. private Long value;
  58. }
  59. }
  60. }