Compare commits
2 Commits
0cce7c6527
...
7989dbd0f6
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
7989dbd0f6 | ||
|
|
ce9729c176 |
@ -499,7 +499,7 @@ namespace APT.SK.WebApi.Controllers.Api
|
||||
var dataTables = FileUtils.ReadExcelByOledb(filePath, startRowIndexs);
|
||||
string Msg = string.Empty;
|
||||
|
||||
bool isOK = InsertModel2(dataTables.Tables[0], orgId, ref Msg);
|
||||
bool isOK = InsertModel5(dataTables.Tables[0], orgId, ref Msg);
|
||||
|
||||
try
|
||||
{
|
||||
@ -1872,6 +1872,12 @@ namespace APT.SK.WebApi.Controllers.Api
|
||||
}
|
||||
}
|
||||
}
|
||||
if (!string.IsNullOrEmpty(Msg))
|
||||
{
|
||||
throw new Exception(Msg);
|
||||
}
|
||||
else
|
||||
{
|
||||
UnifiedCommit(() =>
|
||||
{
|
||||
if (setLists != null && setLists.Any())
|
||||
@ -1882,6 +1888,7 @@ namespace APT.SK.WebApi.Controllers.Api
|
||||
BantchAddEntityNoCommit(setUserLists);
|
||||
});
|
||||
Msg = "导入成功!";
|
||||
}
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user