ExcelRealGoodsOrderData.java 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174
  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.OrderDon;
  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. *项目名: netflix
  13. *文件名: ExcelRealGoodsOrderData
  14. *创建者: JavaZou
  15. *创建时间:2023/3/8 12:01
  16. */
  17. @Getter
  18. @Setter
  19. @SearchBean(tables = "order_don o left join goods_don_sku sku on o.sku_id = sku.id " +
  20. "left join goods_don g on g.id = sku.goods_id " +
  21. "left join user u on o.user_id = u.id " +
  22. "left join groups_relation gr on gr.id = o.relation_id " +
  23. "left join channel_popularize cp on o.popularize_id = cp.id " +
  24. "left join channel c on c.id = cp.channel_id " +
  25. "left join order_don_transport odt on odt.order_id = o.id")
  26. public class ExcelRealGoodsOrderData {
  27. @DbField("c.id")
  28. @ExcelIgnore
  29. private Long channelId;
  30. @DbField("o.relation_id")
  31. @ExcelIgnore
  32. private Long relationId;
  33. @DbField("gr.groups_id")
  34. @ExcelIgnore
  35. private Long groupsId;
  36. @DbField("gr.account")
  37. @ExcelIgnore
  38. private String account;
  39. @DbField("g.type")
  40. @ExcelIgnore
  41. private Integer goodsDonType;
  42. @DbField("g.second_type")
  43. @ExcelIgnore
  44. private Integer secondType;
  45. @DbField("o.order_no")
  46. @ExcelIgnore
  47. private String orderNo;
  48. @DbField("o.transaction_id")
  49. @ExcelIgnore
  50. private String transactionId;
  51. @DbField("g.title")
  52. @ExcelIgnore
  53. private String title;
  54. @DbField("u.id")
  55. @ExcelIgnore
  56. private Long userId;
  57. @DbField("case when u.login_phone != '' then 'phone' when u.email != '' then 'email' when u.open_id != '' then 'wechat' else 'wechat' end")
  58. @ExcelIgnore
  59. private String register;
  60. @DbField("o.status")
  61. @ExcelIgnore
  62. private OrderDon.Status status;
  63. @DbField("o.type")
  64. @ExcelIgnore
  65. private OrderDon.Type type;
  66. @DbField("o.order_type")
  67. @ExcelIgnore
  68. private Integer orderType;
  69. @DbField("o.num")
  70. @ExcelIgnore
  71. private Integer num;
  72. @DbField("o.created_time")
  73. @ExcelIgnore
  74. private Date createdTime;
  75. @DbField("o.ex_code")
  76. @ExcelIgnore
  77. private String exCode;
  78. /**
  79. * 收货人
  80. */
  81. @ExcelProperty("序号")
  82. @DbIgnore
  83. private Integer index;
  84. /**
  85. * 收货人
  86. */
  87. @ExcelProperty("姓名")
  88. @DbField("odt.receiver")
  89. private String receiver;
  90. /**
  91. * 手机号
  92. */
  93. @ExcelProperty("手机号码")
  94. @DbField("odt.phone")
  95. private String phone;
  96. @ExcelProperty("座机号")
  97. private String landLine;
  98. @ExcelProperty("公司名称")
  99. private String company;
  100. /**
  101. * 省份
  102. */
  103. @ExcelProperty("省")
  104. @DbField("odt.province")
  105. private String province;
  106. /**
  107. * 城市
  108. */
  109. @ExcelProperty("市")
  110. @DbField("odt.city")
  111. private String city;
  112. /**
  113. * 区/县
  114. */
  115. @ExcelProperty("区")
  116. @DbField("odt.district")
  117. private String district;
  118. /**
  119. * 详细地址
  120. */
  121. @ExcelProperty("详细地址")
  122. @DbField("odt.address")
  123. private String address;
  124. @ExcelProperty("付款方式")
  125. private String payType;
  126. @ExcelProperty("月结卡号")
  127. private String monthCardNo;
  128. @ExcelProperty("托寄物名称")
  129. private String realGoodName;
  130. @ExcelProperty("代收卡号(可选增加服务)")
  131. private String toMoneyCardNumber;
  132. @ExcelProperty("代收金额(可选增值服务)")
  133. private String toMoney;
  134. @ExcelProperty("收件统编")
  135. private String deliveryNumber;
  136. @ExcelProperty("备注")
  137. private String remark;
  138. }