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

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.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.List;

@Schema(description = "管理后台 - 入库 Response VO")
@Data
@ExcelIgnoreUnannotated
public class MaterialInventoryInboundRespVO {

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

    @Schema(description = "标题")
    @ExcelProperty("标题")
    private String title;

    @Schema(description = "业务类型,【字典】【jy_material_in_bsn_type】验收入库、盘盈入库等", example = "2")
    @ExcelProperty("业务类型,【字典】【jy_material_in_bsn_type】验收入库、盘盈入库等")
    private String businessType;

    @Schema(description = "业务类型编码")
    @ExcelProperty("业务类型编码")
    private String businessTypeCode;

    @Schema(description = "申请人")
    @ExcelProperty("申请人")
    private String applyUser;

    @Schema(description = "申请人id", example = "18778")
    @ExcelProperty("申请人id")
    private Long applyUserId;

    @Schema(description = "申请部门")
    @ExcelProperty("申请部门")
    private String applyDepartment;

    @Schema(description = "申请部门id", example = "29535")
    @ExcelProperty("申请部门id")
    private Long applyDepartmentId;

    @Schema(description = "申请时间")
    @ExcelProperty("申请时间")
    private LocalDateTime applyTime;

    @Schema(description = "监督人，危化品才有")
    @ExcelProperty("监督人，危化品才有")
    private String superviseUser;

    @Schema(description = "监督人id，危化品才有")
    @ExcelProperty("监督人id，危化品才有")
    private Long superviseUserId;

    @Schema(description = "批次工段id")
    @ExcelProperty("批次工段id")
    private Long gongduanId;

    @Schema(description = "入库数量")
    @ExcelProperty("入库数量")
    private BigDecimal quantity;

    @Schema(description = "库位id")
    @ExcelProperty("库位id")
    private Long locationId;

    @Schema(description = "流程实例id", example = "16660")
    @ExcelProperty("流程实例id")
    private String flowInstanceId;

    @Schema(description = "流程审批状态", example = "1")
    @ExcelProperty("流程审批状态")
    private String flowStatus;

    @Schema(description = "意见json")
    @ExcelProperty("意见json")
    private String commentJson;

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

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

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

    @Schema(description = "入库明细")
    @ExcelProperty("入库明细")
    private List<MaterialInventoryInboundDetailRespVO> detailList;

    /*@Schema(description = "当次入库的物料实例")
    private List<MaterialInfomationRespVO> infomationList;*/

}