xiangpei
2025-05-14 47cd9ecc0eff38ffe6b3b794b2bf197e958f4403
src/main/java/com/mindskip/xzs/repository/UserMapper.java
@@ -6,9 +6,9 @@
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 com.mindskip.xzs.viewmodel.admin.user.UserResponseVM;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
@@ -33,6 +33,7 @@
     * @return User
     */
    User getUserById(Integer id);
    User getUserInfoById(Integer id);
    /**
     * getUserByUserName
@@ -81,7 +82,7 @@
     * @param requestVM requestVM
     * @return List<User>
     */
    List<User> userPage(UserPageRequestVM requestVM);
    List<UserResponseVM> userPage(UserPageRequestVM requestVM);
    /**
@@ -151,7 +152,7 @@
    List<ExamPaperAnswer> getUserByDept(@Param("query") ExamPaperGradeQuery query);
    void setStatus(UserVO user);
    void setStatus(User user);
    /**
     * 清除某部门的用户管理员标识
@@ -165,11 +166,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);
}