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="InsureWorkerRecord对象", description="工程师保险列表(家用)")
public class InsureWorkerRecord extends Model<InsureWorkerRecord> {

    private static final long serialVersionUID=1L;

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

    @ApiModelProperty(value = "订单号")
    private String orderNo;

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

    @ApiModelProperty(value = "保单id")
    private String insureId;

    @ApiModelProperty(value = "保单属性")
    private String insureAttr;

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

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

    @ApiModelProperty(value = "保单类型")
    private String insureType;

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

    @ApiModelProperty(value = "网点id")
    private String websitId;

    @ApiModelProperty(value = "网点师傅id")
    private String websitWorkerId;

    @ApiModelProperty(value = "工程师编号")
    private String workerId;

    @ApiModelProperty(value = "工程师")
    private String workerName;

    @ApiModelProperty(value = "性别 男/女")
    private String sex;

    @ApiModelProperty(value = "身份证")
    private String idcard;

    @ApiModelProperty(value = "师傅手机号")
    private String workerMobile;

    @ApiModelProperty(value = "邮件批次号")
    private String emailBatchNo;

    @ApiModelProperty(value = "缴费金额")
    private BigDecimal amount;

    @ApiModelProperty(value = "订单金额")
    private BigDecimal totalAmount;

    @ApiModelProperty(value = "是否已支付 YES=是 NO=否")
    private String isPay;

    @ApiModelProperty(value = "缴费时间")
    private Date payTime;

    @ApiModelProperty(value = "是否已发送邮件  YES=是  NO=否")
    private String isSend;

    @ApiModelProperty(value = "发送邮件时间")
    private Date sendTime;

    @ApiModelProperty(value = "是否收到回执 YES=是 NO=否")
    private String isRece;

    @ApiModelProperty(value = "收到回执时间")
    private Date receTime;

    @ApiModelProperty(value = "生效日期")
    private Date startTime;

    @ApiModelProperty(value = "截至日期")
    private Date endTime;

    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    @ApiModelProperty(value = "创建人")
    @TableField(fill = FieldFill.INSERT)
    private String createBy;

    @ApiModelProperty(value = "修改时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;

    @ApiModelProperty(value = "修改人")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private String updateBy;


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

}
