仓库-批量查询库存功能新建文件,暂未实现
This commit is contained in:
@@ -0,0 +1,59 @@
|
||||
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.Model.MES.wms.Dto;
|
||||
using ZR.Service.mes.wms.IService;
|
||||
using ZR.Model.MES.wms;
|
||||
|
||||
//创建时间:2024-04-26
|
||||
namespace ZR.Admin.WebApi.Controllers
|
||||
{
|
||||
/// <summary>
|
||||
/// 仓库批量查询综合接口
|
||||
/// </summary>
|
||||
// [Verify]
|
||||
[Route("/mes/wm/WmGoodsBatchSearch")]
|
||||
public class WmGoodsBatchSearchController : BaseController
|
||||
{
|
||||
/// <summary>
|
||||
/// 仓库操作
|
||||
/// </summary>
|
||||
private readonly IWmGoodsBatchSearchService _wmGoodsBatchSearchService;
|
||||
|
||||
public WmGoodsBatchSearchController(IWmGoodsBatchSearchService wmGoodsBatchSearchService)
|
||||
{
|
||||
_wmGoodsBatchSearchService = wmGoodsBatchSearchService;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 根据查询条件聚合批量查询出库数据,并生成树列表数据
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[HttpPost("getBatchOutRecordTreeTableData")]
|
||||
[Log(Title = "根据查询条件聚合批量查询出库数据,并生成树列表数据", BusinessType = BusinessType.QUERY)]
|
||||
public IActionResult GetBatchOutRecordTreeTableData([FromBody] WmGoodsBatchSearchDto parm)
|
||||
{
|
||||
if (parm is null)
|
||||
{
|
||||
throw new ArgumentNullException(nameof(parm));
|
||||
}
|
||||
List<WmGoodsBatchTableDto> result = null;
|
||||
// 父组件
|
||||
if (parm.Model == 1 && parm.Type == 1)
|
||||
{
|
||||
result = _wmGoodsBatchSearchService.GetBatchOutRecordByPackageCodeShort(parm);
|
||||
}
|
||||
else if (parm.Model == 1 && parm.Type == 2)
|
||||
{
|
||||
result = _wmGoodsBatchSearchService.GetBatchOutRecordTreeLazyByPackageCodeShort(parm);
|
||||
}
|
||||
if (result is null)
|
||||
{
|
||||
return ToResponse(new ApiResult(500, "数据获取异常", result));
|
||||
}
|
||||
return ToResponse(new ApiResult(200, "ok", result));
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user