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 12:23 2024/12/3
**/
@Data
@ExcelIgnoreUnannotated
public class InsuranceExportVO extends SyntheticExportVO{

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

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

    @ExcelProperty("保险到期天数")
    private String bxCont;
}
