This commit is contained in:
赵旭 2024-08-23 01:09:09 +08:00
parent 7667a96af9
commit ca31756912
4 changed files with 24 additions and 0 deletions

View File

@ -50,4 +50,7 @@ public interface AdminUserMapper extends BaseMapperX<AdminUserDO> {
List<AdminUserDO> getUsersByRoleRescue(@Param("roleCode") String roleCode, @Param("searchValue") String searchValue, @Param("deptIds") List<String> deptIds);
Integer getStudentNumberByUserId(Long jlId);
List<String> getStudentNumber(Long id);
}

View File

@ -212,4 +212,7 @@ public interface AdminUserService {
boolean isPasswordMatch(String rawPassword, String encodedPassword);
List<AdminUserDO> getUsersByRoleRescue(String roleCode, String searchValue, List<String> deptIds);
Integer getStudentNumberByUserId(Long jlId);
List<String> getStudentNumber(Long id);
}

View File

@ -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<String> getStudentNumber(Long id) {
return userMapper.getStudentNumber(id);
}
/**
* 对密码进行加密
*

View File

@ -22,4 +22,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</foreach>
</if>
</select>
<select id="getStudentNumberByUserId" resultType="Integer">
select distinct count(1) number from drive_school_reservation_course where coach_id = #{userId}
</select>
<select id="getStudentNumber" resultType="String">
select distinct phone from drive_school_pay where jxId = #{deptId} and state = '3'
</select>
</mapper>