package com.ruoyi.jarvis.mapper;

import java.util.List;
import org.apache.ibatis.annotations.Param;
import com.ruoyi.jarvis.domain.TgScalperPhone;

/**
 * TG 黄牛电话库 Mapper
 */
public interface TgScalperPhoneMapper
{
    TgScalperPhone selectTgScalperPhoneById(Long id);

    List<TgScalperPhone> selectTgScalperPhoneList(TgScalperPhone q);

    /** 某号码是否已被其它行占用（JSON 数组含该号） */
    Long selectIdHavingPhone(@Param("excludeId") Long excludeId, @Param("cellPhone") String cellPhone);

    /** 启用状态下按手机号查（开/慢走前置） */
    TgScalperPhone selectEnabledByPhone(String phone);

    int insertTgScalperPhone(TgScalperPhone row);

    int updateTgScalperPhone(TgScalperPhone row);

    int deleteTgScalperPhoneById(Long id);

    int deleteTgScalperPhoneByIds(Long[] ids);
}
