package com.zehong.system.domain.shelf;

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

/**
 * 料架和物料维护对象 t_rack_material_relation
 * 
 * @author zehong
 * @date 2025-09-24
 */
public class TRackMaterialRelation extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long relationId;

    /** 料盘码 */
    @Excel(name = "料盘码")
    private String rackCode;

    /** 物料代码 */
    @Excel(name = "物料代码")
    private String materialCode;

    /** 名称 */
    @Excel(name = "名称")
    private String materialName;

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

    public void setRelationId(Long relationId) 
    {
        this.relationId = relationId;
    }

    public Long getRelationId() 
    {
        return relationId;
    }
    public void setRackCode(String rackCode) 
    {
        this.rackCode = rackCode;
    }

    public String getRackCode() 
    {
        return rackCode;
    }
    public void setMaterialCode(String materialCode) 
    {
        this.materialCode = materialCode;
    }

    public String getMaterialCode() 
    {
        return materialCode;
    }
    public void setMaterialName(String materialName) 
    {
        this.materialName = materialName;
    }

    public String getMaterialName() 
    {
        return materialName;
    }
    public void setMaterialSpecifications(String materialSpecifications) 
    {
        this.materialSpecifications = materialSpecifications;
    }

    public String getMaterialSpecifications() 
    {
        return materialSpecifications;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("relationId", getRelationId())
            .append("rackCode", getRackCode())
            .append("materialCode", getMaterialCode())
            .append("materialName", getMaterialName())
            .append("materialSpecifications", getMaterialSpecifications())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
