This commit is contained in:
2026-08-19 15:45:02 +08:00
parent 0d475634c6
commit 7b3f5eb504
3 changed files with 114 additions and 2 deletions
@@ -353,5 +353,31 @@ namespace WebAPI.Controllers
}
return respone;
}
[HttpGet]
public Model.ResponeData saveUsingMat(string usingPlanId, string unitStoreCode, string amount)
{
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.saveUsingMat(usingPlanId, unitStore.UnitStoreId, amount);
}
}
catch (Exception e)
{
respone.code = 0;
respone.message = e.Message;
}
return respone;
}
}
}