package cn.iocoder.yudao.module.custom.vo;

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;

import static cn.iocoder.yudao.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY;

/**
 * 用于车检临期数据导出VO
 *
 * @author 小李
 * @date 11:49 2024/12/3
**/
@Data
@ExcelIgnoreUnannotated
public class InspectionExportVO extends SyntheticExportVO{

    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY)
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @ExcelProperty("上次年检时间")
    private LocalDateTime inspectionDate;

    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY)
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @ExcelProperty("下次年检时间")
    private LocalDateTime nextInspectionDate;

    @ExcelProperty("临近年检天数")
    private String njCont;
}
