| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687 |
- package com.kede.common.dao;
- import com.kede.common.model.ChatMsg;
- import org.apache.ibatis.annotations.Param;
- import org.springframework.data.domain.Pageable;
- import java.util.List;
- /**
- * 微信会话存储(ChatMsg)表数据库访问层
- *
- * @author makejava
- * @since 2025-06-17 11:06:18
- */
- public interface ChatMsgMapper {
- /**
- * 通过ID查询单条数据
- *
- * @param id 主键
- * @return 实例对象
- */
- ChatMsg selectById(Integer id);
- /**
- * 查询指定行数据
- *
- * @param chatMsg 查询条件
- * @param pageable 分页对象
- * @return 对象列表
- */
- List<ChatMsg> findChatMsgList(ChatMsg chatMsg);
- /**
- * 统计总行数
- *
- * @param chatMsg 查询条件
- * @return 总行数
- */
- int findChatMsgCount(ChatMsg chatMsg);
- /**
- * 新增数据
- *
- * @param chatMsg 实例对象
- * @return 影响行数
- */
- int insert(ChatMsg chatMsg);
- /**
- * 批量新增数据(MyBatis原生foreach方法)
- *
- * @param entities List<ChatMsg> 实例对象列表
- * @return 影响行数
- */
- int insertBatch(@Param("entities") List<ChatMsg> entities);
- /**
- * 批量新增或按主键更新数据(MyBatis原生foreach方法)
- *
- * @param entities List<ChatMsg> 实例对象列表
- * @return 影响行数
- * @throws org.springframework.jdbc.BadSqlGrammarException 入参是空List的时候会抛SQL语句错误的异常,请自行校验入参
- */
- int insertOrUpdateBatch(@Param("entities") List<ChatMsg> entities);
- /**
- * 修改数据
- *
- * @param chatMsg 实例对象
- * @return 影响行数
- */
- int update(ChatMsg chatMsg);
- /**
- * 通过主键删除数据
- *
- * @param id 主键
- * @return 影响行数
- */
- int deleteById(Integer id);
- ChatMsg selectByMsgId(String msgid);
- }
|