ExcelRealGoodsOrderData.java 3.2 KB

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