package com.monkeylessey.mapper;
|
|
import com.monkeylessey.domain.entity.Session;
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
|
import java.util.Date;
|
import java.util.List;
|
|
import com.monkeylessey.domain.query.SessionQuery;
|
import com.monkeylessey.domain.vo.SessionVO;
|
import org.apache.ibatis.annotations.Mapper;
|
import org.apache.ibatis.annotations.Param;
|
|
/**
|
* chat对话 Mapper 接口
|
*
|
* @author 向培
|
* @since 2025-04-18
|
*/
|
@Mapper
|
public interface SessionMapper extends BaseMapper<Session> {
|
|
/**
|
* id查找chat对话
|
* @param id
|
* @return
|
*/
|
SessionVO getById(Integer id);
|
|
/**
|
* 分页
|
*/
|
IPage getPage(IPage page, @Param("query") SessionQuery query);
|
|
/**
|
* 今天的会话列表
|
*
|
* @param dayStart
|
* @param dayEnd
|
* @return
|
*/
|
List<SessionVO> getTodaySessionList(@Param("dayStart") Date dayStart, @Param("dayEnd") Date dayEnd);
|
|
/**
|
* 昨天的会话
|
*
|
* @param dayStart
|
* @param dayEnd
|
* @return
|
*/
|
List<SessionVO> getYesterdaySessionList(@Param("dayStart") Date dayStart, @Param("dayEnd") Date dayEnd);
|
|
/**
|
* 昨天之前的所有会话
|
*
|
* @param time
|
* @return
|
*/
|
List<SessionVO> getOldSessionList(@Param("time") Date time);
|
}
|