Compare commits
No commits in common. "7989dbd0f6aa05fdc16d777b9e0a602da93b14ac" and "0cce7c65274b83d263f895078daf7122864a855d" have entirely different histories.
7989dbd0f6
...
0cce7c6527
@ -499,7 +499,7 @@ namespace APT.SK.WebApi.Controllers.Api
|
|||||||
var dataTables = FileUtils.ReadExcelByOledb(filePath, startRowIndexs);
|
var dataTables = FileUtils.ReadExcelByOledb(filePath, startRowIndexs);
|
||||||
string Msg = string.Empty;
|
string Msg = string.Empty;
|
||||||
|
|
||||||
bool isOK = InsertModel5(dataTables.Tables[0], orgId, ref Msg);
|
bool isOK = InsertModel2(dataTables.Tables[0], orgId, ref Msg);
|
||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
@ -1872,23 +1872,16 @@ namespace APT.SK.WebApi.Controllers.Api
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (!string.IsNullOrEmpty(Msg))
|
UnifiedCommit(() =>
|
||||||
{
|
{
|
||||||
throw new Exception(Msg);
|
if (setLists != null && setLists.Any())
|
||||||
}
|
BantchAddEntityNoCommit(setLists);
|
||||||
else
|
if (setContentLists != null && setContentLists.Any())
|
||||||
{
|
BantchAddEntityNoCommit(setContentLists);
|
||||||
UnifiedCommit(() =>
|
if (setUserLists != null && setUserLists.Any())
|
||||||
{
|
BantchAddEntityNoCommit(setUserLists);
|
||||||
if (setLists != null && setLists.Any())
|
});
|
||||||
BantchAddEntityNoCommit(setLists);
|
Msg = "导入成功!";
|
||||||
if (setContentLists != null && setContentLists.Any())
|
|
||||||
BantchAddEntityNoCommit(setContentLists);
|
|
||||||
if (setUserLists != null && setUserLists.Any())
|
|
||||||
BantchAddEntityNoCommit(setUserLists);
|
|
||||||
});
|
|
||||||
Msg = "导入成功!";
|
|
||||||
}
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user