package cn.iocoder.yudao.module.rescue.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import cn.iocoder.yudao.annotation.Excel;
import cn.iocoder.yudao.framework.tenant.core.db.TenantBaseDO;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import java.util.Date;

/**
 * 车辆消费管理对象 rescue_car_spend
 *
 * @author zcy
 * @date 2023-11-30
 */
@Data
public class RescueCarSpend extends TenantBaseDO
{
    private static final long serialVersionUID = 1L;

    /**  */
    private Long id;

    /** 救援车辆主键 */
    @NotBlank
    private Long rescueCarId;

    /** 车牌号 */
    @Excel(name = "车牌号")
    private String carNum;

    /** 维修保养时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "维修保养时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date maintenanceTime;
    @JsonFormat(pattern = "yyyy-MM-dd hh:mm:ss")
    @TableField(exist = false)
    private Date maintenanceStart;
    @JsonFormat(pattern = "yyyy-MM-dd hh:mm:ss")
    @TableField(exist = false)
    private Date maintenanceEnd;

    /** 项目名称 */
    @Excel(name = "项目名称")
    private String maintenanceContent;

    /** 金额 */
    @Excel(name = "金额")
    private Long maintenanceMoney;

    /** 保险 */
    @Excel(name = "保险")
    private String insuranceContent;

    /** 保险购买时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "保险购买时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date insuranceBuyTime;

    @JsonFormat(pattern = "yyyy-MM-dd hh:mm:ss")
    @TableField(exist = false)
    private Date insuranceBuyStart;
    @JsonFormat(pattern = "yyyy-MM-dd hh:mm:ss")
    @TableField(exist = false)
    private Date insuranceBuyEnd;

    /** 保险金额 */
    @Excel(name = "保险金额")
    private Long insuranceMoney;

    /** 年审时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "年审时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date annualAuditTime;

    @JsonFormat(pattern = "yyyy-MM-dd hh:mm:ss")
    @TableField(exist = false)
    private Date annualAuditStart;
    @JsonFormat(pattern = "yyyy-MM-dd hh:mm:ss")
    @TableField(exist = false)
    private Date annualAuditEnd;

    /** 年审金额 */
    @Excel(name = "年审金额")
    private Long annualAuditMoney;

    /** 部门主键 */
    private Long deptId;
}
