package com.bcxin.identify.business.dao;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.bcxin.identify.business.domain.ImRoammsgTemp;
import com.bcxin.identify.business.domain.dto.ImRoammsgDTO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
@Mapper
public interface ImRoammsgTempMapper extends BaseMapper<ImRoammsgTemp> {

    /**
     * <b> 批量插入im对应条件查询到的聊天记录 </b>
     * @author ZXF
     * @create 2021/11/22 0022 16:41
     * @version
     * @注意事项 </b>
     */
    int batchInsertImRoammsgTemp(@Param("list") List<ImRoammsgTemp> list);

    int deleteByExpire(@Param(value = "times") Integer times);

    List<ImRoammsgTemp> findImRoammsgTempByPcNo(ImRoammsgDTO imRoammsgDTO);
}
