package com.xinelu.manage.mapper.shortmessagesendrecord;

import com.xinelu.manage.domain.shortmessagesendrecord.ShortMessageSendRecord;
import com.xinelu.manage.dto.statistics.FollowUpRateDto;
import com.xinelu.manage.vo.statistics.MessageSendVo;
import com.xinelu.manage.vo.subscribemessagesendrecord.RecordNum;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 短信发送结果记录Mapper接口
 *
 * @author xinelu
 * @date 2024-07-30
 */
public interface ShortMessageSendRecordMapper {
    /**
     * 查询短信发送结果记录
     *
     * @param id 短信发送结果记录主键
     * @return 短信发送结果记录
     */
    ShortMessageSendRecord selectShortMessageSendRecordById(Long id);

    /**
     * 查询短信发送结果记录列表
     *
     * @param shortMessageSendRecord 短信发送结果记录
     * @return 短信发送结果记录集合
     */
    List<ShortMessageSendRecord> selectShortMessageSendRecordList(ShortMessageSendRecord shortMessageSendRecord);

    /**
     * 新增短信发送结果记录
     *
     * @param shortMessageSendRecord 短信发送结果记录
     * @return 结果
     */
    int insertShortMessageSendRecord(ShortMessageSendRecord shortMessageSendRecord);

    /**
     * 修改短信发送结果记录
     *
     * @param shortMessageSendRecord 短信发送结果记录
     * @return 结果
     */
    int updateShortMessageSendRecord(ShortMessageSendRecord shortMessageSendRecord);

    /**
     * 删除短信发送结果记录
     *
     * @param id 短信发送结果记录主键
     * @return 结果
     */
    int deleteShortMessageSendRecordById(Long id);

    /**
     * 批量删除短信发送结果记录
     *
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    int deleteShortMessageSendRecordByIds(Long[] ids);

    /**
     * 节点推送数量
     *
     * @param manageRouteNodeIds 节点id
     * @return RecordNum
     */
    List<RecordNum> selectShortMessageRecordCountByManageRouteNodeIds(@Param("manageRouteNodeIds") List<Long> manageRouteNodeIds);

	List<MessageSendVo> getStatisticNum(FollowUpRateDto queryDto);
}
