package org.dromara.elevator.domain.bo;

import org.dromara.elevator.domain.EElevatorInsurance;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 电梯和保险信息业务对象 e_elevator_insurance
 *
 * @author zy
 * @date 2024-11-22
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = EElevatorInsurance.class, reverseConvertGenerate = false)
public class EElevatorInsuranceBo extends BaseEntity {

    /**
     * 主键id
     */
    private Long id;

    /**
     * 电梯编号
     */
    @NotBlank(message = "电梯编号不能为空", groups = { AddGroup.class, EditGroup.class })
    private String elevatorNum;

    /**
     * 电梯名称
     */
    private String elevatorName;

    /**
     * 电梯地址
     */
    private String elevatorAddress;

    /**
     * 电梯id
     */
    private String elevatorId;

    /**
     * 保险公司id
     */
    private Long insuranceId;

    /**
     * 保险公司名称
     */
    private String insuranceName;

    /**
     * 客户名称
     */
    private String clientName;

    /**
     * 保费
     */
    @NotNull(message = "保费不能为空", groups = { AddGroup.class, EditGroup.class })
    private BigDecimal premium;

    /**
     * 合同链接
     */
    @NotBlank(message = "合同链接不能为空", groups = { AddGroup.class, EditGroup.class })
    private String contract;

    /**
     * 保单截止日期
     */
    @NotNull(message = "保单截止日期不能为空", groups = { AddGroup.class, EditGroup.class })
    private Date expirationTime;

    /**
     * 部门id
     */
    private Long deptId;

    /**
     * 合同编号
     */
    private String contractNum;

    /**
     * 保单截止日期起
     */
    private Date expirationTimeStart;

    /**
     * 保单截止日期止
     */
    private Date expirationTimeEnd;


}
