package cn.iocoder.yudao.module.mes.controller.admin.deviceledger.vo;


import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.time.LocalDateTime;

@Schema(description = "管理后台 - 设备备件导出 Resp VO")
@Data
@ExcelIgnoreUnannotated
public class ErpProductVO {

    @Schema(description = "id", requiredMode = Schema.RequiredMode.REQUIRED, example = "24467")
    private Long id;

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

    @Schema(description = "名称")
    @ExcelProperty("名称")
    private String name;

    @Schema(description = "描述")
    @ExcelProperty("描述")
    private String subCategoryName;

    @Schema(description = "单位编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "8869")
    private Long unitId;

    @Schema(description = "单位")
    @ExcelProperty("单位")
    private String unitName;

    @Schema(description = "创建时间")
    @ExcelProperty("创建时间")
    @ColumnWidth(20)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;


}
