package cn.iocoder.yudao.module.order.dal.dataobject.orderSplit;

import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import java.util.*;
import com.baomidou.mybatisplus.annotation.*;
import cn.iocoder.yudao.framework.mybatis.core.dataobject.BaseDO;

/**
 * 订单拆单 DO
 *
 * @author yanghao
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@TableName("ecw_order_split")
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
public class OrderSplitDO extends BaseDO {

    /**
     * 主键ID
     */
    @TableId
    private Long id;
    /**
     * 父订单编号
     */
    private String parentOrderNo;
    /**
     * 订单编号
     */
    private String orderNo;
    /**
     * 父订单id
     */
    private Long parentOrderId;

    @ApiModelProperty(value = "初始母订单id")
    private Long initialParentOrderId;

    @ApiModelProperty(value = "初始母订单编号")
    private String initialParentOrderNo;

    @ApiModelProperty(value = "是否重置订单编号")
    private Boolean resetOrderNo;
    /**
     * 运输方式id
     */
    private Integer transportId;
    /**
     * 线路ID
     */
    @ApiModelProperty(value = "线路ID")
    private Long lineId;
    /**
     * 渠道ID
     */
    private Long channelId;
    /**
     * 目的仓ID
     */
    private Long dstWarehouseId;

    /**
     * 是否主键
     */
    private Boolean isMaster;
    /**
     * 是否已使用
     */
    private Boolean used;

    /**
     * 退场订单箱数
     */
    private Integer refundNum;
}
