修改服务项目保存

master
jianghaiqing 8 months ago
parent 555d8c1b18
commit 5e60661478

@ -423,19 +423,22 @@ namespace Myshipping.Application
await _serviceWorkFlowActivitiesSubRelationRepository.InsertAsync(wfRelationActivitiesSub);
sub.StatusTriggerList.ForEach(async trg =>
if (sub != null && sub.StatusTriggerList != null && sub.StatusTriggerList.Count > 0)
{
var triggerRela = new ServiceWorkFlowActivitiesTriggerRelation
sub.StatusTriggerList.ForEach(async trg =>
{
PK_ID = IDGen.NextID().ToString(),
SERVICE_WORKFLOW_ID = entity.PK_ID,
SERVICE_ACTIVITIES_ID = sub.PKId,
STATUS_TRIGGER_ID = trg.PKId,
WF_VERSION = currVersion
};
var triggerRela = new ServiceWorkFlowActivitiesTriggerRelation
{
PK_ID = IDGen.NextID().ToString(),
SERVICE_WORKFLOW_ID = entity.PK_ID,
SERVICE_ACTIVITIES_ID = sub.PKId,
STATUS_TRIGGER_ID = trg.PKId,
WF_VERSION = currVersion
};
await _serviceWorkFlowActivitiesTriggerRelationRepository.InsertAsync(triggerRela);
});
await _serviceWorkFlowActivitiesTriggerRelationRepository.InsertAsync(triggerRela);
});
}
});
}

Loading…
Cancel
Save