修复bug

This commit is contained in:
18942506660
2024-10-16 11:41:53 +08:00
parent dfa59fc3bc
commit 04c758d6d7
2 changed files with 2 additions and 2 deletions

View File

@@ -82,7 +82,7 @@ namespace WMS.Web.Api.Controllers
/// <returns></returns>
[HttpPost]
[Route("Export")]
public Task<Result<string>> Export([FromBody] OutStockQueryRequest dto)
public Task<Result<string>> Export([FromBody] ProductInventoryQueryRequest dto)
{
var loginInfo = _loginService.GetLoginInfo(this.HttpContext.Request.Headers["Authorization"]);
if (loginInfo == null)
@@ -92,7 +92,7 @@ namespace WMS.Web.Api.Controllers
Task.Run(async () =>
{
await _exportExcelService.ExportList<OutStockQueryInfoResponse, OutStockQueryRequest>(dto, fileName, loginInfo.UserInfo.StaffId, loginInfo.UserInfo.CompanyId, FileDownLoadOrderType.OutStock);
await _exportExcelService.ExportList<ProductInventoryQueryResponse, ProductInventoryQueryRequest>(dto, fileName, loginInfo.UserInfo.StaffId, loginInfo.UserInfo.CompanyId, FileDownLoadOrderType.ProductInventory);
});
return Task.FromResult(Result<string>.ReSuccess(res));