package com.sqx.modules.errand.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.sqx.modules.errand.IndentSmsSendLogVO;
import com.sqx.modules.errand.dto.SmsCountQueryDTO;
import com.sqx.modules.errand.dto.SmsLogQueryDTO;
import com.sqx.modules.errand.entity.TbIndentSmsSendLog;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface TbIndentSmsSendLogDao extends BaseMapper<TbIndentSmsSendLog>  {

    IPage<IndentSmsSendLogVO> logPageByRider(@Param("pages") Page<TbIndentSmsSendLog> pages, @Param("query") SmsLogQueryDTO query);

    IPage<IndentSmsSendLogVO> logPageByShop(@Param("pages") Page<TbIndentSmsSendLog> pages, @Param("query") SmsLogQueryDTO query);

    int countOfSendSuccess(@Param("query") SmsCountQueryDTO queryDTO);
}
