This commit is contained in:
2026-08-18 16:46:56 +08:00
parent 759ea24211
commit 7ba504dfea
5 changed files with 148 additions and 5 deletions
@@ -320,5 +320,38 @@ namespace WebAPI.Controllers
}
return respone;
}
[HttpGet]
public Model.ResponeData getUsingPlanByUnitStoreCodeAndWelderCode(string unitStoreCode, string welderCode)
{
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);
var welder = db.HJGL_BS_Welder.FirstOrDefault(x => x.WED_Code == welderCode);
if (unitStore == null)
{
respone.code = 0;
respone.message = "对应编码的仓库不存在!";
return respone;
}
if (welder == null)
{
respone.code = 0;
respone.message = "对应焊工号的焊工不存在!";
return respone;
}
return APIWeldServices.getUsingPlanByUnitStoreCodeAndWelderCode(unitStore.UnitStoreId, welder.WED_ID);
}
}
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 />