This commit is contained in:
@@ -175,8 +175,16 @@ namespace AyaNova.Biz
|
|||||||
long importCount = 0;
|
long importCount = 0;
|
||||||
long notImportCount = 0;
|
long notImportCount = 0;
|
||||||
if (zipObjectList.Count > 0)
|
if (zipObjectList.Count > 0)
|
||||||
|
{
|
||||||
|
if (importTask != "main")
|
||||||
|
{
|
||||||
|
JobsBiz.LogJob(jobId, $"Starting import sub-task {importTask} of {entryStartsWith} objects", ct);
|
||||||
|
}
|
||||||
|
else
|
||||||
{
|
{
|
||||||
JobsBiz.LogJob(jobId, $"Starting import of {entryStartsWith} objects", ct);
|
JobsBiz.LogJob(jobId, $"Starting import of {entryStartsWith} objects", ct);
|
||||||
|
}
|
||||||
|
|
||||||
var jList = FileUtil.ZipGetUtilityArchiveEntriesAsJsonObjects(zipObjectList, importFileName);
|
var jList = FileUtil.ZipGetUtilityArchiveEntriesAsJsonObjects(zipObjectList, importFileName);
|
||||||
|
|
||||||
IImportAyaNova7Object o = (IImportAyaNova7Object)BizObjectFactory.GetBizObject(importerType, ct);
|
IImportAyaNova7Object o = (IImportAyaNova7Object)BizObjectFactory.GetBizObject(importerType, ct);
|
||||||
@@ -197,16 +205,28 @@ namespace AyaNova.Biz
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (importCount > 0)
|
if (importCount > 0)
|
||||||
|
{
|
||||||
|
if (importTask != "main")
|
||||||
|
{
|
||||||
|
JobsBiz.LogJob(jobId, $"Successfully ran import subtask {importTask} on {importCount.ToString()} of {zipObjectList.Count.ToString()} {entryStartsWith} objects", ct);
|
||||||
|
}
|
||||||
|
else
|
||||||
{
|
{
|
||||||
JobsBiz.LogJob(jobId, $"Successfully imported {importCount.ToString()} of {zipObjectList.Count.ToString()} {entryStartsWith} objects", ct);
|
JobsBiz.LogJob(jobId, $"Successfully imported {importCount.ToString()} of {zipObjectList.Count.ToString()} {entryStartsWith} objects", ct);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (notImportCount > 0)
|
if (notImportCount > 0)
|
||||||
|
{
|
||||||
|
if (importTask != "main")
|
||||||
|
{
|
||||||
|
JobsBiz.LogJob(jobId, $"Failed to run import subtask {importTask} on {notImportCount.ToString()} of {zipObjectList.Count.ToString()} {entryStartsWith} objects", ct);
|
||||||
|
}
|
||||||
|
else
|
||||||
{
|
{
|
||||||
JobsBiz.LogJob(jobId, $"Did not import {notImportCount.ToString()} of {zipObjectList.Count.ToString()} {entryStartsWith} objects", ct);
|
JobsBiz.LogJob(jobId, $"Did not import {notImportCount.ToString()} of {zipObjectList.Count.ToString()} {entryStartsWith} objects", ct);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user