package com.bohuikeji.delivery.backstage.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.bohuikeji.frame.module.admin.annotation.TableNewField;
import com.bohuikeji.frame.module.admin.annotation.TableShowField;
import com.bohuikeji.frame.module.admin.base.EntityBase;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;

/**
 * <p>
 * 支付转单记录表
 * </p>
 *
 * @author haoran
 * @since 2020-02-14
 */
@EqualsAndHashCode(callSuper = true)
@Data
@Accessors(chain = true)
@ApiModel(value="TOrderTransfer对象", description="转单记录表")
public class TOrderTransfer extends EntityBase<TOrderTransfer> {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "转单id")
    @TableId(value = "transfer_id", type = IdType.AUTO)
    @TableShowField(value = "ID",id = true)
    @TableNewField(show = false)
    private Integer transferId;

    @TableField("order_id")
    @TableShowField("订单id")
    @TableNewField
    private Integer orderId;

    @TableField("passive_courier_id")
    @TableShowField("所要转给的配送员id")
    @TableNewField
    private Integer passiveCourierId;

    @TableField("courier_id")
    @TableShowField("发起转单的配送员id")
    @TableNewField
    private Integer courierId;

    @TableField("transfer_type")
    @TableShowField("转单类型")
    @TableNewField
    private String transferType;

    @TableField("config_id")
    @TableShowField("数据字典id")
    @TableNewField
    private Integer configId;

    @TableField("content")
    @TableShowField("内容")
    @TableNewField
    private String content;

    @TableField("order_num")
    @TableShowField("订单编号")
    @TableNewField
    private String orderNum;

    @TableField("create_date")
    @TableShowField("提交时间")
    @TableNewField
    private LocalDateTime createDate;
}
