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/ThBatchCourseChapterService.java | 25 +++++++++++++++++++++++++ 1 files changed, 25 insertions(+), 0 deletions(-) diff --git a/exam-system/src/main/java/com/gkhy/exam/institutionalaccess/service/ThBatchCourseChapterService.java b/exam-system/src/main/java/com/gkhy/exam/institutionalaccess/service/ThBatchCourseChapterService.java new file mode 100644 index 0000000..621452f --- /dev/null +++ b/exam-system/src/main/java/com/gkhy/exam/institutionalaccess/service/ThBatchCourseChapterService.java @@ -0,0 +1,25 @@ +package com.gkhy.exam.institutionalaccess.service; + +import com.baomidou.mybatisplus.extension.service.IService; +import com.gkhy.exam.institutionalaccess.entity.ThBatchCourseChapter; +import com.gkhy.exam.institutionalaccess.entity.ThCourseChapter; +import org.springframework.scheduling.annotation.Async; + +import java.util.List; + +public interface ThBatchCourseChapterService extends IService<ThBatchCourseChapter> { + void deleteByBatchUuid(String batchUuid); + + List<ThBatchCourseChapter> getByBatchUuid(String batchUuid); + + ThBatchCourseChapter getByUuid(String batchUuid, String courseUuid, String chapterUuid); + + List<ThBatchCourseChapter> getListByBatchUuids(List<String> batchUuids); + + //@Async("SocketTaskExecutor") + Integer insertBatch(List<ThBatchCourseChapter> chapterList); + //@Async("SocketTaskExecutor") + Integer updateBatch(List<ThBatchCourseChapter> chapterList); + + List<ThBatchCourseChapter> getByChapterUuids(List<String> chapterUuids); +} -- Gitblit v1.9.2