调整坤村详情controller
This commit is contained in:
@@ -39,7 +39,6 @@ namespace DOAN.Admin.WebApi.Controllers.BZFM
|
|||||||
return SUCCESS(response);
|
return SUCCESS(response);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 查询库存表详情
|
/// 查询库存表详情
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@@ -50,7 +49,7 @@ namespace DOAN.Admin.WebApi.Controllers.BZFM
|
|||||||
public IActionResult GetMmInventory(int Id)
|
public IActionResult GetMmInventory(int Id)
|
||||||
{
|
{
|
||||||
var response = _MmInventoryService.GetInfo(Id);
|
var response = _MmInventoryService.GetInfo(Id);
|
||||||
|
|
||||||
var info = response.Adapt<MmInventoryDto>();
|
var info = response.Adapt<MmInventoryDto>();
|
||||||
return SUCCESS(info);
|
return SUCCESS(info);
|
||||||
}
|
}
|
||||||
@@ -93,7 +92,7 @@ namespace DOAN.Admin.WebApi.Controllers.BZFM
|
|||||||
[HttpPost("delete/{ids}")]
|
[HttpPost("delete/{ids}")]
|
||||||
[ActionPermissionFilter(Permission = "mminventory:delete")]
|
[ActionPermissionFilter(Permission = "mminventory:delete")]
|
||||||
[Log(Title = "删除库存", BusinessType = BusinessType.DELETE)]
|
[Log(Title = "删除库存", BusinessType = BusinessType.DELETE)]
|
||||||
public IActionResult DeleteMmInventory([FromRoute]string ids)
|
public IActionResult DeleteMmInventory([FromRoute] string ids)
|
||||||
{
|
{
|
||||||
var idArr = Tools.SplitAndConvert<int>(ids);
|
var idArr = Tools.SplitAndConvert<int>(ids);
|
||||||
|
|
||||||
@@ -111,6 +110,7 @@ namespace DOAN.Admin.WebApi.Controllers.BZFM
|
|||||||
|
|
||||||
return SUCCESS(response);
|
return SUCCESS(response);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 获取库位下拉数据
|
/// 获取库位下拉数据
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@@ -122,6 +122,7 @@ namespace DOAN.Admin.WebApi.Controllers.BZFM
|
|||||||
|
|
||||||
return SUCCESS(response);
|
return SUCCESS(response);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 获取出/入库操作类型下拉数据
|
/// 获取出/入库操作类型下拉数据
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@@ -146,7 +147,7 @@ namespace DOAN.Admin.WebApi.Controllers.BZFM
|
|||||||
try
|
try
|
||||||
{
|
{
|
||||||
string response = _MmInventoryService.CreateInboundReceipt(parm);
|
string response = _MmInventoryService.CreateInboundReceipt(parm);
|
||||||
if(response == "ok")
|
if (response == "ok")
|
||||||
{
|
{
|
||||||
return ToResponse(new ApiResult(200, "ok"));
|
return ToResponse(new ApiResult(200, "ok"));
|
||||||
}
|
}
|
||||||
@@ -157,10 +158,8 @@ namespace DOAN.Admin.WebApi.Controllers.BZFM
|
|||||||
}
|
}
|
||||||
catch (Exception)
|
catch (Exception)
|
||||||
{
|
{
|
||||||
|
|
||||||
throw;
|
throw;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@@ -186,10 +185,8 @@ namespace DOAN.Admin.WebApi.Controllers.BZFM
|
|||||||
}
|
}
|
||||||
catch (Exception)
|
catch (Exception)
|
||||||
{
|
{
|
||||||
|
|
||||||
throw;
|
throw;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@@ -198,7 +195,12 @@ namespace DOAN.Admin.WebApi.Controllers.BZFM
|
|||||||
/// <param name="formFile">使用IFromFile必须使用name属性否则获取不到文件</param>
|
/// <param name="formFile">使用IFromFile必须使用name属性否则获取不到文件</param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
[HttpPost("importData")]
|
[HttpPost("importData")]
|
||||||
[Log(Title = "库存管理导入", BusinessType = BusinessType.IMPORT, IsSaveRequestData = false, IsSaveResponseData = true)]
|
[Log(
|
||||||
|
Title = "库存管理导入",
|
||||||
|
BusinessType = BusinessType.IMPORT,
|
||||||
|
IsSaveRequestData = false,
|
||||||
|
IsSaveResponseData = true
|
||||||
|
)]
|
||||||
[ActionPermissionFilter(Permission = "mminventory:import")]
|
[ActionPermissionFilter(Permission = "mminventory:import")]
|
||||||
public IActionResult ImportData([FromForm(Name = "file")] IFormFile formFile)
|
public IActionResult ImportData([FromForm(Name = "file")] IFormFile formFile)
|
||||||
{
|
{
|
||||||
@@ -207,7 +209,10 @@ namespace DOAN.Admin.WebApi.Controllers.BZFM
|
|||||||
{
|
{
|
||||||
return SUCCESS(null);
|
return SUCCESS(null);
|
||||||
}
|
}
|
||||||
ImportResultDto response = _MmInventoryService.ImportInventory(formFile, HttpContext.GetName());
|
ImportResultDto response = _MmInventoryService.ImportInventory(
|
||||||
|
formFile,
|
||||||
|
HttpContext.GetName()
|
||||||
|
);
|
||||||
|
|
||||||
return SUCCESS(response);
|
return SUCCESS(response);
|
||||||
}
|
}
|
||||||
@@ -250,11 +255,11 @@ namespace DOAN.Admin.WebApi.Controllers.BZFM
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
[HttpPost("GetInOrOutRecord")]
|
[HttpPost("GetInOrOutRecord")]
|
||||||
public IActionResult GetInOrOutRecord(MmInventoryRecordQueryDto parm)
|
public IActionResult GetInOrOutRecord([FromBody] MmInventoryRecordQueryDto parm)
|
||||||
{
|
{
|
||||||
var response = _MmInventoryService.GetInOrOutRecord(parm);
|
var response = _MmInventoryService.GetInOrOutRecord(parm);
|
||||||
|
|
||||||
return SUCCESS(response);
|
return SUCCESS(response);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user