package com.jkcredit.invoice.model.entity;

import cn.afterturn.easypoi.excel.annotation.Excel;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.jkcredit.invoice.common.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * @description: 运单结束实体
 * @author: sunzhaoning
 * @create: 2019-05-31 10:19
 * @version: V1.0
 **/
@Data
@ApiModel(value = "运单结束实体类")
public class CarFreeCarrierBillEnd  extends BaseEntity implements Serializable {

    private static final long serialVersionUID = -6567386776965435129L;

    @TableId(type = IdType.AUTO)
    private Integer id;

    /**
     * 运单编号
     */
    @Excel(name = "运单编号")
    @ApiModelProperty(value = "运单编号")
    private String num;

    /**
     * 运单实际目的地址
     */
    @Excel(name = "运单目的地址")
    @ApiModelProperty(value = "运单实际目的地址")
    private String realDestAddr;

    /**
     * 运单实际结束时间
     */
    @Excel(name = "运单实际结束时间",format="yyyy-MM-dd HH:mm:ss",databaseFormat = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "运单实际结束时间")
    private Date billEndTime;

    /**
     * 结束时间
     */
    @Excel(name = "结束时间")
    @ApiModelProperty(value = "结束时间")
    private String endTime;

    /**
     * 开票时长
     */
    @Excel(name = "开票时长")
    @ApiModelProperty(value = "开票时长")
    private Integer invoiceTime;

    /**
     * 是否成功
     */
    @ApiModelProperty(value = "是否成功")
    private Integer isSuccess;

    /**
     * 批次号
     */
    @ApiModelProperty(value = "批次号")
    private String batchNumber;

    /**
     * 批次id
     */
    @ApiModelProperty(value = "批次id")
    private String batchId;

    /**
     * 是否为历史运单
     */
    @ApiModelProperty(value = "是否为历史运单")
    private Integer isHistory;

    private String errorMsg;
}
