package com.zfire.jiasm.syncdata.plus.entity;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 保险合同
 * </p>
 *
 * @author gejiang
 * @since 2023-07-28
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="Insure对象", description="保险合同")
public class Insure extends Model<Insure> {

    private static final long serialVersionUID=1L;

    @TableId(value = "id", type = IdType.ID_WORKER_STR)
    private String id;

    @ApiModelProperty(value = "保险类型")
    private String typeName;

    @ApiModelProperty(value = "保单名称")
    private String name;

    @ApiModelProperty(value = "保单编号")
    private String number;

    @ApiModelProperty(value = "保单金额")
    private BigDecimal amount;

    @ApiModelProperty(value = "状态 ON=有效  OFF=无效")
    private String status;

    @ApiModelProperty(value = "开始时间")
    private Date startTime;

    @ApiModelProperty(value = "结束时间")
    private Date endTime;

    @ApiModelProperty(value = "承保公司")
    private String insureCompany;

    @ApiModelProperty(value = "保费率请传小数，例如 10%传0.1")
    private BigDecimal insureTax1;

    @ApiModelProperty(value = "保费率2月")
    private BigDecimal insureTax2;

    private BigDecimal insureTax3;

    private BigDecimal insureTax4;

    private BigDecimal insureTax5;

    private BigDecimal insureTax6;

    private BigDecimal insureTax7;

    private BigDecimal insureTax8;

    private BigDecimal insureTax9;

    private BigDecimal insureTax10;

    private BigDecimal insureTax11;

    private BigDecimal insureTax12;

    @ApiModelProperty(value = "保单内容")
    private String content;

    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    @TableField(fill = FieldFill.INSERT)
    private String createBy;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private String updateBy;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
