新增训练
This commit is contained in:
parent
dc38461ab3
commit
9297749880
661
Server/YD_XinWei.Commons/Dto/Open/AddTrainDto.cs
Normal file
661
Server/YD_XinWei.Commons/Dto/Open/AddTrainDto.cs
Normal file
@ -0,0 +1,661 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace YD_XinWei.Commons.Dto.Open
|
||||
{
|
||||
public class AddTrainDto
|
||||
{
|
||||
/// <summary>
|
||||
/// 考试id
|
||||
/// </summary>
|
||||
public int? ExaminationId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 考试名称
|
||||
/// </summary>
|
||||
public string ExaminationName { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 项目类型(1体检 2体质)
|
||||
/// </summary>
|
||||
public int? ProjectType { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 项目ID
|
||||
/// </summary>
|
||||
public int? ProjectId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 项目名称
|
||||
/// </summary>
|
||||
public string ProjectName { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 模式类型(1随堂模式2名单模式3刷卡或手动录入)
|
||||
/// </summary>
|
||||
public int? RosterType { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 学校ID
|
||||
/// </summary>
|
||||
public int? OrgId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 年级ID
|
||||
/// </summary>
|
||||
public int? GradeId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 年级名称
|
||||
/// </summary>
|
||||
public string GradeName { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 班级或者名单id(根据roster_type来判断)
|
||||
/// </summary>
|
||||
public int? ClassId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 班级名称
|
||||
/// </summary>
|
||||
public string ClassName { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 组别
|
||||
/// </summary>
|
||||
public string GroupId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 老师ID
|
||||
/// </summary>
|
||||
public int? TeacherId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 老师名称
|
||||
/// </summary>
|
||||
public string TeacherName { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 训练模式
|
||||
/// </summary>
|
||||
public int? ModelType { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 评分标准类型(1国家标准2地方标准3自定义标准)
|
||||
/// </summary>
|
||||
public int? MarkType { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 项目类型(1跳绳2跑步)
|
||||
/// </summary>
|
||||
public int? ProjectKind { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 训练标准ID
|
||||
/// </summary>
|
||||
public int? ProjectRuleId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 项目类型名称
|
||||
/// </summary>
|
||||
public string ProjectKindName { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 评分标准类型名称
|
||||
/// </summary>
|
||||
public string MarkTypeName { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 项目模式名称
|
||||
/// </summary>
|
||||
public string ModelTypeName { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 训练人数
|
||||
/// </summary>
|
||||
public int? TrainCount { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 开始时间
|
||||
/// </summary>
|
||||
public string StartTime { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 结束时间
|
||||
/// </summary>
|
||||
public string EndTime { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 男生总数
|
||||
/// </summary>
|
||||
public int? MaleTotal { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 女生总数
|
||||
/// </summary>
|
||||
public int? FemaleTotal { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 男生总成绩
|
||||
/// </summary>
|
||||
public decimal? MaleCount { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 男生最大值
|
||||
/// </summary>
|
||||
public int? MaleMaxCount { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 男生最小值
|
||||
/// </summary>
|
||||
public int? MaleMinCount { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 女生总成绩
|
||||
/// </summary>
|
||||
public decimal? FemaleCount { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 女生最大值
|
||||
/// </summary>
|
||||
public int? FemaleMaxCount { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 女生最小值
|
||||
/// </summary>
|
||||
public int? FemaleMinCount { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 男生总分数
|
||||
/// </summary>
|
||||
public decimal? MaleScore { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 男生最大分数
|
||||
/// </summary>
|
||||
public decimal? MaleMaxScore { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 男生最小分数
|
||||
/// </summary>
|
||||
public decimal? MaleMinScore { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 女生总分数
|
||||
/// </summary>
|
||||
public decimal? FemaleScore { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 女生最大分数
|
||||
/// </summary>
|
||||
public decimal? FemaleMaxScore { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 女生最小分数
|
||||
/// </summary>
|
||||
public decimal? FemaleMinScore { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 男生优秀人数
|
||||
/// </summary>
|
||||
public int? MaleFine { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 男生良好人数
|
||||
/// </summary>
|
||||
public int? MaleGood { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 男生及格人数
|
||||
/// </summary>
|
||||
public int? MalePass { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 男生不及格人数
|
||||
/// </summary>
|
||||
public int? MaleFail { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 女生优秀人数
|
||||
/// </summary>
|
||||
public int? FemaleFine { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 女生良好人数
|
||||
/// </summary>
|
||||
public int? FemaleGood { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 女生及格人数
|
||||
/// </summary>
|
||||
public int? FemalePass { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 女生不及格人数
|
||||
/// </summary>
|
||||
public int? FemaleFail { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 及格率
|
||||
/// </summary>
|
||||
public decimal? PassingRate { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 男生平均个数
|
||||
/// </summary>
|
||||
public decimal? MaleAvgCount { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 女生平均个数
|
||||
/// </summary>
|
||||
public decimal? FemaleAvgCount { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 男生平均分数
|
||||
/// </summary>
|
||||
public decimal? MaleAvgScore { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 女生平均分数
|
||||
/// </summary>
|
||||
public decimal? FemaleAvgScore { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 男生中位数
|
||||
/// </summary>
|
||||
public decimal? MaleMedianCount { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 女生中位数
|
||||
/// </summary>
|
||||
public decimal? FemaleMedianCount { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 男生平均值
|
||||
/// </summary>
|
||||
public int? MaleAvgImproveCount { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 男生最大值
|
||||
/// </summary>
|
||||
public int? MaleMaxImproveCount { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 男生最小值
|
||||
/// </summary>
|
||||
public int? MaleMinImproveCount { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 女生平均值
|
||||
/// </summary>
|
||||
public int? FemaleAvgImproveCount { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 女生最大值
|
||||
/// </summary>
|
||||
public int? FemaleMaxImproveCount { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 女生最小值
|
||||
/// </summary>
|
||||
public int? FemaleMinImproveCount { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 男生平均分数
|
||||
/// </summary>
|
||||
public decimal? MaleAvgImproveScore { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 男生最大分数
|
||||
/// </summary>
|
||||
public decimal? MaleMaxImproveScore { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 男生最小分数
|
||||
/// </summary>
|
||||
public decimal? MaleMinImproveScore { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 女生平均分数
|
||||
/// </summary>
|
||||
public decimal? FemaleAvgImproveScore { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 女生最大分数
|
||||
/// </summary>
|
||||
public decimal? FemaleMaxImproveScore { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 女生最小分数
|
||||
/// </summary>
|
||||
public decimal? FemaleMinImproveScore { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 失误最少的同学次数
|
||||
/// </summary>
|
||||
public int? MinErrorCount { get; set; } = 99999; // 默认值
|
||||
|
||||
/// <summary>
|
||||
/// 进入状态最快的同学耗时(心率借用这个字段。班级运动时间)
|
||||
/// </summary>
|
||||
public int? MinIntoStateTime { get; set; } = 999999;
|
||||
|
||||
/// <summary>
|
||||
/// 第一名平均耗时
|
||||
/// </summary>
|
||||
public int? MinAvgTime { get; set; } = 999999;
|
||||
|
||||
/// <summary>
|
||||
/// 失误总次数
|
||||
/// </summary>
|
||||
public int? TotalErrorCount { get; set; } = 0;
|
||||
|
||||
/// <summary>
|
||||
/// 失误损失次数
|
||||
/// </summary>
|
||||
public int? LossesCount1 { get; set; } = 0;
|
||||
|
||||
/// <summary>
|
||||
/// 甩绳速度偏慢损失次数
|
||||
/// </summary>
|
||||
public int? LossesCount2 { get; set; } = 0;
|
||||
|
||||
/// <summary>
|
||||
/// 进入状态过慢损失次数
|
||||
/// </summary>
|
||||
public int? LossesCount3 { get; set; } = 0;
|
||||
|
||||
/// <summary>
|
||||
/// 提交标识
|
||||
/// </summary>
|
||||
public string CheckCode { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 班级明细
|
||||
/// </summary>
|
||||
//[Display(Name = "DetailInfo")]
|
||||
//[Comment("班级明细")]
|
||||
//public object DetailInfo { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 创建时间
|
||||
/// </summary>
|
||||
public string CreateTime { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 创建人
|
||||
/// </summary>
|
||||
public string CreateBy { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 修改时间
|
||||
/// </summary>
|
||||
public string UpdateTime { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 修改人
|
||||
/// </summary>
|
||||
public string UpdateBy { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 是否双人模式
|
||||
/// </summary>
|
||||
public bool? DoubleFlag { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 数据来源(1:pad, 2:微信小程序)
|
||||
/// </summary>
|
||||
public int? Source { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 学生姓名
|
||||
/// </summary>
|
||||
public string StudentName { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 学生列表
|
||||
/// </summary>
|
||||
public List<TrainStudentsDto> StudentList { get; set; } = new List<TrainStudentsDto>();
|
||||
|
||||
}
|
||||
|
||||
public class TrainStudentsDto
|
||||
{
|
||||
/// <summary>
|
||||
/// 训练ID
|
||||
/// </summary>
|
||||
public int? TrainId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 项目ID
|
||||
/// </summary>
|
||||
public int? ProjectId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 项目类型(1跳绳2跑步)
|
||||
/// </summary>
|
||||
public double? ProjectKind { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 学校ID
|
||||
/// </summary>
|
||||
public int? OrgId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 年级ID
|
||||
/// </summary>
|
||||
public int? GradeId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 年级名称
|
||||
/// </summary>
|
||||
public string GradeName { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 班级ID
|
||||
/// </summary>
|
||||
public int? ClassId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 班级名称
|
||||
/// </summary>
|
||||
public string ClassName { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 组别
|
||||
/// </summary>
|
||||
public string GroupName { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 组号
|
||||
/// </summary>
|
||||
public int? GroupOrder { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 老师ID
|
||||
/// </summary>
|
||||
public int? TeacherId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 设备ID
|
||||
/// </summary>
|
||||
public string DeviceId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 学生ID
|
||||
/// </summary>
|
||||
public int? StudentId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 学生名称
|
||||
/// </summary>
|
||||
public string StudentName { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 性别(1男2女)
|
||||
/// </summary>
|
||||
public double? Sex { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 学号
|
||||
/// </summary>
|
||||
public string StudentNo { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 标准成绩
|
||||
/// </summary>
|
||||
public int? Achievement { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 原始标准成绩(被格式化小数点之前的)
|
||||
/// </summary>
|
||||
public int? OriginalAchievement { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 标准成绩2
|
||||
/// </summary>
|
||||
public int? Achievement2 { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 原始标准成绩2(被格式化小数点之前的)
|
||||
/// </summary>
|
||||
public int? OriginalAchievement2 { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 得分
|
||||
/// </summary>
|
||||
public double? Score { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 加分项得分
|
||||
/// </summary>
|
||||
public double? PlusesScore { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 评分等级
|
||||
/// </summary>
|
||||
public int? Rating { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 男生或女生排名
|
||||
/// </summary>
|
||||
public int? RankingInGender { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 全体排名
|
||||
/// </summary>
|
||||
public int? Ranking { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 失误总次数
|
||||
/// </summary>
|
||||
public int? ErrorCount { get; set; } = 0;
|
||||
|
||||
/// <summary>
|
||||
/// 失误总耗时
|
||||
/// </summary>
|
||||
public int? ErrorTime { get; set; } = 0;
|
||||
|
||||
/// <summary>
|
||||
/// 平均耗时
|
||||
/// </summary>
|
||||
public int? AvgTime { get; set; } = 0;
|
||||
|
||||
/// <summary>
|
||||
/// 有效平均值(中位数)
|
||||
/// </summary>
|
||||
public int? MedianTime { get; set; } = 0;
|
||||
|
||||
/// <summary>
|
||||
/// 失误损失次数
|
||||
/// </summary>
|
||||
public int? LossesCount1 { get; set; } = 0;
|
||||
|
||||
/// <summary>
|
||||
/// 甩绳速度偏慢损失次数
|
||||
/// </summary>
|
||||
public int? LossesCount2 { get; set; } = 0;
|
||||
|
||||
/// <summary>
|
||||
/// 进入状态过慢损失次数
|
||||
/// </summary>
|
||||
public int? LossesCount3 { get; set; } = 0;
|
||||
|
||||
/// <summary>
|
||||
/// 高一档分数段
|
||||
/// </summary>
|
||||
public int? HigherScore { get; set; } = 0;
|
||||
|
||||
/// <summary>
|
||||
/// 进入状态耗时
|
||||
/// </summary>
|
||||
public int? IntoStateTime { get; set; } = 0;
|
||||
|
||||
/// <summary>
|
||||
/// 次数提升空间
|
||||
/// </summary>
|
||||
public int? ImproveCount { get; set; } = 0;
|
||||
|
||||
/// <summary>
|
||||
/// 分数提升空间
|
||||
/// </summary>
|
||||
public double? ImproveScore { get; set; } = 0.0;
|
||||
|
||||
/// <summary>
|
||||
/// 家长消息发送标识
|
||||
/// </summary>
|
||||
public int? FamilySendFlag { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 是否已经完成
|
||||
/// </summary>
|
||||
public bool? Completed { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 实际完成的数量(圈数
|
||||
/// </summary>
|
||||
public int? QuantityCompleted { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 报表显示
|
||||
/// </summary>
|
||||
public int? ModelType { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 开始时间
|
||||
/// </summary>
|
||||
public string StartTime { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 教师
|
||||
/// </summary>
|
||||
public string Teacher { get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 创建时间
|
||||
/// </summary>
|
||||
public string CreateTime { get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 创建人
|
||||
/// </summary>
|
||||
public string CreateBy { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 修改时间
|
||||
/// </summary>
|
||||
public string UpdateTime { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 修改人
|
||||
/// </summary>
|
||||
public string UpdateBy { get; set; }
|
||||
}
|
||||
}
|
Binary file not shown.
Binary file not shown.
@ -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+ad143d6bcf630bb86e028d0e2fbc538118cf0f41")]
|
||||
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+dc38461ab3d5355886477c5ce017e5a8d53b032c")]
|
||||
[assembly: System.Reflection.AssemblyProductAttribute("YD_XinWei.Commons")]
|
||||
[assembly: System.Reflection.AssemblyTitleAttribute("YD_XinWei.Commons")]
|
||||
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
|
||||
|
@ -1 +1 @@
|
||||
562c82be8cab4925261e4546fce5719b7639c2d7732d32c1400730022946afbc
|
||||
65247451932fb6a1473b087a540d7cef1e306a7fc920c10a16025c3146816395
|
||||
|
@ -1 +1 @@
|
||||
2234f164660a5e08dc58515192ad8ac9b5061083036b5ca76e9e574a19157fbe
|
||||
d167f9103755ff5ca5b76181ff8275aedada2858286ffc5980f9cd358d847536
|
||||
|
Binary file not shown.
Binary file not shown.
@ -1 +1 @@
|
||||
{"documents":{"C:\\Users\\HHST102\\Desktop\\Code\\YD_XinWei\\*":"https://dev.azure.com/tanglong10081/YD_XinWei/_apis/git/repositories/YD_XinWei/items?api-version=1.0&versionType=commit&version=1c36de9ae00d951cbe0a6ae28dfdf85462590015&path=/*"}}
|
||||
{"documents":{"C:\\Users\\TangLong\\Desktop\\Code\\YD_XinWei\\*":"https://dev.azure.com/tanglong10081/YD_XinWei/_apis/git/repositories/YD_XinWei/items?api-version=1.0&versionType=commit&version=dc38461ab3d5355886477c5ce017e5a8d53b032c&path=/*"}}
|
Binary file not shown.
Binary file not shown.
@ -18,6 +18,8 @@ namespace YD_XinWei.Api.AutoMappers
|
||||
//CreateMap<AddHomeWorkDto, S_HomeWork>();
|
||||
|
||||
CreateMap<XW_Device, DeviceInfoDto>();
|
||||
CreateMap<AddTrainDto, XW_SportsTestData>();
|
||||
CreateMap<TrainStudentsDto, XW_TrainStudents>();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -83,5 +83,31 @@ namespace YD_XinWei.Api.Controllers
|
||||
var res = await _xinWeiService.FaceListOfDevicePage(dto);
|
||||
return res;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 查询训练评分规则
|
||||
/// </summary>
|
||||
/// <param name="dto"></param>
|
||||
/// <returns></returns>
|
||||
[HttpGet]
|
||||
[Route("/sports/{apiVersion}/project/getScoreRules")]
|
||||
public async Task<List<ScoreRuleDto>> GetScoreRules(int orgId)
|
||||
{
|
||||
var res = await _xinWeiService.ScoreRules(orgId);
|
||||
return res;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 新增训练
|
||||
/// </summary>
|
||||
/// <param name="dto"></param>
|
||||
/// <returns></returns>
|
||||
[HttpPost]
|
||||
[Route("/sports/{apiVersion}/train/addTrain")]
|
||||
public async Task<IActionResult> AddTrain([FromBody] AddTrainDto dto)
|
||||
{
|
||||
await _xinWeiService.AddTrain(dto);
|
||||
return Ok("新增成功");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -156,7 +156,23 @@ namespace YD_XinWei.Api.Services.Impl
|
||||
/// <returns></returns>
|
||||
public async Task<List<ScoreRuleDto>> ScoreRules(int orgId)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
return new List<ScoreRuleDto>();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 新增训练
|
||||
/// </summary>
|
||||
/// <param name="dto"></param>
|
||||
/// <returns></returns>
|
||||
public async Task AddTrain(AddTrainDto dto)
|
||||
{
|
||||
var entity = _mapper.Map<XW_SportsTestData>(dto);
|
||||
|
||||
if (entity != null)
|
||||
{
|
||||
await _sportsContext.XW_SportsTestData.AddAsync(entity);
|
||||
await _sportsContext.SaveChangesAsync();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -55,5 +55,12 @@ namespace YD_XinWei.Api.Services.Interface
|
||||
/// <param name="orgId">学校Id</param>
|
||||
/// <returns></returns>
|
||||
Task<List<ScoreRuleDto>> ScoreRules(int orgId);
|
||||
|
||||
/// <summary>
|
||||
/// 新增训练
|
||||
/// </summary>
|
||||
/// <param name="dto"></param>
|
||||
/// <returns></returns>
|
||||
Task AddTrain(AddTrainDto dto);
|
||||
}
|
||||
}
|
||||
|
@ -8,7 +8,7 @@ using YD_XinWei.Api.Entitys;
|
||||
namespace VOL.Entity.DomainModels.XinWei
|
||||
{
|
||||
[Table("XW_SportsTestData")]
|
||||
public class XW_SportsTestData : EntityBase
|
||||
public class XW_SportsTestData
|
||||
{
|
||||
/// <summary>
|
||||
/// 编号
|
||||
|
@ -10,7 +10,7 @@ namespace YD_XinWei.Api.SmartSportsEntitys
|
||||
/// 芯未体测项目表
|
||||
/// </summary>
|
||||
[Table("XW_TestingProject")]
|
||||
public class XW_TestingProject : EntityBase
|
||||
public class XW_TestingProject
|
||||
{
|
||||
/// <summary>
|
||||
/// Id
|
||||
|
@ -8,7 +8,7 @@ using YD_XinWei.Api.Entitys;
|
||||
namespace VOL.Entity.DomainModels.XinWei
|
||||
{
|
||||
[Table("XW_TrainSetting")]
|
||||
public class XW_TrainSetting : EntityBase
|
||||
public class XW_TrainSetting
|
||||
{
|
||||
[Key]
|
||||
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
|
||||
|
@ -6,7 +6,7 @@ using YD_XinWei.Api.Entitys;
|
||||
namespace VOL.Entity.DomainModels.XinWei
|
||||
{
|
||||
[Table("XW_TrainStudents")]
|
||||
public class XW_TrainStudents : EntityBase
|
||||
public class XW_TrainStudents
|
||||
{
|
||||
/// <summary>
|
||||
/// 编号
|
||||
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -100,6 +100,20 @@
|
||||
<param name="dto"></param>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="M:YD_XinWei.Api.Controllers.XinWeiController.GetScoreRules(System.Int32)">
|
||||
<summary>
|
||||
查询训练评分规则
|
||||
</summary>
|
||||
<param name="dto"></param>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="M:YD_XinWei.Api.Controllers.XinWeiController.AddTrain(YD_XinWei.Commons.Dto.Open.AddTrainDto)">
|
||||
<summary>
|
||||
新增训练
|
||||
</summary>
|
||||
<param name="dto"></param>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="T:YD_XinWei.Api.Entitys.EntityBase">
|
||||
<summary>
|
||||
数据库实体父类
|
||||
@ -287,6 +301,20 @@
|
||||
<param name="dto"></param>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="M:YD_XinWei.Api.Services.Impl.XinWeiService.ScoreRules(System.Int32)">
|
||||
<summary>
|
||||
获取训练评分规则
|
||||
</summary>
|
||||
<param name="orgId">学校Id</param>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="M:YD_XinWei.Api.Services.Impl.XinWeiService.AddTrain(YD_XinWei.Commons.Dto.Open.AddTrainDto)">
|
||||
<summary>
|
||||
新增训练
|
||||
</summary>
|
||||
<param name="dto"></param>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="M:YD_XinWei.Api.Services.Interface.IStudentService.ClassListbyTeacher(System.String)">
|
||||
<summary>
|
||||
获取班级列表
|
||||
@ -360,6 +388,20 @@
|
||||
<param name="dto"></param>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="M:YD_XinWei.Api.Services.Interface.IXinWeiService.ScoreRules(System.Int32)">
|
||||
<summary>
|
||||
获取训练评分规则
|
||||
</summary>
|
||||
<param name="orgId">学校Id</param>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="M:YD_XinWei.Api.Services.Interface.IXinWeiService.AddTrain(YD_XinWei.Commons.Dto.Open.AddTrainDto)">
|
||||
<summary>
|
||||
新增训练
|
||||
</summary>
|
||||
<param name="dto"></param>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="P:YD_XinWei.Api.SmartSportsEntitys.Sys_User.UserName">
|
||||
<summary>
|
||||
帐号
|
||||
|
Binary file not shown.
Binary file not shown.
@ -159,6 +159,58 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"ContainingType": "YD_XinWei.Api.Controllers.XinWeiController",
|
||||
"Method": "GetScoreRules",
|
||||
"RelativePath": "sports/{apiVersion}/project/getScoreRules",
|
||||
"HttpMethod": "GET",
|
||||
"IsController": true,
|
||||
"Order": 0,
|
||||
"Parameters": [
|
||||
{
|
||||
"Name": "orgId",
|
||||
"Type": "System.Int32",
|
||||
"IsRequired": false
|
||||
},
|
||||
{
|
||||
"Name": "apiVersion",
|
||||
"Type": "",
|
||||
"IsRequired": true
|
||||
}
|
||||
],
|
||||
"ReturnTypes": [
|
||||
{
|
||||
"Type": "System.Collections.Generic.List\u00601[[YD_XinWei.Commons.Dto.Open.ScoreRuleDto, YD_XinWei.Commons, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]",
|
||||
"MediaTypes": [
|
||||
"text/plain",
|
||||
"application/json",
|
||||
"text/json"
|
||||
],
|
||||
"StatusCode": 200
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"ContainingType": "YD_XinWei.Api.Controllers.XinWeiController",
|
||||
"Method": "AddTrain",
|
||||
"RelativePath": "sports/{apiVersion}/train/addTrain",
|
||||
"HttpMethod": "POST",
|
||||
"IsController": true,
|
||||
"Order": 0,
|
||||
"Parameters": [
|
||||
{
|
||||
"Name": "dto",
|
||||
"Type": "YD_XinWei.Commons.Dto.Open.AddTrainDto",
|
||||
"IsRequired": true
|
||||
},
|
||||
{
|
||||
"Name": "apiVersion",
|
||||
"Type": "",
|
||||
"IsRequired": true
|
||||
}
|
||||
],
|
||||
"ReturnTypes": []
|
||||
},
|
||||
{
|
||||
"ContainingType": "YD_XinWei.Api.Controllers.StudentController",
|
||||
"Method": "ClassListbyTeacher",
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -14,7 +14,7 @@ using System.Reflection;
|
||||
[assembly: System.Reflection.AssemblyCompanyAttribute("YD_XinWei.Api")]
|
||||
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
|
||||
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
|
||||
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+ad143d6bcf630bb86e028d0e2fbc538118cf0f41")]
|
||||
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+dc38461ab3d5355886477c5ce017e5a8d53b032c")]
|
||||
[assembly: System.Reflection.AssemblyProductAttribute("YD_XinWei.Api")]
|
||||
[assembly: System.Reflection.AssemblyTitleAttribute("YD_XinWei.Api")]
|
||||
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
|
||||
|
@ -1 +1 @@
|
||||
a22d4df7e052da38fa6c0800608573154d72ec117a2dfcfb27f737b03c08bb4d
|
||||
2484f36a7fcc252949009027ed60641b02c74041ebf315ee3eaf2b7543bf8538
|
||||
|
Binary file not shown.
@ -1 +1 @@
|
||||
0b885924c6cfa9a8470e64544c43de5a027bc2c8e1b105f9aa5492c4fc6edf75
|
||||
003262f253ec12e347b045c271db87bbce9d120a50e84c916441f4ba635620da
|
||||
|
@ -102,7 +102,6 @@ C:\Users\TangLong\Desktop\Code\YD_XinWei\Server\YD_XinWei\obj\Debug\net6.0\YD_Xi
|
||||
C:\Users\TangLong\Desktop\Code\YD_XinWei\Server\YD_XinWei\bin\Debug\net6.0\appsettings.Development.json
|
||||
C:\Users\TangLong\Desktop\Code\YD_XinWei\Server\YD_XinWei\bin\Debug\net6.0\YD_XinWei.Api.staticwebassets.endpoints.json
|
||||
C:\Users\TangLong\Desktop\Code\YD_XinWei\Server\YD_XinWei\bin\Debug\net6.0\appsettings.json
|
||||
C:\Users\TangLong\Desktop\Code\YD_XinWei\Server\YD_XinWei\bin\Debug\net6.0\YD_XinWei.Api.staticwebassets.runtime.json
|
||||
C:\Users\TangLong\Desktop\Code\YD_XinWei\Server\YD_XinWei\bin\Debug\net6.0\YD_XinWei.Api.exe
|
||||
C:\Users\TangLong\Desktop\Code\YD_XinWei\Server\YD_XinWei\bin\Debug\net6.0\YD_XinWei.Api.deps.json
|
||||
C:\Users\TangLong\Desktop\Code\YD_XinWei\Server\YD_XinWei\bin\Debug\net6.0\YD_XinWei.Api.runtimeconfig.json
|
||||
@ -265,3 +264,4 @@ C:\Users\HHST102\Desktop\Code\YD_XinWei\Server\YD_XinWei\obj\Debug\net6.0\YD_Xin
|
||||
C:\Users\HHST102\Desktop\Code\YD_XinWei\Server\YD_XinWei\obj\Debug\net6.0\YD_XinWei.Api.genruntimeconfig.cache
|
||||
C:\Users\HHST102\Desktop\Code\YD_XinWei\Server\YD_XinWei\obj\Debug\net6.0\ref\YD_XinWei.Api.dll
|
||||
C:\Users\HHST102\Desktop\Code\YD_XinWei\Server\YD_XinWei\bin\Debug\net6.0\Microsoft.AspNetCore.Mvc.Versioning.dll
|
||||
C:\Users\TangLong\Desktop\Code\YD_XinWei\Server\YD_XinWei\bin\Debug\net6.0\Microsoft.AspNetCore.Mvc.Versioning.dll
|
||||
|
Binary file not shown.
@ -1 +1 @@
|
||||
060f56a1a9a01341736e0740bbb12803aab2a8b5e7b43736aebdfccc3610cbc8
|
||||
8f600b69930d1c868b0d8cf16beca96f9dca64d0a3ee6c5610ba18b0c9543755
|
||||
|
Binary file not shown.
@ -1 +1 @@
|
||||
{"documents":{"C:\\Users\\HHST102\\Desktop\\Code\\YD_XinWei\\*":"https://dev.azure.com/tanglong10081/YD_XinWei/_apis/git/repositories/YD_XinWei/items?api-version=1.0&versionType=commit&version=1c36de9ae00d951cbe0a6ae28dfdf85462590015&path=/*"}}
|
||||
{"documents":{"C:\\Users\\TangLong\\Desktop\\Code\\YD_XinWei\\*":"https://dev.azure.com/tanglong10081/YD_XinWei/_apis/git/repositories/YD_XinWei/items?api-version=1.0&versionType=commit&version=dc38461ab3d5355886477c5ce017e5a8d53b032c&path=/*"}}
|
@ -100,6 +100,20 @@
|
||||
<param name="dto"></param>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="M:YD_XinWei.Api.Controllers.XinWeiController.GetScoreRules(System.Int32)">
|
||||
<summary>
|
||||
查询训练评分规则
|
||||
</summary>
|
||||
<param name="dto"></param>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="M:YD_XinWei.Api.Controllers.XinWeiController.AddTrain(YD_XinWei.Commons.Dto.Open.AddTrainDto)">
|
||||
<summary>
|
||||
新增训练
|
||||
</summary>
|
||||
<param name="dto"></param>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="T:YD_XinWei.Api.Entitys.EntityBase">
|
||||
<summary>
|
||||
数据库实体父类
|
||||
@ -287,6 +301,20 @@
|
||||
<param name="dto"></param>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="M:YD_XinWei.Api.Services.Impl.XinWeiService.ScoreRules(System.Int32)">
|
||||
<summary>
|
||||
获取训练评分规则
|
||||
</summary>
|
||||
<param name="orgId">学校Id</param>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="M:YD_XinWei.Api.Services.Impl.XinWeiService.AddTrain(YD_XinWei.Commons.Dto.Open.AddTrainDto)">
|
||||
<summary>
|
||||
新增训练
|
||||
</summary>
|
||||
<param name="dto"></param>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="M:YD_XinWei.Api.Services.Interface.IStudentService.ClassListbyTeacher(System.String)">
|
||||
<summary>
|
||||
获取班级列表
|
||||
@ -360,6 +388,20 @@
|
||||
<param name="dto"></param>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="M:YD_XinWei.Api.Services.Interface.IXinWeiService.ScoreRules(System.Int32)">
|
||||
<summary>
|
||||
获取训练评分规则
|
||||
</summary>
|
||||
<param name="orgId">学校Id</param>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="M:YD_XinWei.Api.Services.Interface.IXinWeiService.AddTrain(YD_XinWei.Commons.Dto.Open.AddTrainDto)">
|
||||
<summary>
|
||||
新增训练
|
||||
</summary>
|
||||
<param name="dto"></param>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="P:YD_XinWei.Api.SmartSportsEntitys.Sys_User.UserName">
|
||||
<summary>
|
||||
帐号
|
||||
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -1,11 +1,12 @@
|
||||
{
|
||||
"Version": 1,
|
||||
"Hash": "rBCLZOUjwISsB+SX42YT2TnXFxFh+mQJBrhM1QYR9dM=",
|
||||
"Hash": "KP759nLzKnXJ+WS979JyaVeurWoEX66xHrJc8V9vLq8=",
|
||||
"Source": "YD_XinWei.Api",
|
||||
"BasePath": "_content/YD_XinWei.Api",
|
||||
"Mode": "Default",
|
||||
"ManifestType": "Build",
|
||||
"ReferencedProjectsConfiguration": [],
|
||||
"DiscoveryPatterns": [],
|
||||
"Assets": []
|
||||
"Assets": [],
|
||||
"Endpoints": []
|
||||
}
|
@ -1,3 +1,4 @@
|
||||
<Project>
|
||||
<Import Project="Microsoft.AspNetCore.StaticWebAssetEndpoints.props" />
|
||||
<Import Project="Microsoft.AspNetCore.StaticWebAssets.props" />
|
||||
</Project>
|
Loading…
x
Reference in New Issue
Block a user