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

@Schema(description = "管理后台 - 物料用完标记或清洗回收 Response VO")
@Data
@ExcelIgnoreUnannotated
public class MaterialUseEndReuseRespVO {

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

    @Schema(description = "业务类型,用完标记，清洗回收", example = "1")
    @ExcelProperty("业务类型,用完标记，清洗回收")
    private String businessType;

    @Schema(description = "用完标记人或清洗回收人")
    @ExcelProperty("用完标记人或清洗回收人")
    private String operator;

    @Schema(description = "操作人id", example = "6934")
    @ExcelProperty("操作人id")
    private Long operatorId;

    @Schema(description = "标记日期或清洗日期")
    @ExcelProperty("标记日期或清洗日期")
    private LocalDateTime operatorDate;

    @Schema(description = "回收人")
    private String reuseName;

    @Schema(description = "回收人id")
    private Long reuseId;

    @Schema(description = "回收日期")
    private LocalDateTime reuseDate;

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

    @Schema(description = "部门")
    @ExcelProperty("部门")
    private String departmentName;

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

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

    @Schema(description = "明细数据")
    private List<MaterialUseEndReuseDetailRespVO> children;

}