package com.zt.plat.module.qms.resource.material.controller.vo;

import com.zt.plat.module.qms.core.aspect.annotation.Dict;
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.time.LocalDateTime;

@Schema(description = "管理后台 - 物料实例 Response VO")
@Data
@ExcelIgnoreUnannotated
public class MaterialInfomationRespVO {

    @Schema(description = "主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "25067")
    @ExcelProperty("主键")
    private Long id;

    @Schema(description = "物料大类id", example = "23383")
    @ExcelProperty("物料大类id")
    private Long productId;

    @Schema(description = "批次id", example = "30468")
    @ExcelProperty("批次id")
    private Long batchId;

    @Schema(description = "存放位置", example = "10632")
    @ExcelProperty("存放位置")
    private String locationId;

    @Schema(description = "编码")
    @ExcelProperty("编码")
    private String code;

    @Schema(description = "技术参数")
    @ExcelProperty("技术参数")
    private String parameter;

    @Schema(description = "负责人id", example = "10411")
    @ExcelProperty("负责人id")
    private Long managerUserId;

    @Schema(description = "负责人", example = "张三")
    @ExcelProperty("负责人")
    private String managerUserName;

    @Schema(description = "上架状态,0-未上架；1-已上架，默认0", example = "2")
    @ExcelProperty("上架状态,0-未上架；1-已上架，默认0")
    @Dict(dicCode = "yes_or_no")
    private String publishStatus;

    @Schema(description = "领用状态", example = "1")
    @ExcelProperty("领用状态")
    @Dict(dicCode = "yes_or_no")
    private String usageStatus;

    @Schema(description = "开封状态", example = "1")
    @ExcelProperty("开封状态")
    @Dict(dicCode = "yes_or_no")
    private String openStatus;

    @Schema(description = "开封人", example = "李四")
    @ExcelProperty("开封人")
    private String openUserName;

    @Schema(description = "开封人id", example = "3244")
    @ExcelProperty("开封人id")
    private Long openUserId;

    @Schema(description = "开封日期")
    @ExcelProperty("开封日期")
    private LocalDateTime openDate;

    @Schema(description = "到期日期")
    @ExcelProperty("到期日期")
    private LocalDateTime expirationDate;

    @Schema(description = "过期状态")
    @ExcelProperty("过期状态")
    @Dict(dicCode = "yes_or_no")
    private String expirationFlag;

    @Schema(description = "剩余量")
    @ExcelProperty("剩余量")
    private String remainingVolume;

    @Schema(description = "所属部门")
    @ExcelProperty("所属部门")
    private String systemDepartmentCode;

    @Schema(description = "备注")
    @ExcelProperty("备注")
    private String remark;

    @Schema(description = "创建时间")
    @ExcelProperty("创建时间")
    private LocalDateTime createTime;

}