package cn.wisenergy.mapper;

import cn.wisenergy.model.app.CustomerService;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

/**
 * 专属客服对应表
 * @author zw
 */
public interface CustomerServiceMapper extends BaseMapper<CustomerService> {

    /**
     * 随机获得一条专属客服记录
     * @return
     */
    CustomerService randService();

    /**
     * 根据wechatId查询专属客服
     * @param customerServiceId
     * @return
     */
    CustomerService selectbyWeChatId(@Param("customerServiceId") String customerServiceId);
}
