【宝连通】外训申请新增培训心得上传附件字段

master
xiaochanghai 3 weeks ago
parent eed76b993a
commit cbc32c3fb4
  1. 1
      Tiobon.Core.Model/Base/Ghre/Ghre_ExternalTrainApplyOrder_Boltone.Dto.Base.cs
  2. 13
      Tiobon.Core.Services/CommonServices.cs

@ -332,6 +332,7 @@ public class Ghre_ExternalTrainApplyOrder_BoltoneBase
public string CourseName1 { get; set; } public string CourseName1 { get; set; }
public List<Ghre_Attachment1> ReflectionAttachments { get; set; } = new List<Ghre_Attachment1>();
public List<Ghre_Attachment1> ExternalAttachments { get; set; } = new List<Ghre_Attachment1>(); public List<Ghre_Attachment1> ExternalAttachments { get; set; } = new List<Ghre_Attachment1>();
public List<Ghre_Attachment1> ContractAttachments { get; set; } = new List<Ghre_Attachment1>(); public List<Ghre_Attachment1> ContractAttachments { get; set; } = new List<Ghre_Attachment1>();

@ -4385,6 +4385,19 @@ public partial class CommonServices : BaseServices<RootEntityTkey<int>>, ICommon
.Where(it => ids.Contains(it.Id)) .Where(it => ids.Contains(it.Id))
.ExecuteCommandAsync(); .ExecuteCommandAsync();
} }
if (dict1.ReflectionAttachments.Any())
{
var ids = dict1.ReflectionAttachments.Select(x => x.AttachmentID).ToList();
await Db.Updateable<Ghre_Attachment>()
.SetColumns(it => new Ghre_Attachment()
{
TableName = "Ghre_ExternalTrainApplyOrder_Boltone",
TableKeyID = id.ObjToInt(),
Reverse1 = "ReflectionAttachments"
})
.Where(it => ids.Contains(it.Id))
.ExecuteCommandAsync();
}
#endregion #endregion
break; break;

Loading…
Cancel
Save