refactor: 移除 ReviewMapper 自定义 SQL,改用 MyBatis-Plus Java API
This commit is contained in:
@@ -1,24 +0,0 @@
|
||||
package com.guo.learningprogresstracker.mapper;
|
||||
|
||||
import com.guo.learningprogresstracker.dto.ReviewFeedItem;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 复习模块自定义查询 Mapper
|
||||
*/
|
||||
@Mapper
|
||||
public interface ReviewMapper {
|
||||
|
||||
/**
|
||||
* 获取最近的学习报告和残片,合并排序后返回
|
||||
*/
|
||||
List<ReviewFeedItem> selectReviewFeed(@Param("limit") int limit);
|
||||
|
||||
/**
|
||||
* 获取指定任务下的所有报告和残片,按时间倒序
|
||||
*/
|
||||
List<ReviewFeedItem> selectTaskReview(@Param("taskNum") String taskNum);
|
||||
}
|
||||
Reference in New Issue
Block a user