From 0abea503b1ae36c41d05824b21cd896a50171572 Mon Sep 17 00:00:00 2001 From: xiaochanghai Date: Fri, 25 Apr 2025 09:07:42 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AE=B2=E5=B8=88=E8=B4=B9=E7=94=A8=E7=94=B3?= =?UTF-8?q?=E8=AF=B7=E6=96=B0=E5=A2=9E=E6=A0=B9=E6=8D=AE=E7=94=B3=E8=AF=B7?= =?UTF-8?q?=E4=BA=BA=E7=AD=BE=E6=A0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Tiobon.Core.Services/CommonServices.cs | 5 ++--- Tiobon.Core.Services/Ghre/Ghre_ExamRecordServices.cs | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/Tiobon.Core.Services/CommonServices.cs b/Tiobon.Core.Services/CommonServices.cs index b53b1aac..f9711b6e 100644 --- a/Tiobon.Core.Services/CommonServices.cs +++ b/Tiobon.Core.Services/CommonServices.cs @@ -4290,9 +4290,7 @@ public partial class CommonServices : BaseServices>, ICommon var dict1 = JsonHelper.JsonToObj(json); //dict.RequestNo = await GenerateContinuousSequence("Ghrh_HumanRequest", "RequestNo", "R"); id = await Db.Insertable(dict).ExecuteReturnSnowflakeIdAsync(); - - - + sql = $"SELECT ISNULL(MAX(id)+1,1) FROM Ghre_ExternalTrainApplyOrder_Boltone WHERE Id !='{id}' and len(Id) !=19"; var id1 = await Db.Ado.GetLongAsync(sql); sql = $"UPDATE Ghre_ExternalTrainApplyOrder_Boltone SET Id={id1} WHERE Id ='{id}'"; @@ -4364,6 +4362,7 @@ public partial class CommonServices : BaseServices>, ICommon //dict.RequestNo = await GenerateContinuousSequence("Ghrh_HumanRequest", "RequestNo", "R"); id = await Db.Insertable(dict).ExecuteReturnSnowflakeIdAsync(); + var StaffUserId = await Db.Queryable().Where(x => x.UserStaffID == dict.TeacherId).Select(x => x.UserId).FirstAsync(); if (StaffUserId > 0) param.userId = StaffUserId; diff --git a/Tiobon.Core.Services/Ghre/Ghre_ExamRecordServices.cs b/Tiobon.Core.Services/Ghre/Ghre_ExamRecordServices.cs index 5e7c66d1..b42552d0 100644 --- a/Tiobon.Core.Services/Ghre/Ghre_ExamRecordServices.cs +++ b/Tiobon.Core.Services/Ghre/Ghre_ExamRecordServices.cs @@ -906,7 +906,7 @@ public class Ghre_ExamRecordServices : BaseServices.OprateSuccess("查询成功!", extend);