From 8f2b25bdc4ec1c803704d8ca37690462bb1106ea Mon Sep 17 00:00:00 2001
From: xiangpei <xiangpei@timesnew.cn>
Date: 星期四, 16 五月 2024 16:49:56 +0800
Subject: [PATCH] 学习文件管理端

---
 src/main/java/com/mindskip/xzs/repository/UserMapper.java |   34 ++++++++++++++++++++++++++++++++--
 1 files changed, 32 insertions(+), 2 deletions(-)

diff --git a/src/main/java/com/mindskip/xzs/repository/UserMapper.java b/src/main/java/com/mindskip/xzs/repository/UserMapper.java
index 695001c..f4708eb 100644
--- a/src/main/java/com/mindskip/xzs/repository/UserMapper.java
+++ b/src/main/java/com/mindskip/xzs/repository/UserMapper.java
@@ -1,11 +1,15 @@
 package com.mindskip.xzs.repository;
 
-import com.mindskip.xzs.domain.other.KeyValue;
+import com.mindskip.xzs.domain.ExamPaper;
+import com.mindskip.xzs.domain.ExamPaperAnswer;
 import com.mindskip.xzs.domain.User;
+import com.mindskip.xzs.domain.other.KeyValue;
+import com.mindskip.xzs.domain.vo.UpdateDeptAdminVO;
+import com.mindskip.xzs.domain.vo.UserVO;
+import com.mindskip.xzs.viewmodel.admin.paper.ExamPaperGradeQuery;
 import com.mindskip.xzs.viewmodel.admin.user.UserPageRequestVM;
 import org.apache.ibatis.annotations.Mapper;
 import org.apache.ibatis.annotations.Param;
-import org.springframework.security.core.parameters.P;
 
 import java.util.List;
 import java.util.Map;
@@ -135,4 +139,30 @@
     List<User> getUserByLevel(@Param("userLevel") Integer userLevel);
 
     User getUserByRealName(@Param("realName") String realName);
+
+    /**
+     * 淇敼閮ㄩ棬绠$悊鍛樻爣璇�
+     * @param ids
+     * @param deptAdmin
+     */
+    void updateDeptAdmin(@Param("ids") List<Integer> ids, @Param("deptAdmin") String deptAdmin, @Param("deptId") Integer deptId);
+
+
+    List<ExamPaperAnswer> getUserByDept(@Param("query") ExamPaperGradeQuery query);
+
+    void setStatus(UserVO user);
+
+    /**
+     * 娓呴櫎鏌愰儴闂ㄧ殑鐢ㄦ埛绠$悊鍛樻爣璇�
+     *
+     * @param userIds
+     * @param deptId
+     */
+    void clearDeptAdmin(List<Integer> userIds, @Param("deptId") Integer deptId);
+
+    User getUserByExam(ExamPaper examPaper);
+
+    void updateUserDeptAdmin(UpdateDeptAdminVO form);
+
+    void cancelUserDeptAdmin(UpdateDeptAdminVO form);
 }

--
Gitblit v1.8.0