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

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
  3. 2
      Tiobon.Core.Services/Ghre/Ghre_ExamRecordServices.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;

@ -40,7 +40,7 @@ public class Ghre_ExamRecordServices : BaseServices<Ghre_ExamRecord, Ghre_ExamRe
FROM Ghre_ExamRecord_V"; FROM Ghre_ExamRecord_V";
string conditions = " WHERE IsEnable = 1"; string conditions = " WHERE IsEnable = 1";
conditions += $"AND dbo.FUserDataBelongPriv ({App.User.ID}, A.DataBelongID, NULL) = 1"; conditions += $" AND dbo.FUserDataBelongPriv ({App.User.ID}, A.DataBelongID, NULL) = 1";
if (!string.IsNullOrEmpty(condition)) conditions += " AND " + condition; if (!string.IsNullOrEmpty(condition)) conditions += " AND " + condition;
if (filter.jsonParam != null) if (filter.jsonParam != null)

Loading…
Cancel
Save