From 41c5a191f9419bfa03e3ba0c18bb00d3172d6162 Mon Sep 17 00:00:00 2001
From: wxw <Administrator@DESKTOP-5BIMHQ3>
Date: 星期六, 14 十二月 2024 14:30:15 +0800
Subject: [PATCH] 修改问题
---
Wms/Wms/Controllers/UpApiController.cs | 52 +++-------------------------------------------------
1 files changed, 3 insertions(+), 49 deletions(-)
diff --git a/Wms/Wms/Controllers/UpApiController.cs b/Wms/Wms/Controllers/UpApiController.cs
index 371825e..448e85f 100644
--- a/Wms/Wms/Controllers/UpApiController.cs
+++ b/Wms/Wms/Controllers/UpApiController.cs
@@ -33,8 +33,9 @@
private readonly IStockCheckServer _stockCheckSvc;//鐩樼偣鍗昐vc
private readonly IProcurePlanServer _procurePlanSvc;//閲囪喘鍗昐vs
private readonly IRcsServer _rcsserver;//RCS鐩稿叧浠诲姟
+ private readonly INoticeServer _noticeSvc;//浜屾ゼ鍗曟嵁鐩稿叧
- public UpApiController(IOptions<ApiUrlConfig> setting,IExportNoticeServer exNoticeSvc,IArrivalNoticeServer arrivalNoticeServer,IStockCheckServer stockCheckSvc, IProcurePlanServer procurePlanSvc,IRcsServer rcsserver)
+ public UpApiController(IOptions<ApiUrlConfig> setting,IExportNoticeServer exNoticeSvc,IArrivalNoticeServer arrivalNoticeServer,IStockCheckServer stockCheckSvc, IProcurePlanServer procurePlanSvc,IRcsServer rcsserver, INoticeServer noticeSvc)
{
_config = setting.Value;
_exNoticeSvc = exNoticeSvc;
@@ -42,7 +43,7 @@
_stockCheckSvc = stockCheckSvc;
_procurePlanSvc = procurePlanSvc;
_rcsserver = rcsserver;
-
+ _noticeSvc = noticeSvc;
}
#endregion
@@ -402,53 +403,6 @@
return Ok(result);
}
}
-
- //RCS鍙《
- [HttpPost]
- public IActionResult GetPalletNo(Pallnetmsg pallmsg)
- {
- var result = new ErpModel { Success = -1, Message = "",};
- try
- {
- if (string.IsNullOrWhiteSpace(pallmsg.Location))
- {
- result.Message = "鍙枡浣嶇疆涓虹┖锛�";
- return Ok(result);
- }
- _rcsserver.GetPalletNo(pallmsg);
-
-
- result.Success = 0;
- result.Message = "鍙《鎴愬姛锛�";
- return Ok(result);
- }
- catch (Exception e)
- {
- result.Message = e.Message;
- return Ok(result);
- }
- }
-
- //RCS鐢宠鍌ㄤ綅
- [HttpPost]
- public IActionResult ApplyLocatNo(Pallnetmsg pallmsg)
- {
- var result = new ErpModel { Success = -1, Message = "" };
- try
- {
- _rcsserver.ApplyLocatNo(pallmsg);
- result.Success = 0;
- result.Message = "鐢宠鍌ㄤ綅鎴愬姛锛�";
- return Ok(result);
- }
- catch (Exception e)
- {
-
- result.Message = e.Message;
- return Ok(result);
- }
- }
-
//绠辩爜淇℃伅 鎵嬫寔缁勬墭鐢� (璧嬬爜鎴栬拷婧笅鍙戝埌wms)
//璐ㄦ缁撴灉涓嬪彂鎺ュ彛
--
Gitblit v1.8.0