diff --git a/Tiobon.Core.Api/Controllers/Ghre/Ghre_SurveyController.cs b/Tiobon.Core.Api/Controllers/Ghre/Ghre_SurveyController.cs index 107c4d24..6b34c613 100644 --- a/Tiobon.Core.Api/Controllers/Ghre/Ghre_SurveyController.cs +++ b/Tiobon.Core.Api/Controllers/Ghre/Ghre_SurveyController.cs @@ -77,6 +77,15 @@ public class Ghre_SurveyController : BaseController> QueryESSData(long id) => await _service.QueryESSData(id); + /// + /// 查询 + /// + /// + /// 开班ID + /// + [HttpPost("QueryESSData/{id}/{openClassId}")] + public async Task> QueryESSDataFromOpenCLass(long id, long openClassId) => await _service.QueryESSData(id, openClassId); + #endregion #region 提交 diff --git a/Tiobon.Core.IServices/Ghre/IGhre_SurveyServices.cs b/Tiobon.Core.IServices/Ghre/IGhre_SurveyServices.cs index ecaed2ef..b6bda78a 100644 --- a/Tiobon.Core.IServices/Ghre/IGhre_SurveyServices.cs +++ b/Tiobon.Core.IServices/Ghre/IGhre_SurveyServices.cs @@ -16,7 +16,7 @@ public interface IGhre_SurveyServices : IBaseServices> QueryData(long id); - Task> QueryESSData(long id); + Task> QueryESSData(long id, long? openClassId = null); Task SubmitESSData(long id, Ghre_SurveyExtend input); diff --git a/Tiobon.Core.Model/Base/Ghre/Ghre_SurveyRecord.Dto.Base.cs b/Tiobon.Core.Model/Base/Ghre/Ghre_SurveyRecord.Dto.Base.cs index 8c447642..08e7c791 100644 --- a/Tiobon.Core.Model/Base/Ghre/Ghre_SurveyRecord.Dto.Base.cs +++ b/Tiobon.Core.Model/Base/Ghre/Ghre_SurveyRecord.Dto.Base.cs @@ -6,7 +6,7 @@ * * Ver 变更日期 负责人 变更内容 * ─────────────────────────────────── -*V0.01 2025/4/2 10:23:05 SimonHsiao 初版 +*V0.01 2025/5/6 13:17:08 SimonHsiao 初版 * * Copyright(c) 2025 Tiobon Corporation. All Rights Reserved. *┌──────────────────────────────────┐ @@ -160,4 +160,9 @@ public class Ghre_SurveyRecordBase /// 预留字段12 /// public int? ReverseI2 { get; set; } + + /// + /// 开班ID + /// + public long? OpenClassId { get; set; } } diff --git a/Tiobon.Core.Model/Models/Ghre/Ghre_SurveyRecord.cs b/Tiobon.Core.Model/Models/Ghre/Ghre_SurveyRecord.cs index 8578bc78..aaa4636a 100644 --- a/Tiobon.Core.Model/Models/Ghre/Ghre_SurveyRecord.cs +++ b/Tiobon.Core.Model/Models/Ghre/Ghre_SurveyRecord.cs @@ -6,7 +6,7 @@ * * Ver 变更日期 负责人 变更内容 * ─────────────────────────────────── -*V0.01 2025/4/2 10:23:05 SimonHsiao 初版 +*V0.01 2025/5/6 13:17:08 SimonHsiao 初版 * * Copyright(c) 2025 Tiobon Corporation. All Rights Reserved. *┌──────────────────────────────────┐ @@ -161,4 +161,9 @@ public class Ghre_SurveyRecord : BasePoco /// 预留字段12 /// public int? ReverseI2 { get; set; } + + /// + /// 开班ID + /// + public long? OpenClassId { get; set; } } diff --git a/Tiobon.Core.Services/Ghre/Ghre_SurveyServices.cs b/Tiobon.Core.Services/Ghre/Ghre_SurveyServices.cs index 39f05f1d..1f2df8ae 100644 --- a/Tiobon.Core.Services/Ghre/Ghre_SurveyServices.cs +++ b/Tiobon.Core.Services/Ghre/Ghre_SurveyServices.cs @@ -196,7 +196,7 @@ public class Ghre_SurveyServices : BaseServices> QueryESSData(long id) + public async Task> QueryESSData(long id, long? openClassId = null) { var entity = await base.QueryById(id); var data = Mapper.Map(entity).ToANew();