From 790c2ba4a0b46edf191e3bac84931f796bd42b8f Mon Sep 17 00:00:00 2001 From: zhangf <1603559716@qq.com> Date: 星期三, 24 七月 2024 09:02:49 +0800 Subject: [PATCH] 三方对接接口优化 --- exam-system/src/main/java/com/gkhy/exam/institutionalaccess/mapper/ThCourseMapper.java | 11 ++++++++++- 1 files changed, 10 insertions(+), 1 deletions(-) diff --git a/exam-system/src/main/java/com/gkhy/exam/institutionalaccess/mapper/ThCourseMapper.java b/exam-system/src/main/java/com/gkhy/exam/institutionalaccess/mapper/ThCourseMapper.java index bc8ae80..d9b219b 100644 --- a/exam-system/src/main/java/com/gkhy/exam/institutionalaccess/mapper/ThCourseMapper.java +++ b/exam-system/src/main/java/com/gkhy/exam/institutionalaccess/mapper/ThCourseMapper.java @@ -3,6 +3,7 @@ import com.baomidou.mybatisplus.core.mapper.BaseMapper; import com.gkhy.exam.institutionalaccess.entity.ThCourse; import com.gkhy.exam.institutionalaccess.model.query.ThCourseQuery; +import com.gkhy.exam.institutionalaccess.model.resp.ThCourseRespDTO; import org.apache.ibatis.annotations.Mapper; import org.apache.ibatis.annotations.Param; import org.springframework.stereotype.Repository; @@ -12,5 +13,13 @@ @Repository @Mapper public interface ThCourseMapper extends BaseMapper<ThCourse> { - List<ThCourse> listByPage(@Param("query") ThCourseQuery query); + List<ThCourseRespDTO> listByPage(@Param("query") ThCourseQuery query); + + List<ThCourse> getByUuidList(@Param("courseUuids") List<String> courseUuids); + + Integer insertBatch(@Param("courseList") List<ThCourse> courseList); + + Integer updateBatch(@Param("courseList") List<ThCourse> courseList); + + List<ThCourse> getCourseNameByUuids(@Param("courseUuids")List<String> courseUuids); } -- Gitblit v1.9.2