package com.ruoyi.asset.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 调拨单明细对象 ams_transfer_order_item
 * 
 * @author Yangk
 * @date 2026-06-12
 */
public class AmsTransferOrderItem extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 明细ID */
    private Long itemId;

    /** 调拨单ID */
    @Excel(name = "调拨单ID")
    private Long orderId;

    /** 调拨单号快照 */
    @Excel(name = "调拨单号快照")
    private String transferNo;

    /** 资产ID */
    @Excel(name = "资产ID")
    private Long assetId;

    /** 资产编码快照 */
    @Excel(name = "资产编码快照")
    private String assetCode;

    /** 资产名称快照 */
    @Excel(name = "资产名称快照")
    private String assetName;

    /** 资产类别ID快照 */
    @Excel(name = "资产类别ID快照")
    private Long categoryId;

    /** 类别编码快照 */
    @Excel(name = "类别编码快照")
    private String categoryCode;

    /** 类别名称快照 */
    @Excel(name = "类别名称快照")
    private String categoryName;

    /** 规格型号快照 */
    @Excel(name = "规格型号快照")
    private String specModel;

    /** 品牌快照（保存时从资产台账回填） */
    @Excel(name = "品牌快照")
    private String brand;

    /** 当前资产状态，仅用于调拨表单展示和校验，不写入调拨明细表（由 LEFT JOIN 实时查询） */
    private String assetStatus;

    /** 原部门ID（兼容保留，一期调拨不使用） */
    private Long oldDeptId;

    /** 原部门名称快照（兼容保留，一期调拨不使用） */
    private String oldDeptName;

    /** 新部门ID（兼容保留，一期调拨不使用） */
    private Long newDeptId;

    /** 新部门名称快照（兼容保留，一期调拨不使用） */
    private String newDeptName;

    /** 原使用人ID（兼容保留，一期调拨不使用） */
    private Long oldUserId;

    /** 原使用人名称快照（兼容保留，一期调拨不使用） */
    private String oldUserName;

    /** 新使用人ID（兼容保留，一期调拨不使用） */
    private Long newUserId;

    /** 新使用人名称快照（兼容保留，一期调拨不使用） */
    private String newUserName;

    /** 原仓库ID */
    @Excel(name = "原仓库ID")
    private Long oldWarehouseId;

    /** 原仓库编码快照 */
    @Excel(name = "原仓库编码快照")
    private String oldWarehouseCode;

    /** 原仓库名称快照 */
    @Excel(name = "原仓库名称快照")
    private String oldWarehouseName;

    /** 新仓库ID */
    @Excel(name = "新仓库ID")
    private Long newWarehouseId;

    /** 新仓库编码快照 */
    @Excel(name = "新仓库编码快照")
    private String newWarehouseCode;

    /** 新仓库名称快照 */
    @Excel(name = "新仓库名称快照")
    private String newWarehouseName;

    /** 原位置ID */
    @Excel(name = "原位置ID")
    private Long oldLocationId;

    /** 原位置编码快照 */
    @Excel(name = "原位置编码快照")
    private String oldLocationCode;

    /** 原位置名称快照 */
    @Excel(name = "原位置名称快照")
    private String oldLocationName;

    /** 新位置ID */
    @Excel(name = "新位置ID")
    private Long newLocationId;

    /** 新位置编码快照 */
    @Excel(name = "新位置编码快照")
    private String newLocationCode;

    /** 新位置名称快照 */
    @Excel(name = "新位置名称快照")
    private String newLocationName;

    /** 删除标志：0存在，1删除 */
    private String delFlag;

    public void setItemId(Long itemId) 
    {
        this.itemId = itemId;
    }

    public Long getItemId() 
    {
        return itemId;
    }
    public void setOrderId(Long orderId) 
    {
        this.orderId = orderId;
    }

    public Long getOrderId() 
    {
        return orderId;
    }
    public void setTransferNo(String transferNo) 
    {
        this.transferNo = transferNo;
    }

    public String getTransferNo() 
    {
        return transferNo;
    }
    public void setAssetId(Long assetId) 
    {
        this.assetId = assetId;
    }

    public Long getAssetId() 
    {
        return assetId;
    }
    public void setAssetCode(String assetCode) 
    {
        this.assetCode = assetCode;
    }

    public String getAssetCode() 
    {
        return assetCode;
    }
    public void setAssetName(String assetName) 
    {
        this.assetName = assetName;
    }

    public String getAssetName() 
    {
        return assetName;
    }
    public void setCategoryId(Long categoryId) 
    {
        this.categoryId = categoryId;
    }

    public Long getCategoryId() 
    {
        return categoryId;
    }
    public void setCategoryCode(String categoryCode) 
    {
        this.categoryCode = categoryCode;
    }

    public String getCategoryCode() 
    {
        return categoryCode;
    }
    public void setCategoryName(String categoryName) 
    {
        this.categoryName = categoryName;
    }

    public String getCategoryName() 
    {
        return categoryName;
    }
    public void setSpecModel(String specModel) 
    {
        this.specModel = specModel;
    }

    public String getSpecModel() 
    {
        return specModel;
    }
    public void setBrand(String brand) 
    {
        this.brand = brand;
    }

    public String getBrand() 
    {
        return brand;
    }
    public void setAssetStatus(String assetStatus)
    {
        this.assetStatus = assetStatus;
    }

    public String getAssetStatus()
    {
        return assetStatus;
    }
    public void setOldDeptId(Long oldDeptId) 
    {
        this.oldDeptId = oldDeptId;
    }

    public Long getOldDeptId() 
    {
        return oldDeptId;
    }
    public void setOldDeptName(String oldDeptName) 
    {
        this.oldDeptName = oldDeptName;
    }

    public String getOldDeptName() 
    {
        return oldDeptName;
    }
    public void setNewDeptId(Long newDeptId) 
    {
        this.newDeptId = newDeptId;
    }

    public Long getNewDeptId() 
    {
        return newDeptId;
    }
    public void setNewDeptName(String newDeptName) 
    {
        this.newDeptName = newDeptName;
    }

    public String getNewDeptName() 
    {
        return newDeptName;
    }
    public void setOldUserId(Long oldUserId) 
    {
        this.oldUserId = oldUserId;
    }

    public Long getOldUserId() 
    {
        return oldUserId;
    }
    public void setOldUserName(String oldUserName) 
    {
        this.oldUserName = oldUserName;
    }

    public String getOldUserName() 
    {
        return oldUserName;
    }
    public void setNewUserId(Long newUserId) 
    {
        this.newUserId = newUserId;
    }

    public Long getNewUserId() 
    {
        return newUserId;
    }
    public void setNewUserName(String newUserName) 
    {
        this.newUserName = newUserName;
    }

    public String getNewUserName() 
    {
        return newUserName;
    }
    public void setOldWarehouseId(Long oldWarehouseId) 
    {
        this.oldWarehouseId = oldWarehouseId;
    }

    public Long getOldWarehouseId() 
    {
        return oldWarehouseId;
    }
    public void setOldWarehouseCode(String oldWarehouseCode) 
    {
        this.oldWarehouseCode = oldWarehouseCode;
    }

    public String getOldWarehouseCode() 
    {
        return oldWarehouseCode;
    }
    public void setOldWarehouseName(String oldWarehouseName) 
    {
        this.oldWarehouseName = oldWarehouseName;
    }

    public String getOldWarehouseName() 
    {
        return oldWarehouseName;
    }
    public void setNewWarehouseId(Long newWarehouseId) 
    {
        this.newWarehouseId = newWarehouseId;
    }

    public Long getNewWarehouseId() 
    {
        return newWarehouseId;
    }
    public void setNewWarehouseCode(String newWarehouseCode) 
    {
        this.newWarehouseCode = newWarehouseCode;
    }

    public String getNewWarehouseCode() 
    {
        return newWarehouseCode;
    }
    public void setNewWarehouseName(String newWarehouseName) 
    {
        this.newWarehouseName = newWarehouseName;
    }

    public String getNewWarehouseName() 
    {
        return newWarehouseName;
    }
    public void setOldLocationId(Long oldLocationId) 
    {
        this.oldLocationId = oldLocationId;
    }

    public Long getOldLocationId() 
    {
        return oldLocationId;
    }
    public void setOldLocationCode(String oldLocationCode) 
    {
        this.oldLocationCode = oldLocationCode;
    }

    public String getOldLocationCode() 
    {
        return oldLocationCode;
    }
    public void setOldLocationName(String oldLocationName) 
    {
        this.oldLocationName = oldLocationName;
    }

    public String getOldLocationName() 
    {
        return oldLocationName;
    }
    public void setNewLocationId(Long newLocationId) 
    {
        this.newLocationId = newLocationId;
    }

    public Long getNewLocationId() 
    {
        return newLocationId;
    }
    public void setNewLocationCode(String newLocationCode) 
    {
        this.newLocationCode = newLocationCode;
    }

    public String getNewLocationCode() 
    {
        return newLocationCode;
    }
    public void setNewLocationName(String newLocationName) 
    {
        this.newLocationName = newLocationName;
    }

    public String getNewLocationName() 
    {
        return newLocationName;
    }
    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("itemId", getItemId())
            .append("orderId", getOrderId())
            .append("transferNo", getTransferNo())
            .append("assetId", getAssetId())
            .append("assetCode", getAssetCode())
            .append("assetName", getAssetName())
            .append("categoryId", getCategoryId())
            .append("categoryCode", getCategoryCode())
            .append("categoryName", getCategoryName())
            .append("specModel", getSpecModel())
            .append("brand", getBrand())
            .append("assetStatus", getAssetStatus())
            .append("oldDeptId", getOldDeptId())
            .append("oldDeptName", getOldDeptName())
            .append("newDeptId", getNewDeptId())
            .append("newDeptName", getNewDeptName())
            .append("oldUserId", getOldUserId())
            .append("oldUserName", getOldUserName())
            .append("newUserId", getNewUserId())
            .append("newUserName", getNewUserName())
            .append("oldWarehouseId", getOldWarehouseId())
            .append("oldWarehouseCode", getOldWarehouseCode())
            .append("oldWarehouseName", getOldWarehouseName())
            .append("newWarehouseId", getNewWarehouseId())
            .append("newWarehouseCode", getNewWarehouseCode())
            .append("newWarehouseName", getNewWarehouseName())
            .append("oldLocationId", getOldLocationId())
            .append("oldLocationCode", getOldLocationCode())
            .append("oldLocationName", getOldLocationName())
            .append("newLocationId", getNewLocationId())
            .append("newLocationCode", getNewLocationCode())
            .append("newLocationName", getNewLocationName())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .append("delFlag", getDelFlag())
            .toString();
    }
}
