From 02665634fb71bc5ed04a7904a127d5e403dae763 Mon Sep 17 00:00:00 2001 From: xiaochanghai Date: Fri, 7 Feb 2025 14:17:50 +0800 Subject: [PATCH] =?UTF-8?q?=20=E8=AF=95=E5=8D=B7=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.Services/Ghre/Ghre_ExamPaperServices.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Tiobon.Core.Services/Ghre/Ghre_ExamPaperServices.cs b/Tiobon.Core.Services/Ghre/Ghre_ExamPaperServices.cs index 8b95a4dc..951b8c19 100644 --- a/Tiobon.Core.Services/Ghre/Ghre_ExamPaperServices.cs +++ b/Tiobon.Core.Services/Ghre/Ghre_ExamPaperServices.cs @@ -943,6 +943,9 @@ delete from Ghre_ExamPaperQuestion WHERE ExamPaperId='{id}';"); { var entity = await base.QueryById(id); + if(entity is null ) + return ServiceResult.OprateFailed("无效的ID!"); + entity.PaperName = entity.PaperName + "_复制"; entity.PaperNo = await GenerateContinuousSequence("Ghre_ExamPaper", "PaperNo", "P");