package com.yc.ship.module.trade.dal.dataobject.order;

import com.baomidou.mybatisplus.annotation.*;

import com.yc.ship.framework.tenant.core.db.TenantBaseDO;
import lombok.*;

/**
 * 计调订单 DO
 *
 * @author 管理员
 */
@TableName("trade_order_dispatch")
@KeySequence("trade_order_dispatch_seq") // 用于 Oracle、PostgreSQL、Kingbase、DB2、H2 数据库的主键自增。如果是 MySQL 等数据库，可不写。
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class TradeOrderDispatchDO extends TenantBaseDO {

    /**
     * 主键
     */
    @TableId(type= IdType.INPUT)
    private Long id;
    /**
     * 订单ID
     */
    private Long orderId;
    private Long detailId;
    private Long detailBaseId;
    /**
     * 调度订单ID
     */
    private String dispatchId;

    /**
     * 项目编码
     */
    private String projectCode;

    /**
     * 调度数量
     */
    private Integer dispatchCount;

    @TableField(exist = false)
    private String dispatchType;


}