package com.bs.tm.domain;

import java.util.Date;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.bs.common.annotation.Excel;
import com.bs.common.core.domain.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
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 io.swagger.annotations.ApiModelProperty;

/**
 * 车辆货物运输对象 tm_order_trans
 *
 * @author bs
 * @date 2024-02-07
 */
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("tm_order_trans")
@Data
public class TmOrderTrans extends BaseEntity{
    private static final long serialVersionUID = 1L;

    /** id */
    @TableId(value = "id",type = IdType.AUTO)
    @ApiModelProperty(value = "id")
    private Long id;

    /** 订单ID */

    @Excel(name = "订单ID")
    @ApiModelProperty(value = "订单ID")
    private Long orderId;

    /** 车辆ID */

    @Excel(name = "车辆ID")
    @ApiModelProperty(value = "车辆ID")
    private Long vehicleId;

    /** 车牌号码 */

    @Excel(name = "车牌号码")
    @ApiModelProperty(value = "车牌号码")
    private String vehicleNumber;

    /** 挂车ID */

    @Excel(name = "挂车ID")
    @ApiModelProperty(value = "挂车ID")
    private Long trailerId;

    /** 挂车号码 */

    @Excel(name = "挂车号码")
    @ApiModelProperty(value = "挂车号码")
    private String trailerNumber;

    /** GPS代码 */

    @Excel(name = "GPS代码")
    @ApiModelProperty(value = "GPS代码")
    private String gpsCode;

    @Excel(name = "品牌型号")
    @ApiModelProperty(value = "品牌型号")
    private String vehicleBrand;

    @Excel(name = "载重(吨)")
    @ApiModelProperty(value = "载重(吨)")
    private String vehicleLoad;

    @Excel(name = "装载体积(m³)")
    @ApiModelProperty(value = "装载体积(m³)")
    private String vehicleVol;

    @Excel(name = "司机联系方式")
    @ApiModelProperty(value = "司机联系方式")
    private String contactWay;
    /** 司机ID */

    @Excel(name = "司机ID")
    @ApiModelProperty(value = "司机ID")
    private Long driverId;

    /** 司机姓名 */

    @Excel(name = "司机姓名")
    @ApiModelProperty(value = "司机姓名")
    private String driverName;

    /** 司机电话 */

    @Excel(name = "司机电话")
    @ApiModelProperty(value = "司机电话")
    private String driverMobile;


    /** 录入日期 */

    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "录入日期", width = 30, dateFormat = "yyyy-MM-dd")
    @ApiModelProperty(value = "录入日期")
    private Date inputDate;

    /** 发车时间 */

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "发车时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "发车时间")
    private Date departTime;

    /** 实际发车时间 */

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "实际发车时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "实际发车时间")
    private Date realDepartTime;

    /** 到达时间 */

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "到达时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "到达时间")
    private Date arrivalTime;

    /** 实际到达时间 */

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "实际到达时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "实际到达时间")
    private Date realArrivalTime;

    /** 收货时间 */

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "收货时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "收货时间")
    private Date receiveTime;

    /** 实际收货时间 */

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "实际收货时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "实际收货时间")
    private Date realReceiveTime;

    /** 签收人 */

    @Excel(name = "签收人")
    @ApiModelProperty(value = "签收人")
    private String receiver;

    /** 状态 */

    @Excel(name = "状态")
    @ApiModelProperty(value = "状态")
    private String status;

    /** 备注 */

    @Excel(name = "备注")
    @ApiModelProperty(value = "备注")
    private String remark;

    @TableField(exist = false)
    private List<TmOrderTransCargo> lsCargos;

    @TableField(exist = false)
    private TmOrder order;

    @TableField(exist = false)
    private Long transId;

    @TableField(exist = false)
    private String cargoName;

    @TableField(exist = false)
    private String statusByOrder;

    @TableField(exist = false)
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date beginDate;

    @TableField(exist = false)
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date endDate;

}
