This commit is contained in:
2026-08-25 14:23:19 +08:00
parent 4ea20f0077
commit 47d0ea2169
4 changed files with 93 additions and 12 deletions
@@ -379,5 +379,31 @@ namespace WebAPI.Controllers
}
return respone;
}
[HttpGet]
public Model.ResponeData saveMachineErrlog(string unitStoreCode, string errlog)
{
Model.ResponeData respone = new ResponeData();
try
{
using (Model.SGGLDB db = new Model.SGGLDB(BLL.Funs.ConnString))
{
var unitStore = db.Weld_UnitStore.FirstOrDefault(x => x.UnitStoreCode == unitStoreCode);
if (unitStore == null)
{
respone.code = 0;
respone.message = "对应编码的仓库不存在!";
return respone;
}
return APIWeldServices.saveMachineErrlog(unitStore.UnitStoreId, errlog);
}
}
catch (Exception e)
{
respone.code = 0;
respone.message = e.Message;
}
return respone;
}
}
}
+1 -1
View File
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<LastActiveSolutionConfig>Release|Any CPU</LastActiveSolutionConfig>
<LastActiveSolutionConfig>Debug|Any CPU</LastActiveSolutionConfig>
<NameOfLastUsedPublishProfile>FolderProfile</NameOfLastUsedPublishProfile>
<UseIISExpress>true</UseIISExpress>
<Use64BitIISExpress />