From fa916944690ca3606a740d13bb8c8e23db521bdc Mon Sep 17 00:00:00 2001 From: xiaochanghai Date: Tue, 30 Jul 2024 16:50:53 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E5=BF=85=E9=80=89=E4=BF=AE?= =?UTF-8?q?=E8=A7=84=E5=88=99=20=E6=9F=A5=E8=AF=A2=E7=BB=93=E6=9E=9C?= =?UTF-8?q?=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Ghre/Ghre_StudyRuleResultController.cs | 16 ++++++++++++++++ Tiobon.Core.Api/Tiobon.Core.xml | 8 ++++++++ .../Ghre/Ghre_StudyRuleServices.cs | 2 +- Tiobon.Core/Tiobon.Core.xml | 8 ++++++++ 4 files changed, 33 insertions(+), 1 deletion(-) diff --git a/Tiobon.Core.Api/Controllers/Ghre/Ghre_StudyRuleResultController.cs b/Tiobon.Core.Api/Controllers/Ghre/Ghre_StudyRuleResultController.cs index 40c927f9..349b259f 100644 --- a/Tiobon.Core.Api/Controllers/Ghre/Ghre_StudyRuleResultController.cs +++ b/Tiobon.Core.Api/Controllers/Ghre/Ghre_StudyRuleResultController.cs @@ -11,4 +11,20 @@ public class Ghre_StudyRuleResultController : BaseController + /// 根据条件查询数据 + /// + /// RuleId + /// 条件 + /// + [HttpPost, Route("QueryByRuleId/{RuleId}")] + public async Task> Query(long RuleId, [FromBody] QueryBody body) + { + return await _service.QueryFilterPage(body, $"StudyRuleId='{RuleId}'"); + } + + #endregion } \ No newline at end of file diff --git a/Tiobon.Core.Api/Tiobon.Core.xml b/Tiobon.Core.Api/Tiobon.Core.xml index 3fd8f67e..04dab34a 100644 --- a/Tiobon.Core.Api/Tiobon.Core.xml +++ b/Tiobon.Core.Api/Tiobon.Core.xml @@ -961,6 +961,14 @@ 必选修规则结果(Controller) + + + 根据条件查询数据 + + RuleId + 条件 + + 必选修规则人员(Controller) diff --git a/Tiobon.Core.Services/Ghre/Ghre_StudyRuleServices.cs b/Tiobon.Core.Services/Ghre/Ghre_StudyRuleServices.cs index a429658a..f907d1d4 100644 --- a/Tiobon.Core.Services/Ghre/Ghre_StudyRuleServices.cs +++ b/Tiobon.Core.Services/Ghre/Ghre_StudyRuleServices.cs @@ -256,7 +256,7 @@ public class Ghre_StudyRuleServices : BaseServices + + + 根据条件查询数据 + + RuleId + 条件 + + 必选修规则人员(Controller)