开班页面开发

master
xiaochanghai 4 months ago
parent b021c38b72
commit 5e121289f5
  1. 698
      Model/Tiobon.Web.pdm
  2. 10
      Tiobon.Core.Api/Tiobon.Core.Model.xml
  3. 8
      Tiobon.Core.Model/Base/Ghre/Ghre_OpenClass.Dto.Base.cs
  4. 8
      Tiobon.Core.Model/Models/Ghre/Ghre_OpenClass.cs
  5. 12
      Tiobon.Core.Services/Ghre/Ghre_ExamRecordServices.cs
  6. 9
      Tiobon.Core.Services/Ghre/Ghre_OpenClassServices.cs
  7. 10
      Tiobon.Core/Tiobon.Core.Model.xml
  8. 8
      Tiobon.Core/Tiobon.Core.xml

File diff suppressed because it is too large Load Diff

@ -4900,6 +4900,11 @@
结案状态
</summary>
</member>
<member name="P:Tiobon.Core.Model.Models.Ghre_OpenClassBase.Status">
<summary>
状态
</summary>
</member>
<member name="P:Tiobon.Core.Model.Models.Ghre_OpenClassBase.RemarkSz">
<summary>
备注
@ -19601,6 +19606,11 @@
结案状态
</summary>
</member>
<member name="P:Tiobon.Core.Model.Models.Ghre_OpenClass.Status">
<summary>
状态
</summary>
</member>
<member name="P:Tiobon.Core.Model.Models.Ghre_OpenClass.RemarkSz">
<summary>
备注

@ -6,7 +6,7 @@
*
* Ver
*
*V0.01 2025/2/8 14:35:04 SimonHsiao
*V0.01 2025/2/10 13:58:38 SimonHsiao
*
* Copyright(c) 2025 Tiobon Corporation. All Rights Reserved.
*
@ -136,6 +136,12 @@ public class Ghre_OpenClassBase
/// </summary>
public int? CloseStatus { get; set; }
/// <summary>
/// 状态
/// </summary>
[Display(Name = "Status"), Description("状态"), MaxLength(2000, ErrorMessage = "状态 不能超过 2000 个字符")]
public string Status { get; set; }
/// <summary>
/// 备注
/// </summary>

@ -6,7 +6,7 @@
*
* Ver
*
*V0.01 2025/2/8 14:35:04 SimonHsiao
*V0.01 2025/2/10 13:58:38 SimonHsiao
*
* Copyright(c) 2025 Tiobon Corporation. All Rights Reserved.
*
@ -137,6 +137,12 @@ public class Ghre_OpenClass : BasePoco
/// </summary>
public int? CloseStatus { get; set; }
/// <summary>
/// 状态
/// </summary>
[Display(Name = "Status"), Description("状态"), MaxLength(2000, ErrorMessage = "状态 不能超过 2000 个字符")]
public string Status { get; set; }
/// <summary>
/// 备注
/// </summary>

@ -559,6 +559,8 @@ public class Ghre_ExamRecordServices : BaseServices<Ghre_ExamRecord, Ghre_ExamRe
await Db.Deleteable<Ghre_ExamPaperQuestion>().Where(x => x.ExamPaperId == examRecordId).ExecuteCommandAsync();
var configs = await Db.Queryable<Ghre_ExamPaperConfig>().OrderBy(x => x.TaxisNo).Where(x => x.ExamPaperId == exampaper.Id).ToListAsync();
var examPaperQuestionIds = new List<long>();
for (int i = 0; i < configs.Count; i++)
{
var config = configs[i];
@ -571,9 +573,16 @@ public class Ghre_ExamRecordServices : BaseServices<Ghre_ExamRecord, Ghre_ExamRe
sql += $" AND CourseId='{config.CourseId}'";
if (config.QuestionId != null)
sql += $" AND Id='{config.QuestionId}'";
if(examPaperQuestionIds.Any())
sql += $" AND Id NOT IN ('{string.Join(",", examPaperQuestionIds)}')";
sql += $" ORDER BY GuidValue ASC";
var questions2 = await Db.Ado.SqlQueryAsync<Ghre_Question>(sql);
if (questions2.Any())
{
examPaperQuestionIds.AddRange(questions2.Select(x => x.Id));
var insertExamPaperQuestions = questions2.Select(x => new Ghre_ExamPaperQuestion
{
Id = SnowFlakeSingle.instance.getID(),
@ -584,7 +593,8 @@ public class Ghre_ExamRecordServices : BaseServices<Ghre_ExamRecord, Ghre_ExamRe
Score = config.Score
}).ToList();
Db.Insertable(insertExamPaperQuestions).ExecuteCommand();
await Db.Insertable(insertExamPaperQuestions).ExecuteCommandAsync();
}
}
}

@ -1,7 +1,4 @@
using static Tiobon.Core.Model.Consts;
using Tiobon.Core.Common.DB.Dapper.Extensions;
namespace Tiobon.Core.Services;
namespace Tiobon.Core.Services;
/// <summary>
/// 开班管理 (服务)
@ -16,12 +13,10 @@ public class Ghre_OpenClassServices : BaseServices<Ghre_OpenClass, Ghre_OpenClas
base._caching = caching;
}
public override async Task<long> Add(InsertGhre_OpenClassInput entity)
{
var result = await base.Add(entity);
entity.Status = "Temporary";
return result;
}

@ -4900,6 +4900,11 @@
结案状态
</summary>
</member>
<member name="P:Tiobon.Core.Model.Models.Ghre_OpenClassBase.Status">
<summary>
状态
</summary>
</member>
<member name="P:Tiobon.Core.Model.Models.Ghre_OpenClassBase.RemarkSz">
<summary>
备注
@ -19601,6 +19606,11 @@
结案状态
</summary>
</member>
<member name="P:Tiobon.Core.Model.Models.Ghre_OpenClass.Status">
<summary>
状态
</summary>
</member>
<member name="P:Tiobon.Core.Model.Models.Ghre_OpenClass.RemarkSz">
<summary>
备注

@ -1145,6 +1145,14 @@
开班管理(Controller)
</summary>
</member>
<member name="M:Tiobon.Core.Api.Controllers.Ghre_OpenClassController.QueryByStatus(Tiobon.Core.Common.QueryBody,System.String)">
<summary>
根据条件查询数据
</summary>
<param name="body">条件</param>
<param name="status">status</param>
<returns></returns>
</member>
<member name="T:Tiobon.Core.Api.Controllers.Ghre_OpenClassFeeController">
<summary>
开班费用(Controller)

Loading…
Cancel
Save