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

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

/**
 * 用于保养临期提醒VO
 *
 * @author 小李
 * @date 12:14 2024/12/3
**/
@Data
@ExcelIgnoreUnannotated
public class MaintenanceExportVO extends SyntheticExportVO{

    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY)
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @ExcelProperty("保养日期")
    private LocalDateTime maintenanceDate;

    @ExcelProperty("保养里程")
    private BigDecimal maintenanceMileage;

    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY)
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @ExcelProperty("下次保养日期")
    private LocalDateTime nextMaintenanceDate;

    @ExcelProperty("下次保养里程")
    private BigDecimal nextMaintenanceMileage;

    @ExcelProperty("临近保养天数")
    private String byCont;
}
