ExcelGroupRelationData.java 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136
  1. package com.cyksj.model.excel;
  2. import com.alibaba.excel.annotation.ExcelIgnore;
  3. import com.alibaba.excel.annotation.ExcelProperty;
  4. import com.cyksj.model.entity.GroupsTrips;
  5. import com.ejlchina.searcher.bean.DbField;
  6. import com.ejlchina.searcher.bean.DbIgnore;
  7. import com.ejlchina.searcher.bean.SearchBean;
  8. import lombok.Getter;
  9. import lombok.Setter;
  10. import java.util.Date;
  11. /*
  12. *项目名: yhlxj
  13. *文件名: ExcelGroupRelationData
  14. *创建者: JavaZou
  15. *创建时间:2023/9/12 18:01
  16. */
  17. @Getter
  18. @Setter
  19. @SearchBean(tables = "groups_trips gt left join goods_don_sku sku on gt.sku_id = sku.id " +
  20. "left join goods_don g on g.id = sku.goods_id " +
  21. "left join account a on a.id = gt.account_id ")
  22. public class ExcelGroupRelationData {
  23. @DbField("gt.id")
  24. @ExcelIgnore
  25. private Long groupId;
  26. /**
  27. * 商品skuId
  28. */
  29. @DbField("gt.sku_id")
  30. @ExcelIgnore
  31. private Long skuId;
  32. /**
  33. * 账号id
  34. */
  35. @DbField("gt.account_id")
  36. @ExcelIgnore
  37. private Long accountId;
  38. /**
  39. * 账号
  40. */
  41. @DbField("a.account")
  42. @ExcelProperty("账号")
  43. private String account;
  44. /**
  45. * 密码
  46. */
  47. @DbField("a.password")
  48. @ExcelProperty("密码")
  49. private String password;
  50. /**
  51. * 商品id
  52. */
  53. @DbField("g.id")
  54. @ExcelIgnore
  55. private Long goodsId;
  56. /**
  57. * 标题
  58. */
  59. @DbField("g.title")
  60. @ExcelProperty("平台")
  61. private String title;
  62. /**
  63. * 商品规格
  64. */
  65. @DbField("sku.spec_val")
  66. @ExcelProperty("规格")
  67. private String specVal;
  68. /**
  69. * 车位数量
  70. */
  71. @DbField("gt.num")
  72. @ExcelProperty("车位数量")
  73. private Integer num;
  74. /**
  75. * 可用车位数
  76. */
  77. @DbField("gt.available_num")
  78. @ExcelProperty("剩余车位")
  79. private Integer availableNum;
  80. /**
  81. * 状态
  82. */
  83. @DbField("gt.status")
  84. @ExcelIgnore
  85. private GroupsTrips.Status status;
  86. /**
  87. * 状态
  88. */
  89. @DbIgnore
  90. @ExcelProperty("状态")
  91. private String cnStatus;
  92. @DbField("a.expiry_time")
  93. @ExcelProperty("过期时间")
  94. private Date expiryTime;
  95. /**
  96. * 备注
  97. */
  98. @DbField("a.remark")
  99. @ExcelProperty("账号备注")
  100. private String remark;
  101. /**
  102. * 创建时间
  103. */
  104. @DbField("gt.created_time")
  105. @ExcelProperty("创建时间")
  106. private Date createdTime;
  107. /**
  108. * 更新时间
  109. */
  110. @DbField("gt.update_time")
  111. @ExcelProperty("修改时间")
  112. private Date updateTime;
  113. public String getCnStatus() {
  114. return status.getDesc();
  115. }
  116. }