package com.yh.saas.plugin.servicer.entity;

import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import com.yh.saas.common.support.entity.BaseModel;
import com.yh.saas.common.support.util.query.SearchField;
import com.yh.saas.common.support.util.query.SearchMode;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * <p>
 * 记录服务商联系人信息表
 * </p>
 *
 * @author yul
 * @since 2019-11-11
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("servicer_merchant_contacts_info")
public class ServicerMerchantContactsInfo extends BaseModel<ServicerMerchantContactsInfo> {

	private static final long serialVersionUID = 6890462238366385691L;

	/**
	 * 联系人ID
	 */
	@TableId(type = IdType.UUID)
	private String contactsId;
	/**
	 * 服务商ID
	 */
	@SearchField(mode = SearchMode.EQ)
	private String servicerId;
	/**
	 * 公司ID
	 */
	private String compId;
	/**
	 * 联系人
	 */
	private String linkMan;
	/**
	 * 手机号码
	 */
	private String mobileNumber;
	/**
	 * 上一次手机号码
	 */
	private String oldMobileNumber;
	/**
	 * 邮箱
	 */
	private String emailAddress;
	/**
	 * 联系电话
	 */
	private String telNumber;
	/**
	 * QQ/微信
	 */
	private String tencentNumber;
	/**
	 * 联系人职务
	 */
	private String linkManDuty;
	/**
	 * 序号
	 */
	private Long serialNumber;

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

	/**
	 * 查询用字段
	 * 
	 */
	public static class QueryFields {

		public static final String COMP_ID = "comp_id";

		public static final String SERVICER_ID = "servicer_id";

		public static final String CONTACTS_ID = "contacts_id";

		public static final String DELETE_FALG = "delete_flag";

		private QueryFields() {
		}
	}

}
