增加访视触发事件
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
parent
ea67a69351
commit
2d1785f513
|
@ -0,0 +1,13 @@
|
||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Text;
|
||||||
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
|
namespace IRaCIS.Core.Domain._DomainEvent
|
||||||
|
{
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
|
@ -62,6 +62,17 @@ public static class DBContext_Ext
|
||||||
|
|
||||||
foreach (var entry in changeTracker.Entries<SubjectVisit>())
|
foreach (var entry in changeTracker.Entries<SubjectVisit>())
|
||||||
{
|
{
|
||||||
|
var subjectVisit = entry.Entity;
|
||||||
|
|
||||||
|
//跟踪的方式查询 不会查询数据库多次
|
||||||
|
var findTrial = dbContext.Trial.Find(subjectVisit.TrialId);
|
||||||
|
|
||||||
|
//入组或者PD 才执行下面的逻辑
|
||||||
|
if (findTrial != null && findTrial.IsEnrollementQualificationConfirm && findTrial.IsPDProgressView)
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -70,7 +81,7 @@ public static class DBContext_Ext
|
||||||
|
|
||||||
|
|
||||||
//跟随事务一起保存数据库
|
//跟随事务一起保存数据库
|
||||||
dbContext.EventStoreRecord.AddRangeAsync(eventStoreList);
|
dbContext.EventStoreRecord.AddRange(eventStoreList);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue