package com.pcloud.book.advertising.dao;

import com.pcloud.book.advertising.entity.AdvertisingBmRegisterItem;
import com.pcloud.common.core.dao.BaseDao;

/**
 * @描述：报名选项记录
 * @作者：zhuyajie
 * @创建时间：20:05 2019/6/27
 * @版本：1.0
 */
public interface BmRegisterItemDao extends BaseDao<AdvertisingBmRegisterItem> {

    /**
     * 手机号是否有重复
     * @param adId
     * @param fromType
     * @param optionValue
     * @return
     */
    Integer checkMobilePhone(Long adId, String fromType, Long fromId, String optionValue);

    Integer checkMobilePhone4Cpa(Long cpaId, String fromType, Long fromId, String optionValue);
}
