Files
shgx_tz_mes_backend_sync/ZR.Admin.WebApi/Controllers/mes/wms/WMlocationInfoController.cs

49 lines
1.4 KiB
C#
Raw Normal View History

2024-06-07 11:04:26 +08:00
using Microsoft.AspNetCore.Mvc;
2024-03-12 17:41:03 +08:00
using ZR.Model.MES.wms;
using ZR.Service.mes.wms.IService;
namespace ZR.Admin.WebApi.Controllers.mes.wms
{
2024-03-27 14:36:58 +08:00
/// <summary>
/// 库位信息
/// </summary>
2024-03-13 11:34:36 +08:00
2024-03-12 17:41:03 +08:00
[Route("/mes/wm/storagelocation")]
public class WMlocationInfoController : BaseController
{
2024-03-13 17:30:57 +08:00
private readonly IWMlocationInfoService wm_locationInfoService;
2024-03-12 17:41:03 +08:00
public WMlocationInfoController(IWMlocationInfoService wm_locationInfoService)
{
this.wm_locationInfoService = wm_locationInfoService;
}
/// <summary>
/// 查询仓库库位信息
/// </summary>
/// <returns></returns>
[HttpGet("production_warehouse_info")]
2024-06-07 11:04:26 +08:00
public IActionResult Queryproduction_warehouse_info(string shelf, int? layer, int pageNum = 0, int pageSize = 0)
2024-03-12 17:41:03 +08:00
{
2024-06-07 11:04:26 +08:00
(List<WmInfo>, int) data = wm_locationInfoService.Getwminfo_product(shelf, layer ?? 0, pageNum, pageSize);
2024-03-12 17:41:03 +08:00
return ToResponse(new ApiResult(200, "success", data));
}
2024-03-13 17:30:57 +08:00
/// <summary>
/// 获取库位信息
/// </summary>
[HttpGet("get_location_info")]
public IActionResult Querylocationinfo(int warehouse_num, string locationcode = "")
{
2024-06-07 11:04:26 +08:00
WmInfo wmInfo = wm_locationInfoService.Getlocationinfo(warehouse_num, locationcode);
2024-03-13 17:30:57 +08:00
return ToResponse(new ApiResult(200, "success", wmInfo));
}
2024-03-12 17:41:03 +08:00
}
2024-06-07 11:04:26 +08:00
2024-03-12 17:41:03 +08:00
}