OrderDonWaybill.java 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. package com.cyksj.model.entity;
  2. import lombok.Data;
  3. import org.apache.commons.lang3.StringUtils;
  4. /**
  5. * @author chan
  6. * @date 2022/10/18 10:13 AM
  7. */
  8. @Data
  9. public class OrderDonWaybill extends BaseEntity{
  10. /**
  11. * 订单id
  12. */
  13. private Long orderId;
  14. /**
  15. * 物流公司简码
  16. */
  17. private String code;
  18. /**
  19. * 物流公司名称
  20. */
  21. private String codeCn;
  22. /**
  23. * 物流运单号
  24. */
  25. private String trackingNumber;
  26. private String remark;
  27. public void setCodeCn(String codeCn) {
  28. if (StringUtils.equals("中国 EMS",codeCn)){
  29. this.code = "china-ems";
  30. }
  31. if (StringUtils.equals("顺丰速运",codeCn)){
  32. this.code = "sf-express";
  33. }
  34. if (StringUtils.equals("申通快递",codeCn)){
  35. this.code = "sto";
  36. }
  37. if (StringUtils.equals("圆通快递",codeCn)){
  38. this.code = "yto";
  39. }
  40. if (StringUtils.equals("天天快递",codeCn)){
  41. this.code = "ttkd";
  42. }
  43. if (StringUtils.equals("中通快递",codeCn)){
  44. this.code = "zto";
  45. }
  46. if (StringUtils.equals("宅急送快递",codeCn)){
  47. this.code = "zjs-express";
  48. }
  49. if (StringUtils.equals("韵达快递",codeCn)){
  50. this.code = "yunda";
  51. }
  52. if (StringUtils.equals("全峰快递",codeCn)){
  53. this.code = "qfkd";
  54. }
  55. if (StringUtils.equals("国通快递",codeCn)){
  56. this.code = "cess";
  57. }
  58. if (StringUtils.equals("百世快递",codeCn)){
  59. this.code = "bestex";
  60. }
  61. if (StringUtils.equals("速尔快递",codeCn)){
  62. this.code = "sure56";
  63. }
  64. if (StringUtils.equals("快捷快递",codeCn)){
  65. this.code = "kjkd";
  66. }
  67. if (StringUtils.equals("优速快递",codeCn)){
  68. this.code = "uc-express";
  69. }
  70. if (StringUtils.equals("中国邮政",codeCn)){
  71. this.code = "china-post";
  72. }
  73. if (StringUtils.equals("德邦物流",codeCn)){
  74. this.code = "deppon";
  75. }
  76. if (StringUtils.equals("龙邦物流",codeCn)){
  77. this.code = "lbex";
  78. }
  79. if (StringUtils.equals("极兔速递",codeCn)){
  80. this.code = "jtexpress";
  81. }
  82. this.codeCn = codeCn;
  83. }
  84. }