| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788 |
- package com.kede.common.dao;
- import com.kede.common.model.ChatMsgOptimize;
- import org.apache.ibatis.annotations.Param;
- import org.springframework.data.domain.Pageable;
- import java.util.Date;
- import java.util.List;
- /**
- * 微信会话存储优化表(只存储2天的编号防止)(ChatMsgOptimize)表数据库访问层
- *
- * @author makejava
- * @since 2025-06-20 15:29:39
- */
- public interface ChatMsgOptimizeMapper {
- /**
- * 通过ID查询单条数据
- *
- * @param msgid 主键
- * @return 实例对象
- */
- ChatMsgOptimize selectById(String msgid);
- /**
- * 查询指定行数据
- *
- * @param chatMsgOptimize 查询条件
- * @param pageable 分页对象
- * @return 对象列表
- */
- List<ChatMsgOptimize> findChatMsgOptimizeList(ChatMsgOptimize chatMsgOptimize);
- /**
- * 统计总行数
- *
- * @param chatMsgOptimize 查询条件
- * @return 总行数
- */
- int findChatMsgOptimizeCount(ChatMsgOptimize chatMsgOptimize);
- /**
- * 新增数据
- *
- * @param chatMsgOptimize 实例对象
- * @return 影响行数
- */
- int insert(ChatMsgOptimize chatMsgOptimize);
- /**
- * 批量新增数据(MyBatis原生foreach方法)
- *
- * @param entities List<ChatMsgOptimize> 实例对象列表
- * @return 影响行数
- */
- int insertBatch(@Param("entities") List<ChatMsgOptimize> entities);
- /**
- * 批量新增或按主键更新数据(MyBatis原生foreach方法)
- *
- * @param entities List<ChatMsgOptimize> 实例对象列表
- * @return 影响行数
- * @throws org.springframework.jdbc.BadSqlGrammarException 入参是空List的时候会抛SQL语句错误的异常,请自行校验入参
- */
- int insertOrUpdateBatch(@Param("entities") List<ChatMsgOptimize> entities);
- /**
- * 修改数据
- *
- * @param chatMsgOptimize 实例对象
- * @return 影响行数
- */
- int update(ChatMsgOptimize chatMsgOptimize);
- /**
- * 通过主键删除数据
- *
- * @param msgid 主键
- * @return 影响行数
- */
- int deleteById(String msgid);
- void deleteFromTime(Date date);
- }
|