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/service/ThCourseService.java | 30 ++++++++++++++++++++++++++++++ 1 files changed, 30 insertions(+), 0 deletions(-) diff --git a/exam-system/src/main/java/com/gkhy/exam/institutionalaccess/service/ThCourseService.java b/exam-system/src/main/java/com/gkhy/exam/institutionalaccess/service/ThCourseService.java new file mode 100644 index 0000000..ce92e8b --- /dev/null +++ b/exam-system/src/main/java/com/gkhy/exam/institutionalaccess/service/ThCourseService.java @@ -0,0 +1,30 @@ +package com.gkhy.exam.institutionalaccess.service; + +import com.baomidou.mybatisplus.extension.service.IService; +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.Param; +import org.springframework.scheduling.annotation.Async; + +import java.util.List; + +public interface ThCourseService extends IService<ThCourse> { + List<ThCourseRespDTO> listByPage(@Param("query") ThCourseQuery query); + + ThCourse getByUuid(String uuid); + + List<ThCourse> selectByUuid(List<String> courseUuidList); + + List<ThCourse> listByInstitutionId(Long institutionId); + + List<ThCourse> getByUuidList(List<String> courseUuids); + + //@Async("SocketTaskExecutor") + Integer insertBatch(List<ThCourse> courseList); + + //@Async("SocketTaskExecutor") + Integer updateBatch(List<ThCourse> courseList); + + List<ThCourse> getCourseNameByUuids(List<String> courseUuids); +} -- Gitblit v1.9.2