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