liujie
2026-06-09 c96fbe6b0aeb413a17c429133ee6d81d138144b9
xp-robotaxi-api/src/main/java/com/xiaopeng/api/model/order/XpOrder.java
@@ -1,15 +1,14 @@
package com.xiaopeng.api.model.order;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.*;
import com.xiaopeng.common.core.enums.OrderStatusEnum;
import com.xiaopeng.common.core.web.domain.BaseModel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import com.fasterxml.jackson.annotation.JsonFormat;
import java.math.BigDecimal;
import java.time.LocalDateTime;
@@ -31,13 +30,18 @@
    private static final long serialVersionUID = 1L;
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    @TableId(value = "id", type = IdType.NONE)
    private Long id;
    @ApiModelProperty(value = "用户id")
    @TableField(updateStrategy = FieldStrategy.NEVER)
    private Long appUserId;
    @ApiModelProperty(value = "用户id")
    @ApiModelProperty(value = "开通城市id")
    private Long cityId;
    @ApiModelProperty(value = "合作商ID")
    private Integer officialPartnerId;
    @ApiModelProperty(value = "车辆id")
    private Long vehicleId;
@@ -53,7 +57,9 @@
    @ApiModelProperty(value = "订单来源 1=APP下单")
    private Integer orderSource;
    @ApiModelProperty(value = "乘车时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime rideTime;
    @ApiModelProperty(value = "下单地点经度")
@@ -93,6 +99,7 @@
    private String boardingAddress;
    @ApiModelProperty(value = "上车时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime boardingTime;
    @ApiModelProperty(value = "下车点经度")
@@ -105,19 +112,27 @@
    private String getoffAddress;
    @ApiModelProperty(value = "下车时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime getoffTime;
    @ApiModelProperty(value = "支付方式(1=微信,2=其他)")
    @ApiModelProperty(value = "支付方式(1=微信,2=其他 3免密)")
    private Integer payType;
    @ApiModelProperty(value = "订单金额")
    private BigDecimal orderMoney;
    @ApiModelProperty("后备箱  0未开  1开过  2关闭")
    private Integer openTrunk;
    @ApiModelProperty(value = "实际支付金额")
    private BigDecimal payMoney;
    @ApiModelProperty(value = "预付金额")
    private BigDecimal prepayMoney;
    @ApiModelProperty(value = "关闭订单的时候不能为空 是否豁免(0=否,1=是)")
    private Boolean isFree;
    @ApiModelProperty(value = "起步里程")
    private Double startMileage;
@@ -133,7 +148,8 @@
    @ApiModelProperty(value = "时长分钟")
    private Double duration;
    @ApiModelProperty(value = "时长费所属时段type=1 普通时段 type=2 夜间行驶时段 3高峰时段 4节假日时段")
    private Integer durationType;
    @ApiModelProperty(value = "时长费")
    private BigDecimal durationMoney;
@@ -145,7 +161,8 @@
    @ApiModelProperty(value = "远途公里")
    private Double longDistance;
    @ApiModelProperty(value = "远途费所属时段type=1 普通时段 type=2 夜间行驶时段 3高峰时段 4节假日时段")
    private Integer longDistanceType;
    @ApiModelProperty(value = "远途费")
    private BigDecimal longDistancemoney;
@@ -161,6 +178,12 @@
    @ApiModelProperty(value = "优惠券id")
    private Long couponId;
    @ApiModelProperty(value = "活动id")
    private Integer activityId;
    /**
     * {@link OrderStatusEnum }
     */
    @ApiModelProperty(value = "状态 0=已取消,1=待接单,2=待出发,3=接驾中,4=待客上车,5=乘客已上车,6=服务中,7=待客下车,8=待付款,9=待评价,10=已完成")
    private Integer status;
@@ -170,7 +193,7 @@
    @ApiModelProperty(value = "下单城市编码")
    private String cityCode;
    @ApiModelProperty(value = "下单站点id")
    @ApiModelProperty(value = "起点站点id")
    @TableField("start_point_id")
    private Long startPointId;
@@ -178,7 +201,7 @@
    @TableField("end_point_id")
    private Long endPointId;
    @ApiModelProperty(value = "下单站点名称")
    @ApiModelProperty(value = "起点站点名称")
    @TableField("start_point_name")
    private String startPointName;
@@ -188,6 +211,7 @@
    @ApiModelProperty(value = "订单预估时间 状态为1使用")
    @TableField("estimated_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime estimatedTime;
@@ -199,16 +223,88 @@
    @TableField("time_slot")
    private String timeSlot;
    @ApiModelProperty(value = "车辆到达上车点时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime arrivalTime;
    @ApiModelProperty(value = "接单时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime acceptanceTime;
    @ApiModelProperty(value = "行程开始时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime tripBegin;
    @ApiModelProperty(value = "预计到达时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime estimatedArrivalTime;
    @ApiModelProperty(value = "行程结束时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime tripEnd;
    @ApiModelProperty(value = "短信发送状态 0=未发送 1=已发送")
    @TableField("sms_status")
    private Integer smsStatus;
    @ApiModelProperty(value = "队列名称")
    @TableField("queue_name")
    private String queueName;
    @ApiModelProperty(value = "队列值")
    @TableField("queue_value")
    private String queueValue;
    // 用于计数
    @TableField(exist = false)
    private Integer num;
    @ApiModelProperty(value = "是否改价标识 0-否 1-是")
    private Boolean changeMoneyFlag;
    @ApiModelProperty(value = "车辆是否故障 0-否 1-是")
    private Boolean carAbnormal;
    @ApiModelProperty(value = "订单修改目的地的次数 默认0")
    private Integer orderChange;
    @ApiModelProperty(value = "XPU接驾行程任务id")
    @TableField("xpu_start_task_id")
    private String xpuStartTaskId;
    @ApiModelProperty(value = "XPU送驾行程任务id")
    @TableField("xpu_end_task_id")
    private String xpuEndTaskId;
    @ApiModelProperty(value = "-1:无需开票;0:未开票;1:开票中;2:已开票")
    @TableField("invoice_status")
    private Integer invoiceStatus;
    @ApiModelProperty(value = "发票id")
    @TableField("invoice_id")
    private String invoiceId;
    @ApiModelProperty(value = "信用下单接口获取的支付中心授权单号(商户订单号)")
    @TableField("auth_order_id")
    private String authOrderId;
    @ApiModelProperty(value = "信用下单接口获取的业务id")
    @TableField("business_order_id")
    private String businessOrderId;
    @ApiModelProperty(value = "业务主单号")
    @TableField("main_order_id")
    private String mainOrderId;
    @ApiModelProperty(value = "推送财务状态 1成功 0未推送 2失败")
    @TableField("frd_xfip_evenet_status")
    private Integer frdXfipEvenetStatus;
    @ApiModelProperty(value = "推送事件id")
    @TableField("frd_xfip_evenet_id")
    private String frdXfipEvenetId;
}