package com.zt.plat.module.erp.controller.admin.erp.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

@Schema(description = "管理后台 - 物料拓展关系 响应 VO")
@Data
public class ErpMaterialCorrRspVO {
    /**
     * 主键
     */
    @Schema(description = "主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "2038")
    private Long id;

    /**
     * 拓展关系主物料
     */
    @Schema(description = "拓展关系主物料", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "拓展关系主物料不能为空")
    private Long materialParentId;

    /**
     * 物料ID
     */
    @Schema(description = "物料ID", requiredMode = Schema.RequiredMode.REQUIRED)
    private Long materialId;
    /**
     * 拓展关系主物料编号
     */
    @Schema(description = "拓展关系主物料编号")
    private String  materialParentCode;
    /**
     * 物料编码
     */
    @Schema(description = "拓展关系物料编号")
    private String  materialCode;
    /**
     * 公司编码
     */
    @Schema(description = "公司编码")
    @NotNull(message = "公司编码不能为空")
    private String companyId;
    /**
     * 公司编码
     */
    @Schema(description = "公司编码")
    private String companyCode;

    /**
     * 部门ID
     */
    @Schema(description = "部门ID", requiredMode = Schema.RequiredMode.REQUIRED)
    private Long deptId;
    /**
     * 部门编码
     */
    @Schema(description = "部门编码", requiredMode = Schema.RequiredMode.REQUIRED)
    private String deptCode;
}
