diff --git a/Tiobon.Core.Api/Controllers/Ghre/Ghre_SurveyController.cs b/Tiobon.Core.Api/Controllers/Ghre/Ghre_SurveyController.cs index 4bd061e4..b47e206a 100644 --- a/Tiobon.Core.Api/Controllers/Ghre/Ghre_SurveyController.cs +++ b/Tiobon.Core.Api/Controllers/Ghre/Ghre_SurveyController.cs @@ -84,9 +84,10 @@ public class Ghre_SurveyController : BaseController /// + /// /// [HttpPost("SubmitESSData/{id}")] - public async Task> SubmitESSData(long id) => await _service.QueryESSData(id); + public async Task SubmitESSData(long id, [FromBody] Ghre_SurveyExtend input) => await _service.SubmitESSData(id, input); #endregion } diff --git a/Tiobon.Core.Api/Tiobon.Core.Model.xml b/Tiobon.Core.Api/Tiobon.Core.Model.xml index 11b974ae..44f2a98d 100644 --- a/Tiobon.Core.Api/Tiobon.Core.Model.xml +++ b/Tiobon.Core.Api/Tiobon.Core.Model.xml @@ -36093,6 +36093,16 @@ 问卷调查选项 + + + 选项 + + + + + 选项列表 + + 人力需求维护ID diff --git a/Tiobon.Core.Api/Tiobon.Core.xml b/Tiobon.Core.Api/Tiobon.Core.xml index bc8c075b..81e5dae7 100644 --- a/Tiobon.Core.Api/Tiobon.Core.xml +++ b/Tiobon.Core.Api/Tiobon.Core.xml @@ -1409,11 +1409,12 @@ - + 提交 + diff --git a/Tiobon.Core.IServices/Ghre/IGhre_SurveyServices.cs b/Tiobon.Core.IServices/Ghre/IGhre_SurveyServices.cs index e4197931..2aeea2fb 100644 --- a/Tiobon.Core.IServices/Ghre/IGhre_SurveyServices.cs +++ b/Tiobon.Core.IServices/Ghre/IGhre_SurveyServices.cs @@ -18,5 +18,5 @@ public interface IGhre_SurveyServices : IBaseServices> QueryESSData(long id); - Task> SubmitESSData(long id); + Task SubmitESSData(long id, Ghre_SurveyExtend input); } \ No newline at end of file diff --git a/Tiobon.Core.Model/ViewModels/Extend/InsertGhre_SurveyExtend.cs b/Tiobon.Core.Model/ViewModels/Extend/InsertGhre_SurveyExtend.cs index bca33eda..f5e99b03 100644 --- a/Tiobon.Core.Model/ViewModels/Extend/InsertGhre_SurveyExtend.cs +++ b/Tiobon.Core.Model/ViewModels/Extend/InsertGhre_SurveyExtend.cs @@ -210,6 +210,8 @@ public class InsertGhre_SurveyQuestionExtend : Ghre_SurveyQuestionExtendBase /// public class InsertGhre_SurveyOptionExtend { + public long Id { get; set; } + /// /// 选项编号 /// @@ -290,5 +292,13 @@ public class Ghre_SurveyQuestionExtend : Ghre_SurveyQuestionExtendBase /// public class Ghre_SurveyOptionExtend : InsertGhre_SurveyOptionExtend { + /// + /// 选项 + /// + public string Value { get; set; } + /// + /// 选项列表 + /// + public List Value1 { get; set; } } \ No newline at end of file diff --git a/Tiobon.Core.Services/Ghre/Ghre_SurveyServices.cs b/Tiobon.Core.Services/Ghre/Ghre_SurveyServices.cs index bba5cdf6..0d931b24 100644 --- a/Tiobon.Core.Services/Ghre/Ghre_SurveyServices.cs +++ b/Tiobon.Core.Services/Ghre/Ghre_SurveyServices.cs @@ -217,7 +217,7 @@ public class Ghre_SurveyServices : BaseServices> SubmitESSData(long id) + public async Task SubmitESSData(long id, Ghre_SurveyExtend input) { var entity = await base.QueryById(id); var data = Mapper.Map(entity).ToANew(); @@ -237,7 +237,7 @@ public class Ghre_SurveyServices : BaseServices o.SurveyQuestionId == x.Id)).ToANew>(); }); - return ServiceResult.OprateSuccess("成功", data); + return ServiceResult.OprateSuccess("提交成功!"); } } \ No newline at end of file diff --git a/Tiobon.Core/Tiobon.Core.Model.xml b/Tiobon.Core/Tiobon.Core.Model.xml index 11b974ae..44f2a98d 100644 --- a/Tiobon.Core/Tiobon.Core.Model.xml +++ b/Tiobon.Core/Tiobon.Core.Model.xml @@ -36093,6 +36093,16 @@ 问卷调查选项 + + + 选项 + + + + + 选项列表 + + 人力需求维护ID diff --git a/Tiobon.Core/Tiobon.Core.xml b/Tiobon.Core/Tiobon.Core.xml index bc8c075b..81e5dae7 100644 --- a/Tiobon.Core/Tiobon.Core.xml +++ b/Tiobon.Core/Tiobon.Core.xml @@ -1409,11 +1409,12 @@ - + 提交 +