From 36d37737cfc863918221ab16efb695961409cded Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E6=B1=A4=E9=BE=99?= <842690096@qq.com>
Date: Wed, 15 Jan 2025 09:32:35 +0800
Subject: [PATCH] =?UTF-8?q?=E5=AD=A6=E7=94=9F=E4=BF=A1=E6=81=AF?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../Dto/Open/StudentInfoDto.cs | 24 +++++++++++++
.../YD_XinWei.Commons.csproj | 6 ++++
.../net6.0/YD_XinWei.Commons.AssemblyInfo.cs | 2 +-
...YD_XinWei.Commons.AssemblyInfoInputs.cache | 2 +-
.../YD_XinWei/Services/Impl/XinWeiService.cs | 34 +++++++++++++++++++
.../Services/Interface/IXinWeiService.cs | 8 +++++
6 files changed, 74 insertions(+), 2 deletions(-)
create mode 100644 Server/YD_XinWei.Commons/Dto/Open/StudentInfoDto.cs
diff --git a/Server/YD_XinWei.Commons/Dto/Open/StudentInfoDto.cs b/Server/YD_XinWei.Commons/Dto/Open/StudentInfoDto.cs
new file mode 100644
index 0000000..db0f6ff
--- /dev/null
+++ b/Server/YD_XinWei.Commons/Dto/Open/StudentInfoDto.cs
@@ -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; }
+ }
+}
diff --git a/Server/YD_XinWei.Commons/YD_XinWei.Commons.csproj b/Server/YD_XinWei.Commons/YD_XinWei.Commons.csproj
index 742a62d..e0b21a0 100644
--- a/Server/YD_XinWei.Commons/YD_XinWei.Commons.csproj
+++ b/Server/YD_XinWei.Commons/YD_XinWei.Commons.csproj
@@ -6,6 +6,12 @@
enable
+
+
+
+
+
+
diff --git a/Server/YD_XinWei.Commons/obj/Debug/net6.0/YD_XinWei.Commons.AssemblyInfo.cs b/Server/YD_XinWei.Commons/obj/Debug/net6.0/YD_XinWei.Commons.AssemblyInfo.cs
index 8c8446b..dc393f5 100644
--- a/Server/YD_XinWei.Commons/obj/Debug/net6.0/YD_XinWei.Commons.AssemblyInfo.cs
+++ b/Server/YD_XinWei.Commons/obj/Debug/net6.0/YD_XinWei.Commons.AssemblyInfo.cs
@@ -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")]
diff --git a/Server/YD_XinWei.Commons/obj/Debug/net6.0/YD_XinWei.Commons.AssemblyInfoInputs.cache b/Server/YD_XinWei.Commons/obj/Debug/net6.0/YD_XinWei.Commons.AssemblyInfoInputs.cache
index 81033ea..bf2bf6d 100644
--- a/Server/YD_XinWei.Commons/obj/Debug/net6.0/YD_XinWei.Commons.AssemblyInfoInputs.cache
+++ b/Server/YD_XinWei.Commons/obj/Debug/net6.0/YD_XinWei.Commons.AssemblyInfoInputs.cache
@@ -1 +1 @@
-d593fbae3ac2c90695ef2d47985e3606ba2fc402099ac3a2d2e31f9b62198f75
+4e7fe5edebd11d394da607ad3b9b52a857c763c75897c2dd83821398e38bc68a
diff --git a/Server/YD_XinWei/Services/Impl/XinWeiService.cs b/Server/YD_XinWei/Services/Impl/XinWeiService.cs
index e2db77f..9cf490a 100644
--- a/Server/YD_XinWei/Services/Impl/XinWeiService.cs
+++ b/Server/YD_XinWei/Services/Impl/XinWeiService.cs
@@ -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
{
+ ///
+ /// 服务
+ ///
public class XinWeiService : IXinWeiService
{
public SmartSportsContext _sportsContext;
private readonly IMapper _mapper;
+ ///
+ /// 构造
+ ///
+ ///
+ ///
public XinWeiService(SmartSportsContext sportsContext, IMapper mapper)
{
_sportsContext = sportsContext;
_mapper = mapper;
}
+
+
+ ///
+ /// 项目模式
+ ///
+ ///
public async Task> SportsModelTypeList()
{
var res = await _sportsContext.XW_ProjectMode.Select(x => new ProjectModeDto()
@@ -33,6 +48,13 @@ namespace YD_XinWei.Api.Services.Impl
return res;
}
+
+ ///
+ /// 体育项目
+ ///
+ /// 学校Id
+ ///
+
public async Task> 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;
}
+
+ ///
+ /// 获取学生信息
+ ///
+ /// 学校Id
+ ///
+ public async Task> MinimumOfStudentInfoList(int orgId)
+ {
+ throw new NotImplementedException();
+ }
+
+
}
}
diff --git a/Server/YD_XinWei/Services/Interface/IXinWeiService.cs b/Server/YD_XinWei/Services/Interface/IXinWeiService.cs
index ade86ad..dee56a3 100644
--- a/Server/YD_XinWei/Services/Interface/IXinWeiService.cs
+++ b/Server/YD_XinWei/Services/Interface/IXinWeiService.cs
@@ -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
/// 学校Id
///
Task> OrgSportsProjectList(int orgId);
+
+ ///
+ /// 获取学生信息
+ ///
+ /// 学校Id
+ ///
+ Task> MinimumOfStudentInfoList(int orgId);
}
}