From 24fd92d92b1da73361a6873f31e969af78aeeee8 Mon Sep 17 00:00:00 2001
From: xiangpei <xiangpei@timesnew.cn>
Date: 星期四, 28 十一月 2024 11:57:50 +0800
Subject: [PATCH] 导入题目时,如果课目不存在自动创建

---
 src/main/java/com/mindskip/xzs/repository/UserMapper.java |   20 +++++++++++++++++---
 1 files changed, 17 insertions(+), 3 deletions(-)

diff --git a/src/main/java/com/mindskip/xzs/repository/UserMapper.java b/src/main/java/com/mindskip/xzs/repository/UserMapper.java
index a8ef3a0..0667ad9 100644
--- a/src/main/java/com/mindskip/xzs/repository/UserMapper.java
+++ b/src/main/java/com/mindskip/xzs/repository/UserMapper.java
@@ -165,11 +165,25 @@
 
     void updateUserDeptAdmin(UpdateDeptAdminVO form);
 
-    void cancelUserDeptAdmin(UpdateDeptAdminVO form);
+    void cancelUserDeptAdmin(List<Integer> userIds);
 
-    List<Integer> getDeptAdminIds(Integer id);
+    List<Integer> getDeptAdminIds(@Param("userId") Integer userId);
 
-    List<Department> getDeptAdmins(Integer id);
+    List<Department> getDeptAdmins(List<Integer> ids);
 
     User getUserByExamByTemplateId(ExamPaper examPaper);
+
+    List<Integer> getDeptIds(@Param("userId") Integer userId);
+
+    List<User> getFailExamUser(Integer examPaperId);
+
+    List<User> getFailTemplateUser(Integer templateId);
+
+    /**
+     * 鑾峰彇鐢ㄦ埛绠$悊鐨勯儴闂ㄤ俊鎭�
+     *
+     * @param userId
+     * @return
+     */
+    List<Department> getDeptAdminIdAndInfo(@Param("userId") Integer userId);
 }

--
Gitblit v1.8.0