package com.hzs.third.sms.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hzs.common.domain.third.sms.TSmsRecord;
import com.hzs.common.domain.third.sms.ext.TSmsRecordExt;
import com.hzs.third.sms.param.SmsRecordQueryParam;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 短信发送记录 Mapper 接口
 */
public interface TSmsRecordMapper extends BaseMapper<TSmsRecord> {

    /**
     * 查询列表
     *
     * @param param     查询入参
     * @param pkCountry 所属国家
     * @return
     */
    List<TSmsRecordExt> queryList(@Param("param") SmsRecordQueryParam param, @Param("pkCountry") Integer pkCountry);

    /**
     * 批量插入
     *
     * @param list
     * @return
     */
    int insertBatch(@Param("list") List<TSmsRecord> list);

}
