From 45490d814b84159f269813e6cff3c79fab6e170b Mon Sep 17 00:00:00 2001 From: chengsc <Demo@DESKTOP-CPA90BF> Date: 星期日, 21 七月 2024 09:59:27 +0800 Subject: [PATCH] 添加上架任务记录 --- Wms/Wms/Controllers/BllAsnController.cs | 23 ++++++++++++++++++++++- 1 files changed, 22 insertions(+), 1 deletions(-) diff --git a/Wms/Wms/Controllers/BllAsnController.cs b/Wms/Wms/Controllers/BllAsnController.cs index d92a29a..020add9 100644 --- a/Wms/Wms/Controllers/BllAsnController.cs +++ b/Wms/Wms/Controllers/BllAsnController.cs @@ -14,12 +14,15 @@ using System.Threading.Tasks; using SqlSugar; using System.Diagnostics; +using Model.ModelDto.SysDto; +using static System.Reflection.Metadata.BlobBuilder; namespace Wms.Controllers { [Route("api/[controller]/[action]")] [ApiController] [Authorize] + [ServiceFilter(typeof(ApiResponseActionFilter))] public class BllAsnController : ControllerBase { @@ -33,10 +36,11 @@ private readonly IAuditLogServer _auditLog; // 瀹℃牳璁板綍 private readonly IBllLabelBoxNoServer _labelBox; // 绠辩爜鏍囩 private readonly IProcurePlanServer _procurePlanSvc; // 绠辩爜鏍囩 + private readonly IPalletUpShelfServer _palletUpShelfSvc; // 涓婃灦璁板綍 #endregion #region 鏋勯�犲嚱鏁� - public BllAsnController(IArrivalNoticeServer arrivalNoticeSvc, IPalletBindServer palletBindSvc, IBllBoxInfoServer bllBoxInfoSvc, ITaskServer taskSvc, IOperationASNServer logSvc, IPalletUnbindServer palletUnbind, IAuditLogServer auditLog, IBllLabelBoxNoServer labelBox, IProcurePlanServer procurePlanSvc) + public BllAsnController(IArrivalNoticeServer arrivalNoticeSvc, IPalletBindServer palletBindSvc, IBllBoxInfoServer bllBoxInfoSvc, ITaskServer taskSvc, IOperationASNServer logSvc, IPalletUnbindServer palletUnbind, IAuditLogServer auditLog, IBllLabelBoxNoServer labelBox, IProcurePlanServer procurePlanSvc, IPalletUpShelfServer palletUpShelfSvc) { _arrivalNoticeSvc = arrivalNoticeSvc; _PalletBindSvc = palletBindSvc; @@ -47,6 +51,7 @@ _auditLog = auditLog; _labelBox = labelBox; _procurePlanSvc = procurePlanSvc; + _palletUpShelfSvc = palletUpShelfSvc; } #endregion @@ -1257,6 +1262,22 @@ } } #endregion + + #region 涓婃灦浠诲姟璁板綍 + + /// <summary> + /// 鑾峰彇涓婃灦浠诲姟璁板綍淇℃伅鍒嗛〉闆嗗悎 + /// </summary> + /// <param name="model"></param> + /// <returns></returns> + [HttpPost] + public async Task<SqlSugarPagedList> GetPalletUpShelfList(PalletUpShelfVm model) + { + RefAsync<int> count = new RefAsync<int>(); + var data = await _palletUpShelfSvc.GetPalletUpShelfList(model.TraceNo, model.TaskNo,model.PalletNo,model.SkuNo,model.SkuName,model.LotNo,model.Status,model.Page,model.Limit, count); + return new SqlSugarPagedList() { Items = data, Total = count }; + } + #endregion } } -- Gitblit v1.8.0