From cbc32c3fb41b463a0d9dd84c34249cff65b59cec Mon Sep 17 00:00:00 2001 From: xiaochanghai Date: Tue, 3 Jun 2025 13:52:25 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E5=AE=9D=E8=BF=9E=E9=80=9A=E3=80=91?= =?UTF-8?q?=E5=A4=96=E8=AE=AD=E7=94=B3=E8=AF=B7=E6=96=B0=E5=A2=9E=E5=9F=B9?= =?UTF-8?q?=E8=AE=AD=E5=BF=83=E5=BE=97=E4=B8=8A=E4=BC=A0=E9=99=84=E4=BB=B6?= =?UTF-8?q?=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...Ghre_ExternalTrainApplyOrder_Boltone.Dto.Base.cs | 1 + Tiobon.Core.Services/CommonServices.cs | 13 +++++++++++++ .../Ghre/Ghre_ExamRecordServices.cs | 2 +- 3 files changed, 15 insertions(+), 1 deletion(-) diff --git a/Tiobon.Core.Model/Base/Ghre/Ghre_ExternalTrainApplyOrder_Boltone.Dto.Base.cs b/Tiobon.Core.Model/Base/Ghre/Ghre_ExternalTrainApplyOrder_Boltone.Dto.Base.cs index 057cf764..fdf3390a 100644 --- a/Tiobon.Core.Model/Base/Ghre/Ghre_ExternalTrainApplyOrder_Boltone.Dto.Base.cs +++ b/Tiobon.Core.Model/Base/Ghre/Ghre_ExternalTrainApplyOrder_Boltone.Dto.Base.cs @@ -332,6 +332,7 @@ public class Ghre_ExternalTrainApplyOrder_BoltoneBase public string CourseName1 { get; set; } + public List ReflectionAttachments { get; set; } = new List(); public List ExternalAttachments { get; set; } = new List(); public List ContractAttachments { get; set; } = new List(); diff --git a/Tiobon.Core.Services/CommonServices.cs b/Tiobon.Core.Services/CommonServices.cs index 12e563a2..0f6cd241 100644 --- a/Tiobon.Core.Services/CommonServices.cs +++ b/Tiobon.Core.Services/CommonServices.cs @@ -4385,6 +4385,19 @@ public partial class CommonServices : BaseServices>, ICommon .Where(it => ids.Contains(it.Id)) .ExecuteCommandAsync(); } + if (dict1.ReflectionAttachments.Any()) + { + var ids = dict1.ReflectionAttachments.Select(x => x.AttachmentID).ToList(); + await Db.Updateable() + .SetColumns(it => new Ghre_Attachment() + { + TableName = "Ghre_ExternalTrainApplyOrder_Boltone", + TableKeyID = id.ObjToInt(), + Reverse1 = "ReflectionAttachments" + }) + .Where(it => ids.Contains(it.Id)) + .ExecuteCommandAsync(); + } #endregion break; diff --git a/Tiobon.Core.Services/Ghre/Ghre_ExamRecordServices.cs b/Tiobon.Core.Services/Ghre/Ghre_ExamRecordServices.cs index 003cfdc3..57a7730a 100644 --- a/Tiobon.Core.Services/Ghre/Ghre_ExamRecordServices.cs +++ b/Tiobon.Core.Services/Ghre/Ghre_ExamRecordServices.cs @@ -40,7 +40,7 @@ public class Ghre_ExamRecordServices : BaseServices