| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394 |
- package com.cyksj.model.entity;
- import lombok.Data;
- import org.apache.commons.lang3.StringUtils;
- /**
- * @author chan
- * @date 2022/10/18 10:13 AM
- */
- @Data
- public class OrderDonWaybill extends BaseEntity{
- /**
- * 订单id
- */
- private Long orderId;
- /**
- * 物流公司简码
- */
- private String code;
- /**
- * 物流公司名称
- */
- private String codeCn;
- /**
- * 物流运单号
- */
- private String trackingNumber;
- private String remark;
- public void setCodeCn(String codeCn) {
- if (StringUtils.equals("中国 EMS",codeCn)){
- this.code = "china-ems";
- }
- if (StringUtils.equals("顺丰速运",codeCn)){
- this.code = "sf-express";
- }
- if (StringUtils.equals("申通快递",codeCn)){
- this.code = "sto";
- }
- if (StringUtils.equals("圆通快递",codeCn)){
- this.code = "yto";
- }
- if (StringUtils.equals("天天快递",codeCn)){
- this.code = "ttkd";
- }
- if (StringUtils.equals("中通快递",codeCn)){
- this.code = "zto";
- }
- if (StringUtils.equals("宅急送快递",codeCn)){
- this.code = "zjs-express";
- }
- if (StringUtils.equals("韵达快递",codeCn)){
- this.code = "yunda";
- }
- if (StringUtils.equals("全峰快递",codeCn)){
- this.code = "qfkd";
- }
- if (StringUtils.equals("国通快递",codeCn)){
- this.code = "cess";
- }
- if (StringUtils.equals("百世快递",codeCn)){
- this.code = "bestex";
- }
- if (StringUtils.equals("速尔快递",codeCn)){
- this.code = "sure56";
- }
- if (StringUtils.equals("快捷快递",codeCn)){
- this.code = "kjkd";
- }
- if (StringUtils.equals("优速快递",codeCn)){
- this.code = "uc-express";
- }
- if (StringUtils.equals("中国邮政",codeCn)){
- this.code = "china-post";
- }
- if (StringUtils.equals("德邦物流",codeCn)){
- this.code = "deppon";
- }
- if (StringUtils.equals("龙邦物流",codeCn)){
- this.code = "lbex";
- }
- if (StringUtils.equals("极兔速递",codeCn)){
- this.code = "jtexpress";
- }
- this.codeCn = codeCn;
- }
- }
|