package com.erp.warehouse.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.AllArgsConstructor;
import lombok.Builder;

import java.time.LocalDateTime;

/**
 * 调拨单实体
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
@TableName("transfer_order")
public class TransferOrder {

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

    /** 调拨单号 */
    private String transferNo;

    /** 源仓库ID */
    private Long sourceWarehouseId;

    /** 目标仓库ID */
    private Long targetWarehouseId;

    /** 状态: pending=待调拨, in_transit=调拨中, received=已收货, cancelled=已取消 */
    private String status;

    /** 备注 */
    private String remark;

    /** 操作人ID */
    private Long operatorId;

    /** 操作人名称 */
    private String operatorName;

    /** 预计发货时间 */
    private LocalDateTime expectedShipTime;

    /** 实际发货时间 */
    private LocalDateTime shipTime;

    /** 收货时间 */
    private LocalDateTime receiveTime;

    /** 创建时间 */
    private LocalDateTime createTime;

    /** 更新时间 */
    private LocalDateTime updateTime;
}
