package com.crm.rely.backend.core.pojo.view;

import com.crm.rely.backend.core.pojo.BaseTable;
import lombok.Data;

import java.util.Date;

/**
 * @program: crm-backend
 * @description:
 * @author: houn
 * @create: 2019-07-25 16:22
 */
@Data
public class UserInfoView extends BaseTable {

    private String name;

    private String email;

    private String phone;

    private String firstName;

    private String username;

    private String middle;

    private String lastName;

    private String country;

    private String countryName;

    private String countryEnName;

    private Long roleId;

    private String roleName;

    private String roleCode;

    private String pIbNo;

    private Long pid;

    private Long cId;

    private Long customId;

    private String ibNo;

    private Integer valid;

    private Date addTime;

    private String lastIp;


    /**
     * 代理等级ID
     */
    private Long agentLevel;

    private String agentLevelName;

    private String agentLevelEnName;

    private Long departmentId;

    private String departmentName;
    /**
     * 用户组ID
     */
    private Long groupId;

    private String groupName;
    private String groupEnName;
    /**
     * 佣金模板ID
     */
    private Long pointId;

    private String pointName;
    /**
     * 返佣类型
     * 1：交易品种
     */
    private Integer pointType;
    /**
     * 佣金百分比
     */
    private Float pointPercent;

    /**
     * 销售ID
     */
    private Long salesId;

    /**
     * 销售编号
     */
    private String salesNo;

    /**
     * 佣金余额
     */
    private Float balance;
    /**
     * 未结佣金余额
     */
    private Float unresolved;
    /**
     * 冻结佣金
     */
    private Float frozen;
    /**
     * 所有佣金
     */
    private Float allCommission;
    /**
     * MT4佣金账户
     */
    private Long mt4Account;
    /**
     * MT5佣金账户
     */
    private Long mt5Account;
    /**
     * 内部数据权限代码
     */
    private String stamp;

    private String pStamp;

    /**
     * 外佣
     */
    private Float commission;

    private Integer hide;
    private Integer commissionApproval;

    private String selectLoginTypes;

    private String excludeLoginTypes;

    private Long selectGroupType;

    private Long defaultGroupType;

    private String excludeShowLoginTypes;

    private Integer pammManagerValid;

    private Integer pammValid;
    /**
     * 是否ip限制 0否 1是
     */
    private Integer ipLimit;
    /**
     * 限制ip 如果不为空和null 则只有这个ip才能登录
     */
    private String limitIp;

    private String closeFunctions;

    private Long areaId;

    private String areaName;
    /**
     * 销售类型
     * 1:普通销售
     * 2：销售经理
     */
    private Integer salesType;

    private String secretKey;
    private Integer verified;
    private String pointChoose;

    /**
     * 团队长ID
     */
    private Long leaderId;
    /**
     * 销售绩效规则ID
     */
    private Long salesCommissionRuleId;
    /**
     * 工资账户
     */
    private Long salaryLogin;
    /**
     * 工资账户平台
     */
    private String salaryPlatform;
    private String ibNoTemp;

    /**
     * 入职时间
     */
    private Date entryDate;

    private Integer entryStatus;

    private Long attachId;

    private String attachNo;

    private String idStamp;

    private Integer levelNum;

    private String topAgent;

    private String topAgentIdStamp;

    /**
     * 代理开户设置 0:关闭 1:开启
     */
    private Integer agentAccountSetting;

    private String agentAccountSettings;

    /**
     * 域名
     */
    private String domainName;

    /**
     * 是否固定暗点 0:否  1：是
     */
    private Integer fixedHide;

    /**
     * 代理内转 0:关闭 1:开启
     */
    private Integer agentTransfer;

}
