package cn.qinys.platform.upms.api.mapper;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import cn.qinys.platform.entity.upms.SystemSmsLog;
import cn.qinys.platform.upms.api.resp.SmsLogPageResp;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;


/**
 * (SystemSmsLog)表数据库访问层
 *
 * @author makejava
 * @since 2024-03-08 09:13:39
 */
@Repository
@Mapper
public interface SystemSmsLogMapper extends BaseMapper<SystemSmsLog> {

    /**
     * 短信记录
     *
     * @param page
     * @param wrapper
     * @return
     */
    @Select("SELECT * FROM system_sms_log ${ew.customSqlSegment}")
    Page<SmsLogPageResp> selectLogPage(Page<SystemSmsLog> page, @Param(Constants.WRAPPER) Wrapper<SystemSmsLog> wrapper);
}

