package com.ruoyi.group.domain.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 客群客户关联实体
 *
 * @author ruoyi
 */
@Data
@TableName("ibs_cust_group_member")
public class CustGroupMember {

    /**
     * 主键ID
     */
    @ApiModelProperty(value = "主键ID", name = "id")
    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     * 客群ID
     */
    @ApiModelProperty(value = "客群ID", name = "groupId")
    private Long groupId;

    /**
     * 客户类型：0=个人, 1=商户, 2=企业
     */
    @ApiModelProperty(value = "客户类型：0=个人, 1=商户, 2=企业", name = "custType")
    private String custType;

    /**
     * 客户号
     */
    @ApiModelProperty(value = "客户号", name = "custId")
    private String custId;

    /**
     * 客户姓名（冗余）
     */
    @ApiModelProperty(value = "客户姓名（冗余）", name = "custName")
    private String custName;

    /**
     * 客户身份证号
     */
    @ApiModelProperty(value = "客户身份证号", name = "custIdc")
    private String custIdc;

    /**
     * 统信码（商户/企业有）
     */
    @ApiModelProperty(value = "统信码（商户/企业有）", name = "socialCreditCode")
    private String socialCreditCode;

    /**
     * 客户经理柜员号
     */
    @ApiModelProperty(value = "客户经理柜员号", name = "userName")
    @TableField("user_name")
    private String userName;

    /**
     * 客户经理姓名
     */
    @ApiModelProperty(value = "客户经理姓名", name = "nickName")
    @TableField("nick_name")
    private String nickName;

    /**
     * 网点ID
     */
    @ApiModelProperty(value = "网点ID", name = "outletId")
    @TableField("outlet_id")
    private Long outletId;

    /**
     * 网点名称
     */
    @ApiModelProperty(value = "网点名称", name = "outletName")
    @TableField("outlet_name")
    private String outletName;

    /**
     * 支行ID
     */
    @ApiModelProperty(value = "支行ID", name = "branchId")
    @TableField("branch_id")
    private Long branchId;

    /**
     * 支行名称
     */
    @ApiModelProperty(value = "支行名称", name = "branchName")
    @TableField("branch_name")
    private String branchName;

    /**
     * 创建者
     */
    private String createBy;

    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    /**
     * 更新时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;

    /**
     * 删除标识：0=正常, 1=删除
     */
    @TableLogic(value = "0", delval = "1")
    @TableField("del_flag")
    private Integer delFlag;

    /**
     * 手动移除标识：0=否, 1=是（被手动移除的客户不会被定时任务重新导入）
     */
    @ApiModelProperty(value = "手动移除标识：0=否, 1=是", name = "manualRemove")
    @TableField("manual_remove")
    private Integer manualRemove;
}