IncrementOrderVo.java 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192
  1. package com.fdkankan.manage.vo.response;
  2. import com.alibaba.excel.annotation.ExcelIgnore;
  3. import com.alibaba.excel.annotation.ExcelProperty;
  4. import com.baomidou.mybatisplus.annotation.TableField;
  5. import com.fdkankan.manage.util.DateUtils;
  6. import lombok.Data;
  7. import org.apache.commons.lang3.StringUtils;
  8. import java.math.BigDecimal;
  9. import java.util.Date;
  10. @Data
  11. public class IncrementOrderVo {
  12. @ExcelIgnore
  13. private Long id;
  14. @ExcelIgnore
  15. private String createTime; //下单时间
  16. @ExcelProperty("下单时间")
  17. private String tradeTime; //下单时间
  18. @ExcelProperty("订单号")
  19. private String orderSn; //订单号
  20. @ExcelProperty("用户账号")
  21. private String userName; //用户账号
  22. @ExcelProperty("合同所属公司")
  23. private String companyName;
  24. @ExcelProperty("业务部门")
  25. private String businessDept;
  26. @ExcelProperty("业务员")
  27. private String businessName;
  28. @ExcelProperty("客户付款时间")
  29. private String customerPayTime;
  30. @ExcelIgnore
  31. private String nickName; //昵称
  32. @ExcelProperty("客户名称")
  33. private String customerName;
  34. /**
  35. * 客户类别0直销,1经销
  36. */
  37. @ExcelIgnore
  38. private Integer customerType;
  39. @ExcelProperty("客户类别")
  40. private String customerTypeStr;
  41. @ExcelProperty("终端客户")
  42. private String endCustomer;
  43. @ExcelProperty("经销商名称")
  44. private String agentName;
  45. @ExcelIgnore
  46. private Integer useType;
  47. @ExcelProperty("使用类型")
  48. private String useTypeStr;
  49. @ExcelProperty("权益类型")
  50. private String memberLevels;
  51. @ExcelProperty("订单金额")
  52. private BigDecimal amount; //订单金额
  53. @ExcelProperty("币种")
  54. private String currencySymbol; //订单金额
  55. @ExcelProperty("数量")
  56. private BigDecimal count; //数量
  57. @ExcelProperty("支付方式")
  58. private String payType; //支付方式 付款方式,0表示微信,1表示支付宝,2表示paypal,3表示其他,4表示货到付款
  59. @ExcelProperty("交易号")
  60. private String number; //交易号
  61. @ExcelProperty("付款状态")
  62. private String payStatus; //付款状态(状态,0或-1表示未付款,-2表示已退款,1表示已付款
  63. @ExcelIgnore
  64. private Integer timeZoneOff;
  65. @ExcelProperty("充值方式")
  66. private String payMethod;
  67. @ExcelProperty("会员服务期限")
  68. private String incrementTime;
  69. @ExcelProperty("SN码")
  70. private String snCode;
  71. @ExcelProperty("项目号")
  72. private String projectNum;
  73. @ExcelProperty("备注")
  74. private String remark;
  75. @ExcelIgnore
  76. private Date incrementStartTime;
  77. @ExcelIgnore
  78. private Date incrementEndTime;
  79. @ExcelIgnore
  80. private Integer incrementId;
  81. public String getPayType() {
  82. if(payType == null){
  83. return "";
  84. }
  85. switch (payType){
  86. case "0" : return "微信";
  87. case "1" : return "支付宝";
  88. case "2" : return "paypal";
  89. case "3" : return "其他";
  90. case "4" : return "货到付款";
  91. default: return "";
  92. }
  93. }
  94. public String getPayStatus() {
  95. if(payStatus == null){
  96. return "";
  97. }
  98. switch (payStatus){
  99. case "-1" :
  100. case "0" :
  101. return "未付款";
  102. case "-2" : return "已退款";
  103. case "1" : return "已付款";
  104. default: return "";
  105. }
  106. }
  107. public String getCustomerTypeStr() {
  108. if(customerType == null){
  109. return "";
  110. }
  111. switch (customerType){
  112. case 0 : return "直销";
  113. case 1 : return "经销";
  114. default: return "";
  115. }
  116. }
  117. public String getUseTypeStr() {
  118. if(useType == null){
  119. return "";
  120. }
  121. switch (useType){
  122. case 1 : return "项目实施";
  123. case 2 : return "客户试用";
  124. case 3 : return "内部测试";
  125. case 4 : return "正常销售";
  126. case 5 : return "渠道推广";
  127. case 6 : return "其它";
  128. default: return "";
  129. }
  130. }
  131. public String getIncrementTime() {
  132. if(incrementStartTime==null || incrementEndTime == null){
  133. return "";
  134. }
  135. return DateUtils.getDayDate(incrementStartTime) +"~" + DateUtils.getDayDate(incrementEndTime);
  136. }
  137. public String getMemberLevels() {
  138. if(StringUtils.isNotBlank(memberLevels)){
  139. switch (memberLevels){
  140. case "PR" : return "专业会员";
  141. case "SE" : return "高级会员";
  142. }
  143. }
  144. return memberLevels;
  145. }
  146. }