package com.sckw.message.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.sckw.core.model.vo.TableTop;
import com.sckw.message.model.KwmMessage;
import com.sckw.message.model.dto.MessageListDTO;
import com.sckw.message.model.dto.SelectMessagesDTO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @desc: 消息mapper
 * @author: yzc
 * @date: 2023-06-09 11:08
 */
@Mapper
public interface KwmMessageMapper extends BaseMapper<KwmMessage> {
    /**
     * @desc: 分页查询
     * @author: yzc
     * @date: 2023-06-13 9:11
     * @param item
     * @return java.util.List<com.sckw.message.model.dto.MessageListDTO>
     */
    List<MessageListDTO> findPage(@Param("item") SelectMessagesDTO item);

    /**
     * @desc: 统计查询
     * @author: yzc
     * @date: 2023-09-06 9:21
     * @Param item:
     * @return: java.util.List<com.sckw.core.model.vo.TableTop>
     */
    List<TableTop> statistics(@Param("item") SelectMessagesDTO item);
}
