学生信息

This commit is contained in:
汤龙 2025-01-15 09:32:35 +08:00
parent 6960116ae6
commit 36d37737cf
6 changed files with 74 additions and 2 deletions

View File

@ -0,0 +1,24 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace YD_XinWei.Commons.Dto.Open
{
public class StudentInfoDto
{
public int Id { get; set; }
public int UserId { get; set; }
public int OrgId { get; set; }
public int GradeId { get; set; }
public int RuleGradeId { get; set; }
public string GradeName { get; set; }
public int ClassId { get; set; }
public string ClassName { get; set; }
public string Name { get; set; }
public string Sex { get; set; }
public string StudentNo { get; set; }
public object CardNo { get; set; }
}
}

View File

@ -6,6 +6,12 @@
<Nullable>enable</Nullable>
</PropertyGroup>
<ItemGroup>
<Compile Remove="Dto\Teacher\**" />
<EmbeddedResource Remove="Dto\Teacher\**" />
<None Remove="Dto\Teacher\**" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="Aliyun.OSS.SDK.NetCore" Version="2.14.1" />
<PackageReference Include="Microsoft.AspNetCore.Mvc.Abstractions" Version="2.2.0" />

View File

@ -14,7 +14,7 @@ using System.Reflection;
[assembly: System.Reflection.AssemblyCompanyAttribute("YD_XinWei.Commons")]
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+f9e7ba9c4f75cd95dbf6577e89978fa9bd53c86d")]
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+6960116ae6c008c5643e1d5ce9066bc59a98acaf")]
[assembly: System.Reflection.AssemblyProductAttribute("YD_XinWei.Commons")]
[assembly: System.Reflection.AssemblyTitleAttribute("YD_XinWei.Commons")]
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]

View File

@ -1 +1 @@
d593fbae3ac2c90695ef2d47985e3606ba2fc402099ac3a2d2e31f9b62198f75
4e7fe5edebd11d394da607ad3b9b52a857c763c75897c2dd83821398e38bc68a

View File

@ -7,20 +7,35 @@ using YD_XinWei.Api.SmartSportsEntitys;
using YD_XinWei.Api.Utilities;
using YD_XinWei.Commons.Dto.Common;
using YD_XinWei.Commons.Dto.HomeWork;
using YD_XinWei.Commons.Dto.Open;
using YD_XinWei.Commons.Dto.School;
namespace YD_XinWei.Api.Services.Impl
{
/// <summary>
/// 服务
/// </summary>
public class XinWeiService : IXinWeiService
{
public SmartSportsContext _sportsContext;
private readonly IMapper _mapper;
/// <summary>
/// 构造
/// </summary>
/// <param name="sportsContext"></param>
/// <param name="mapper"></param>
public XinWeiService(SmartSportsContext sportsContext, IMapper mapper)
{
_sportsContext = sportsContext;
_mapper = mapper;
}
/// <summary>
/// 项目模式
/// </summary>
/// <returns></returns>
public async Task<List<ProjectModeDto>> SportsModelTypeList()
{
var res = await _sportsContext.XW_ProjectMode.Select(x => new ProjectModeDto()
@ -33,6 +48,13 @@ namespace YD_XinWei.Api.Services.Impl
return res;
}
/// <summary>
/// 体育项目
/// </summary>
/// <param name="orgId">学校Id</param>
/// <returns></returns>
public async Task<List<TestingProjectDto>> OrgSportsProjectList(int orgId)
{
var res = await _sportsContext.XW_TestingProject.Where(x => x.OrgId == orgId).Select(x => new TestingProjectDto()
@ -46,5 +68,17 @@ namespace YD_XinWei.Api.Services.Impl
return res;
}
/// <summary>
/// 获取学生信息
/// </summary>
/// <param name="orgId">学校Id</param>
/// <returns></returns>
public async Task<List<StudentInfoDto>> MinimumOfStudentInfoList(int orgId)
{
throw new NotImplementedException();
}
}
}

View File

@ -5,6 +5,7 @@ using YD_XinWei.Api.Entitys;
using YD_XinWei.Commons;
using YD_XinWei.Commons.Dto.Common;
using YD_XinWei.Commons.Dto.HomeWork;
using YD_XinWei.Commons.Dto.Open;
using YD_XinWei.Commons.Dto.School;
namespace YD_XinWei.Api.Services.Interface
@ -23,5 +24,12 @@ namespace YD_XinWei.Api.Services.Interface
/// <param name="orgId">学校Id</param>
/// <returns></returns>
Task<List<TestingProjectDto>> OrgSportsProjectList(int orgId);
/// <summary>
/// 获取学生信息
/// </summary>
/// <param name="orgId">学校Id</param>
/// <returns></returns>
Task<List<StudentInfoDto>> MinimumOfStudentInfoList(int orgId);
}
}