|
|
@@ -0,0 +1,613 @@
|
|
|
+package com.dderp.common.entity.express;
|
|
|
+
|
|
|
+import com.alibaba.fastjson2.annotation.JSONField;
|
|
|
+import com.dderp.common.entity.base.BaseEntity;
|
|
|
+import com.sweetfish.util.Comment;
|
|
|
+
|
|
|
+import java.util.ArrayList;
|
|
|
+import java.util.List;
|
|
|
+
|
|
|
+/**
|
|
|
+ * 顺丰同城订单信息
|
|
|
+ */
|
|
|
+public class SFOrder extends BaseEntity {
|
|
|
+
|
|
|
+ @Comment("同城开发者ID")
|
|
|
+ private long dev_id;
|
|
|
+
|
|
|
+ @Comment("店铺ID")
|
|
|
+ private String shop_id;
|
|
|
+
|
|
|
+ @Comment("店铺ID类型 1:顺丰店铺ID ;2:接入方店铺ID")
|
|
|
+ private int shop_type;
|
|
|
+
|
|
|
+ @Comment("商家订单号")
|
|
|
+ private String shop_order_id;
|
|
|
+
|
|
|
+ @Comment("商家预计备餐时长")
|
|
|
+ private long shop_preparation_time;
|
|
|
+
|
|
|
+ @Comment("商家订单号")
|
|
|
+ private String order_source;
|
|
|
+
|
|
|
+ @Comment("商家订单号")
|
|
|
+ private String order_sequence;
|
|
|
+
|
|
|
+ @Comment("商家订单号")
|
|
|
+ private int lbs_type;
|
|
|
+
|
|
|
+ @Comment("商家订单号")
|
|
|
+ private long order_time;
|
|
|
+
|
|
|
+ @Comment("商家订单号")
|
|
|
+ private int is_appoint;
|
|
|
+
|
|
|
+ @Comment("商家订单号")
|
|
|
+ private int appoint_type;
|
|
|
+
|
|
|
+ @Comment("商家订单号")
|
|
|
+ private long expect_time;
|
|
|
+
|
|
|
+ @Comment("商家订单号")
|
|
|
+ private long expect_pickup_time;
|
|
|
+
|
|
|
+ @Comment("商家订单号")
|
|
|
+ private String shop_expect_time;
|
|
|
+
|
|
|
+ @Comment("商家订单号")
|
|
|
+ private int is_insured;
|
|
|
+
|
|
|
+ @Comment("商家订单号")
|
|
|
+ private int is_person_direct;
|
|
|
+
|
|
|
+ @Comment("商家订单号")
|
|
|
+ @JSONField(serialize = false)
|
|
|
+ private int vehicle;
|
|
|
+
|
|
|
+ @Comment("车型")
|
|
|
+ @JSONField(serialize = false)
|
|
|
+ private int four_wheeler_type;
|
|
|
+
|
|
|
+ @Comment("保价金额")
|
|
|
+ private long declared_value;
|
|
|
+
|
|
|
+ @Comment("订单小费,不传或者传0为不加小费")
|
|
|
+ private long gratuity_fee;
|
|
|
+
|
|
|
+ @Comment("订单备注")
|
|
|
+ private String remark;
|
|
|
+
|
|
|
+ @Comment("物流流向")
|
|
|
+ private long rider_pick_method;
|
|
|
+
|
|
|
+ @Comment("返回字段控制标志位(二进制)")
|
|
|
+ private int return_flag;
|
|
|
+
|
|
|
+ @Comment("是否发送取件码、收件码")
|
|
|
+ private int verify_code_type;
|
|
|
+
|
|
|
+ @Comment("推单时间")
|
|
|
+ private long push_time;
|
|
|
+
|
|
|
+ @Comment("订单版本号")
|
|
|
+ private long order_ver;
|
|
|
+
|
|
|
+ @Comment("版本号")
|
|
|
+ private long version;
|
|
|
+
|
|
|
+ @Comment("收货人信息")
|
|
|
+ private SFOrderReceive receive;
|
|
|
+
|
|
|
+ @Comment("发货店铺信息")
|
|
|
+ private SFOrderShop shop;
|
|
|
+
|
|
|
+ @Comment("订单详情")
|
|
|
+ private SFOrderDetail order_detail;
|
|
|
+
|
|
|
+ @Comment("多点取货信息")
|
|
|
+ private List<SFOrderPickupInfo> multi_pickup_info = new ArrayList<>();
|
|
|
+
|
|
|
+ @Comment("骑手token")
|
|
|
+ private String rider_token;
|
|
|
+
|
|
|
+ public SFOrder() {
|
|
|
+ }
|
|
|
+
|
|
|
+ private SFOrder(Builder builder) {
|
|
|
+ setDev_id(builder.dev_id);
|
|
|
+ setShop_id(builder.shop_id);
|
|
|
+ setShop_type(builder.shop_type);
|
|
|
+ setShop_order_id(builder.shop_order_id);
|
|
|
+ setShop_preparation_time(builder.shop_preparation_time);
|
|
|
+ setOrder_source(builder.order_source);
|
|
|
+ setOrder_sequence(builder.order_sequence);
|
|
|
+ setLbs_type(builder.lbs_type);
|
|
|
+ setOrder_time(builder.order_time);
|
|
|
+ setIs_appoint(builder.is_appoint);
|
|
|
+ setAppoint_type(builder.appoint_type);
|
|
|
+ setExpect_time(builder.expect_time);
|
|
|
+ setExpect_pickup_time(builder.expect_pickup_time);
|
|
|
+ setShop_expect_time(builder.shop_expect_time);
|
|
|
+ setIs_insured(builder.is_insured);
|
|
|
+ setIs_person_direct(builder.is_person_direct);
|
|
|
+ setVehicle(builder.vehicle);
|
|
|
+ setFour_wheeler_type(builder.four_wheeler_type);
|
|
|
+ setDeclared_value(builder.declared_value);
|
|
|
+ setGratuity_fee(builder.gratuity_fee);
|
|
|
+ setRemark(builder.remark);
|
|
|
+ setRider_pick_method(builder.rider_pick_method);
|
|
|
+ setReturn_flag(builder.return_flag);
|
|
|
+ setVerify_code_type(builder.verify_code_type);
|
|
|
+ setPush_time(builder.push_time);
|
|
|
+ setOrder_ver(builder.order_ver);
|
|
|
+ setVersion(builder.version);
|
|
|
+ setReceive(builder.receive);
|
|
|
+ setShop(builder.shop);
|
|
|
+ setOrder_detail(builder.order_detail);
|
|
|
+ setMulti_pickup_info(builder.multi_pickup_info);
|
|
|
+ setRider_token(builder.rider_token);
|
|
|
+ }
|
|
|
+
|
|
|
+ public static Builder newBuilder() {
|
|
|
+ return new Builder();
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+ public long getDev_id() {
|
|
|
+ return dev_id;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setDev_id(long dev_id) {
|
|
|
+ this.dev_id = dev_id;
|
|
|
+ }
|
|
|
+
|
|
|
+ public String getShop_id() {
|
|
|
+ return shop_id;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setShop_id(String shop_id) {
|
|
|
+ this.shop_id = shop_id;
|
|
|
+ }
|
|
|
+
|
|
|
+ public int getShop_type() {
|
|
|
+ return shop_type;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setShop_type(int shop_type) {
|
|
|
+ this.shop_type = shop_type;
|
|
|
+ }
|
|
|
+
|
|
|
+ public String getShop_order_id() {
|
|
|
+ return shop_order_id;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setShop_order_id(String shop_order_id) {
|
|
|
+ this.shop_order_id = shop_order_id;
|
|
|
+ }
|
|
|
+
|
|
|
+ public long getShop_preparation_time() {
|
|
|
+ return shop_preparation_time;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setShop_preparation_time(long shop_preparation_time) {
|
|
|
+ this.shop_preparation_time = shop_preparation_time;
|
|
|
+ }
|
|
|
+
|
|
|
+ public String getOrder_source() {
|
|
|
+ return order_source;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setOrder_source(String order_source) {
|
|
|
+ this.order_source = order_source;
|
|
|
+ }
|
|
|
+
|
|
|
+ public String getOrder_sequence() {
|
|
|
+ return order_sequence;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setOrder_sequence(String order_sequence) {
|
|
|
+ this.order_sequence = order_sequence;
|
|
|
+ }
|
|
|
+
|
|
|
+ public int getLbs_type() {
|
|
|
+ return lbs_type;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setLbs_type(int lbs_type) {
|
|
|
+ this.lbs_type = lbs_type;
|
|
|
+ }
|
|
|
+
|
|
|
+ public long getOrder_time() {
|
|
|
+ return order_time;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setOrder_time(long order_time) {
|
|
|
+ this.order_time = order_time;
|
|
|
+ }
|
|
|
+
|
|
|
+ public int getIs_appoint() {
|
|
|
+ return is_appoint;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setIs_appoint(int is_appoint) {
|
|
|
+ this.is_appoint = is_appoint;
|
|
|
+ }
|
|
|
+
|
|
|
+ public int getAppoint_type() {
|
|
|
+ return appoint_type;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setAppoint_type(int appoint_type) {
|
|
|
+ this.appoint_type = appoint_type;
|
|
|
+ }
|
|
|
+
|
|
|
+ public long getExpect_time() {
|
|
|
+ return expect_time;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setExpect_time(long expect_time) {
|
|
|
+ this.expect_time = expect_time;
|
|
|
+ }
|
|
|
+
|
|
|
+ public long getExpect_pickup_time() {
|
|
|
+ return expect_pickup_time;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setExpect_pickup_time(long expect_pickup_time) {
|
|
|
+ this.expect_pickup_time = expect_pickup_time;
|
|
|
+ }
|
|
|
+
|
|
|
+ public String getShop_expect_time() {
|
|
|
+ return shop_expect_time;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setShop_expect_time(String shop_expect_time) {
|
|
|
+ this.shop_expect_time = shop_expect_time;
|
|
|
+ }
|
|
|
+
|
|
|
+ public int getIs_insured() {
|
|
|
+ return is_insured;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setIs_insured(int is_insured) {
|
|
|
+ this.is_insured = is_insured;
|
|
|
+ }
|
|
|
+
|
|
|
+ public int getIs_person_direct() {
|
|
|
+ return is_person_direct;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setIs_person_direct(int is_person_direct) {
|
|
|
+ this.is_person_direct = is_person_direct;
|
|
|
+ }
|
|
|
+
|
|
|
+ public int getVehicle() {
|
|
|
+ return vehicle;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setVehicle(int vehicle) {
|
|
|
+ this.vehicle = vehicle;
|
|
|
+ }
|
|
|
+
|
|
|
+ public int getFour_wheeler_type() {
|
|
|
+ return four_wheeler_type;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setFour_wheeler_type(int four_wheeler_type) {
|
|
|
+ this.four_wheeler_type = four_wheeler_type;
|
|
|
+ }
|
|
|
+
|
|
|
+ public long getDeclared_value() {
|
|
|
+ return declared_value;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setDeclared_value(long declared_value) {
|
|
|
+ this.declared_value = declared_value;
|
|
|
+ }
|
|
|
+
|
|
|
+ public long getGratuity_fee() {
|
|
|
+ return gratuity_fee;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setGratuity_fee(long gratuity_fee) {
|
|
|
+ this.gratuity_fee = gratuity_fee;
|
|
|
+ }
|
|
|
+
|
|
|
+ public String getRemark() {
|
|
|
+ return remark;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setRemark(String remark) {
|
|
|
+ this.remark = remark;
|
|
|
+ }
|
|
|
+
|
|
|
+ public long getRider_pick_method() {
|
|
|
+ return rider_pick_method;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setRider_pick_method(long rider_pick_method) {
|
|
|
+ this.rider_pick_method = rider_pick_method;
|
|
|
+ }
|
|
|
+
|
|
|
+ public int getReturn_flag() {
|
|
|
+ return return_flag;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setReturn_flag(int return_flag) {
|
|
|
+ this.return_flag = return_flag;
|
|
|
+ }
|
|
|
+
|
|
|
+ public int getVerify_code_type() {
|
|
|
+ return verify_code_type;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setVerify_code_type(int verify_code_type) {
|
|
|
+ this.verify_code_type = verify_code_type;
|
|
|
+ }
|
|
|
+
|
|
|
+ public long getPush_time() {
|
|
|
+ return push_time;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setPush_time(long push_time) {
|
|
|
+ this.push_time = push_time;
|
|
|
+ }
|
|
|
+
|
|
|
+ public long getOrder_ver() {
|
|
|
+ return order_ver;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setOrder_ver(long order_ver) {
|
|
|
+ this.order_ver = order_ver;
|
|
|
+ }
|
|
|
+
|
|
|
+ public long getVersion() {
|
|
|
+ return version;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setVersion(long version) {
|
|
|
+ this.version = version;
|
|
|
+ }
|
|
|
+
|
|
|
+ public SFOrderReceive getReceive() {
|
|
|
+ return receive;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setReceive(SFOrderReceive receive) {
|
|
|
+ this.receive = receive;
|
|
|
+ }
|
|
|
+
|
|
|
+ public SFOrderShop getShop() {
|
|
|
+ return shop;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setShop(SFOrderShop shop) {
|
|
|
+ this.shop = shop;
|
|
|
+ }
|
|
|
+
|
|
|
+ public SFOrderDetail getOrder_detail() {
|
|
|
+ return order_detail;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setOrder_detail(SFOrderDetail order_detail) {
|
|
|
+ this.order_detail = order_detail;
|
|
|
+ }
|
|
|
+
|
|
|
+ public List<SFOrderPickupInfo> getMulti_pickup_info() {
|
|
|
+ return multi_pickup_info;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setMulti_pickup_info(List<SFOrderPickupInfo> multi_pickup_info) {
|
|
|
+ this.multi_pickup_info = multi_pickup_info;
|
|
|
+ }
|
|
|
+
|
|
|
+ public String getRider_token() {
|
|
|
+ return rider_token;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setRider_token(String rider_token) {
|
|
|
+ this.rider_token = rider_token;
|
|
|
+ }
|
|
|
+
|
|
|
+ public static final class Builder {
|
|
|
+ private long dev_id;
|
|
|
+ private String shop_id;
|
|
|
+ private int shop_type;
|
|
|
+ private String shop_order_id;
|
|
|
+ private long shop_preparation_time;
|
|
|
+ private String order_source;
|
|
|
+ private String order_sequence;
|
|
|
+ private int lbs_type;
|
|
|
+ private long order_time;
|
|
|
+ private int is_appoint;
|
|
|
+ private int appoint_type;
|
|
|
+ private long expect_time;
|
|
|
+ private long expect_pickup_time;
|
|
|
+ private String shop_expect_time;
|
|
|
+ private int is_insured;
|
|
|
+ private int is_person_direct;
|
|
|
+ private int vehicle;
|
|
|
+ private int four_wheeler_type;
|
|
|
+ private long declared_value;
|
|
|
+ private long gratuity_fee;
|
|
|
+ private String remark;
|
|
|
+ private long rider_pick_method;
|
|
|
+ private int return_flag;
|
|
|
+ private int verify_code_type;
|
|
|
+ private long push_time;
|
|
|
+ private long order_ver;
|
|
|
+ private long version;
|
|
|
+ private SFOrderReceive receive;
|
|
|
+ private SFOrderShop shop;
|
|
|
+ private SFOrderDetail order_detail;
|
|
|
+ private List<SFOrderPickupInfo> multi_pickup_info;
|
|
|
+ private String rider_token;
|
|
|
+
|
|
|
+ private Builder() {
|
|
|
+ }
|
|
|
+
|
|
|
+ public Builder dev_id(long val) {
|
|
|
+ dev_id = val;
|
|
|
+ return this;
|
|
|
+ }
|
|
|
+
|
|
|
+ public Builder shop_id(String val) {
|
|
|
+ shop_id = val;
|
|
|
+ return this;
|
|
|
+ }
|
|
|
+
|
|
|
+ public Builder shop_type(int val) {
|
|
|
+ shop_type = val;
|
|
|
+ return this;
|
|
|
+ }
|
|
|
+
|
|
|
+ public Builder shop_order_id(String val) {
|
|
|
+ shop_order_id = val;
|
|
|
+ return this;
|
|
|
+ }
|
|
|
+
|
|
|
+ public Builder shop_preparation_time(long val) {
|
|
|
+ shop_preparation_time = val;
|
|
|
+ return this;
|
|
|
+ }
|
|
|
+
|
|
|
+ public Builder order_source(String val) {
|
|
|
+ order_source = val;
|
|
|
+ return this;
|
|
|
+ }
|
|
|
+
|
|
|
+ public Builder order_sequence(String val) {
|
|
|
+ order_sequence = val;
|
|
|
+ return this;
|
|
|
+ }
|
|
|
+
|
|
|
+ public Builder lbs_type(int val) {
|
|
|
+ lbs_type = val;
|
|
|
+ return this;
|
|
|
+ }
|
|
|
+
|
|
|
+ public Builder order_time(long val) {
|
|
|
+ order_time = val;
|
|
|
+ return this;
|
|
|
+ }
|
|
|
+
|
|
|
+ public Builder is_appoint(int val) {
|
|
|
+ is_appoint = val;
|
|
|
+ return this;
|
|
|
+ }
|
|
|
+
|
|
|
+ public Builder appoint_type(int val) {
|
|
|
+ appoint_type = val;
|
|
|
+ return this;
|
|
|
+ }
|
|
|
+
|
|
|
+ public Builder expect_time(long val) {
|
|
|
+ expect_time = val;
|
|
|
+ return this;
|
|
|
+ }
|
|
|
+
|
|
|
+ public Builder expect_pickup_time(long val) {
|
|
|
+ expect_pickup_time = val;
|
|
|
+ return this;
|
|
|
+ }
|
|
|
+
|
|
|
+ public Builder shop_expect_time(String val) {
|
|
|
+ shop_expect_time = val;
|
|
|
+ return this;
|
|
|
+ }
|
|
|
+
|
|
|
+ public Builder is_insured(int val) {
|
|
|
+ is_insured = val;
|
|
|
+ return this;
|
|
|
+ }
|
|
|
+
|
|
|
+ public Builder is_person_direct(int val) {
|
|
|
+ is_person_direct = val;
|
|
|
+ return this;
|
|
|
+ }
|
|
|
+
|
|
|
+ public Builder vehicle(int val) {
|
|
|
+ vehicle = val;
|
|
|
+ return this;
|
|
|
+ }
|
|
|
+
|
|
|
+ public Builder four_wheeler_type(int val) {
|
|
|
+ four_wheeler_type = val;
|
|
|
+ return this;
|
|
|
+ }
|
|
|
+
|
|
|
+ public Builder declared_value(long val) {
|
|
|
+ declared_value = val;
|
|
|
+ return this;
|
|
|
+ }
|
|
|
+
|
|
|
+ public Builder gratuity_fee(long val) {
|
|
|
+ gratuity_fee = val;
|
|
|
+ return this;
|
|
|
+ }
|
|
|
+
|
|
|
+ public Builder remark(String val) {
|
|
|
+ remark = val;
|
|
|
+ return this;
|
|
|
+ }
|
|
|
+
|
|
|
+ public Builder rider_pick_method(long val) {
|
|
|
+ rider_pick_method = val;
|
|
|
+ return this;
|
|
|
+ }
|
|
|
+
|
|
|
+ public Builder return_flag(int val) {
|
|
|
+ return_flag = val;
|
|
|
+ return this;
|
|
|
+ }
|
|
|
+
|
|
|
+ public Builder verify_code_type(int val) {
|
|
|
+ verify_code_type = val;
|
|
|
+ return this;
|
|
|
+ }
|
|
|
+
|
|
|
+ public Builder push_time(long val) {
|
|
|
+ push_time = val;
|
|
|
+ return this;
|
|
|
+ }
|
|
|
+
|
|
|
+ public Builder order_ver(long val) {
|
|
|
+ order_ver = val;
|
|
|
+ return this;
|
|
|
+ }
|
|
|
+
|
|
|
+ public Builder version(long val) {
|
|
|
+ version = val;
|
|
|
+ return this;
|
|
|
+ }
|
|
|
+
|
|
|
+ public Builder receive(SFOrderReceive val) {
|
|
|
+ receive = val;
|
|
|
+ return this;
|
|
|
+ }
|
|
|
+
|
|
|
+ public Builder shop(SFOrderShop val) {
|
|
|
+ shop = val;
|
|
|
+ return this;
|
|
|
+ }
|
|
|
+
|
|
|
+ public Builder order_detail(SFOrderDetail val) {
|
|
|
+ order_detail = val;
|
|
|
+ return this;
|
|
|
+ }
|
|
|
+
|
|
|
+ public Builder multi_pickup_info(List<SFOrderPickupInfo> val) {
|
|
|
+ multi_pickup_info = val;
|
|
|
+ return this;
|
|
|
+ }
|
|
|
+
|
|
|
+ public Builder rider_token(String val) {
|
|
|
+ rider_token = val;
|
|
|
+ return this;
|
|
|
+ }
|
|
|
+
|
|
|
+ public SFOrder build() {
|
|
|
+ return new SFOrder(this);
|
|
|
+ }
|
|
|
+ }
|
|
|
+}
|