首检添加数据看板
This commit is contained in:
@@ -1,11 +1,9 @@
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using ZR.Model.Dto;
|
||||
using ZR.Service.Business.IBusinessService;
|
||||
using ZR.Admin.WebApi.Extensions;
|
||||
using ZR.Admin.WebApi.Filters;
|
||||
using ZR.Service.mes.wms.IService;
|
||||
using ZR.Model.MES.wms.Dto;
|
||||
using ZR.Model.MES.wms;
|
||||
using ZR.Model.MES.wms.Dto;
|
||||
using ZR.Service.mes.wms.IService;
|
||||
|
||||
//创建时间:2024-05-13
|
||||
namespace ZR.Admin.WebApi.Controllers
|
||||
@@ -51,7 +49,7 @@ namespace ZR.Admin.WebApi.Controllers
|
||||
public IActionResult GetWmBlankRecord(string Id)
|
||||
{
|
||||
var response = _WmBlankRecordService.GetInfo(Id);
|
||||
|
||||
|
||||
var info = response.Adapt<WmBlankRecord>();
|
||||
return SUCCESS(info);
|
||||
}
|
||||
@@ -81,7 +79,7 @@ namespace ZR.Admin.WebApi.Controllers
|
||||
/// <param name="remark">备注</param>
|
||||
/// <returns></returns>
|
||||
[HttpGet("add_inventory")]
|
||||
public IActionResult AddInventory(string fkBlankInventoryId, string blankNum, int changeQuantity,string remark)
|
||||
public IActionResult AddInventory(string fkBlankInventoryId, string blankNum, int changeQuantity, string remark)
|
||||
{
|
||||
try
|
||||
{
|
||||
@@ -93,14 +91,14 @@ namespace ZR.Admin.WebApi.Controllers
|
||||
{
|
||||
return ToResponse(new ApiResult(500, "毛坯号为空!", "毛坯号为空!"));
|
||||
}
|
||||
var response = _WmBlankRecordService.AddInventory(fkBlankInventoryId, blankNum, changeQuantity, HttpContext.GetName(),remark);
|
||||
var response = _WmBlankRecordService.AddInventory(fkBlankInventoryId, blankNum, changeQuantity, HttpContext.GetName(), remark);
|
||||
return SUCCESS(response);
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
return ToResponse(new ApiResult(500, ex.Message, "添加记录失败"));
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -131,7 +129,7 @@ namespace ZR.Admin.WebApi.Controllers
|
||||
{
|
||||
return ToResponse(new ApiResult(500, ex.Message, "添加记录失败"));
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
/// <summary>
|
||||
|
||||
Reference in New Issue
Block a user