From 803298c3022f88e85a42b19e43335c959764975f Mon Sep 17 00:00:00 2001 From: xiaochanghai Date: Mon, 3 Jun 2024 18:44:24 +0800 Subject: [PATCH] =?UTF-8?q?=E8=80=83=E8=AF=95=20=E6=96=B0=E5=A2=9E?= =?UTF-8?q?=E5=A4=8D=E5=88=B6=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Tiobon.Core.Api/Tiobon.Core.xml | 7 +++++++ Tiobon.Core.Services/Ghre/Ghre_ExamServices.cs | 5 +++-- Tiobon.Core/Tiobon.Core.xml | 7 +++++++ 3 files changed, 17 insertions(+), 2 deletions(-) diff --git a/Tiobon.Core.Api/Tiobon.Core.xml b/Tiobon.Core.Api/Tiobon.Core.xml index 096ef652..24862ffd 100644 --- a/Tiobon.Core.Api/Tiobon.Core.xml +++ b/Tiobon.Core.Api/Tiobon.Core.xml @@ -659,6 +659,13 @@ 考试ID + + + 复制 + + 考试ID + + 试卷配置(Controller) diff --git a/Tiobon.Core.Services/Ghre/Ghre_ExamServices.cs b/Tiobon.Core.Services/Ghre/Ghre_ExamServices.cs index 14e572c8..e6781750 100644 --- a/Tiobon.Core.Services/Ghre/Ghre_ExamServices.cs +++ b/Tiobon.Core.Services/Ghre/Ghre_ExamServices.cs @@ -324,7 +324,7 @@ public class Ghre_ExamServices : BaseServices>(); id = await base.Add(insert); insertStaffs.ForEach(x => x.ExamId = id); - await _ghre_ExamStaffServices.Add(insertStaffs); + if (insertStaffs.Any()) + await _ghre_ExamStaffServices.Add(insertStaffs); return ServiceResult.OprateSuccess("复制成功!"); diff --git a/Tiobon.Core/Tiobon.Core.xml b/Tiobon.Core/Tiobon.Core.xml index 096ef652..24862ffd 100644 --- a/Tiobon.Core/Tiobon.Core.xml +++ b/Tiobon.Core/Tiobon.Core.xml @@ -659,6 +659,13 @@ 考试ID + + + 复制 + + 考试ID + + 试卷配置(Controller)