From ca3175691283bc5fa0c98cd43e6c19301728d0ac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=B5=E6=97=AD?= <2405973191@qq.com> Date: Fri, 23 Aug 2024 01:09:09 +0800 Subject: [PATCH] jx-02 --- .../module/system/dal/mysql/user/AdminUserMapper.java | 3 +++ .../module/system/service/user/AdminUserService.java | 3 +++ .../system/service/user/AdminUserServiceImpl.java | 10 ++++++++++ .../src/main/resources/mapper/SysUserMapper.xml | 8 ++++++++ 4 files changed, 24 insertions(+) diff --git a/yudao-module-system/yudao-module-system-biz/src/main/java/cn/iocoder/yudao/module/system/dal/mysql/user/AdminUserMapper.java b/yudao-module-system/yudao-module-system-biz/src/main/java/cn/iocoder/yudao/module/system/dal/mysql/user/AdminUserMapper.java index 15cca908..cdef9ad7 100644 --- a/yudao-module-system/yudao-module-system-biz/src/main/java/cn/iocoder/yudao/module/system/dal/mysql/user/AdminUserMapper.java +++ b/yudao-module-system/yudao-module-system-biz/src/main/java/cn/iocoder/yudao/module/system/dal/mysql/user/AdminUserMapper.java @@ -50,4 +50,7 @@ public interface AdminUserMapper extends BaseMapperX { List getUsersByRoleRescue(@Param("roleCode") String roleCode, @Param("searchValue") String searchValue, @Param("deptIds") List deptIds); + Integer getStudentNumberByUserId(Long jlId); + + List getStudentNumber(Long id); } diff --git a/yudao-module-system/yudao-module-system-biz/src/main/java/cn/iocoder/yudao/module/system/service/user/AdminUserService.java b/yudao-module-system/yudao-module-system-biz/src/main/java/cn/iocoder/yudao/module/system/service/user/AdminUserService.java index 6e14bb15..8197175d 100644 --- a/yudao-module-system/yudao-module-system-biz/src/main/java/cn/iocoder/yudao/module/system/service/user/AdminUserService.java +++ b/yudao-module-system/yudao-module-system-biz/src/main/java/cn/iocoder/yudao/module/system/service/user/AdminUserService.java @@ -212,4 +212,7 @@ public interface AdminUserService { boolean isPasswordMatch(String rawPassword, String encodedPassword); List getUsersByRoleRescue(String roleCode, String searchValue, List deptIds); + Integer getStudentNumberByUserId(Long jlId); + + List getStudentNumber(Long id); } diff --git a/yudao-module-system/yudao-module-system-biz/src/main/java/cn/iocoder/yudao/module/system/service/user/AdminUserServiceImpl.java b/yudao-module-system/yudao-module-system-biz/src/main/java/cn/iocoder/yudao/module/system/service/user/AdminUserServiceImpl.java index 423a9cc5..9f8cb0e8 100644 --- a/yudao-module-system/yudao-module-system-biz/src/main/java/cn/iocoder/yudao/module/system/service/user/AdminUserServiceImpl.java +++ b/yudao-module-system/yudao-module-system-biz/src/main/java/cn/iocoder/yudao/module/system/service/user/AdminUserServiceImpl.java @@ -510,6 +510,16 @@ public class AdminUserServiceImpl implements AdminUserService { return userMapper.getUsersByRoleRescue(roleCode,searchValue,deptIds); } + @Override + public Integer getStudentNumberByUserId(Long jlId) { + return userMapper.getStudentNumberByUserId(jlId); + } + + @Override + public List getStudentNumber(Long id) { + return userMapper.getStudentNumber(id); + } + /** * 对密码进行加密 * diff --git a/yudao-module-system/yudao-module-system-biz/src/main/resources/mapper/SysUserMapper.xml b/yudao-module-system/yudao-module-system-biz/src/main/resources/mapper/SysUserMapper.xml index 52641c90..cfe169b3 100644 --- a/yudao-module-system/yudao-module-system-biz/src/main/resources/mapper/SysUserMapper.xml +++ b/yudao-module-system/yudao-module-system-biz/src/main/resources/mapper/SysUserMapper.xml @@ -22,4 +22,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" + + + +