Compare commits

..

2 Commits

Author SHA1 Message Date
何美荣
7989dbd0f6 Merge branch 'master' of http://121.41.2.71:3000/wyw/mh_jy_safe 2025-11-23 22:02:48 +08:00
何美荣
ce9729c176 检查清单导入 2025-11-23 22:02:43 +08:00

View File

@ -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,16 +1872,23 @@ namespace APT.SK.WebApi.Controllers.Api
}
}
}
UnifiedCommit(() =>
if (!string.IsNullOrEmpty(Msg))
{
throw new Exception(Msg);
}
else
{
if (setLists != null && setLists.Any())
BantchAddEntityNoCommit(setLists);
if (setContentLists != null && setContentLists.Any())
BantchAddEntityNoCommit(setContentLists);
if (setUserLists != null && setUserLists.Any())
BantchAddEntityNoCommit(setUserLists);
});
Msg = "导入成功!";
UnifiedCommit(() =>
{
if (setLists != null && setLists.Any())
BantchAddEntityNoCommit(setLists);
if (setContentLists != null && setContentLists.Any())
BantchAddEntityNoCommit(setContentLists);
if (setUserLists != null && setUserLists.Any())
BantchAddEntityNoCommit(setUserLists);
});
Msg = "导入成功!";
}
return true;
}
}