package cn.iocoder.yudao.module.mes.controller.admin.moldticketresults.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 com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.datatype.jsr310.deser.LocalDateTimeDeserializer;
import com.fasterxml.jackson.datatype.jsr310.ser.LocalDateTimeSerializer;
import lombok.Data;

import java.time.LocalDateTime;

@Data
@ExcelIgnoreUnannotated
public class MoldTicketInspectionExportVO {

//    @ExcelProperty("设备编号")
//    private String deviceCode;
//
//    @ExcelProperty("设备名称")
//    private String deviceName;

    @ExcelProperty("检验项名称")
    private String inspectionItemName;

    @ExcelProperty("检验方式")
    private String inspectionMethod;

    @ExcelProperty("判定基准")
    private String judgmentCriteria;

    @ExcelProperty("点检时间")
    @ColumnWidth(20)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonSerialize(using = LocalDateTimeSerializer.class)
    @JsonDeserialize(using = LocalDateTimeDeserializer.class)
    private LocalDateTime taskTime;

    @ExcelProperty("作业结果")
    private String result;

    @ExcelProperty("备注")
    private String remark;

    private Integer inspectionResult;

    @ExcelProperty("作业人")
    private String operator;

    @ExcelProperty("创建时间")
    @ColumnWidth(20)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonSerialize(using = LocalDateTimeSerializer.class)
    @JsonDeserialize(using = LocalDateTimeDeserializer.class)
    private LocalDateTime createTime;


}