From e5316b19ae5f33d29d6e9410e894caed30eebf29 Mon Sep 17 00:00:00 2001
From: wankeda <Administrator@DESKTOP-HAU3ST3>
Date: 星期二, 18 二月 2025 09:11:51 +0800
Subject: [PATCH] PP仓输送线,堆垛机交互
---
代码管理/WMS/WIDESEA_WMSServer/WIDESEA_WMSServer/Controllers/ERP/ErpController.cs | 34 +++++++++++++++++++++++++++++++++-
1 files changed, 33 insertions(+), 1 deletions(-)
diff --git "a/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSServer/WIDESEA_WMSServer/Controllers/ERP/ErpController.cs" "b/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSServer/WIDESEA_WMSServer/Controllers/ERP/ErpController.cs"
index 405fe83..9abaca5 100644
--- "a/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSServer/WIDESEA_WMSServer/Controllers/ERP/ErpController.cs"
+++ "b/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSServer/WIDESEA_WMSServer/Controllers/ERP/ErpController.cs"
@@ -35,14 +35,16 @@
private readonly IOutboundService _outboundService;
private readonly IInboundService _inboundService;
private readonly IInvokeERPService _invokeERPService;
+ private readonly IReturnOrderService _returnOrderService;
public ErpController(IBasicService basicService, IOutboundService outboundService, IInboundService inboundService,
- IInvokeERPService invokeERPService)
+ IInvokeERPService invokeERPService, IReturnOrderService returnOrderService)
{
_basicService = basicService;
_outboundService = outboundService;
_inboundService = inboundService;
_invokeERPService = invokeERPService;
+ _returnOrderService = returnOrderService;
}
/// <summary>
@@ -122,6 +124,28 @@
if (content.Status) return Instance.OK();
else return Instance.Error(content.Message);
}
+
+ /// <summary>
+ /// 鎺ユ敹ERP閫�鏂欏崟淇℃伅
+ /// </summary>
+ [HttpPost, Route("ReturnOrder"), AllowAnonymous, MethodParamsValidate]
+ public ErpResponseContent ReturnOrder([FromBody] Root<ErpReturnOrderDTO> model)
+ {
+ WebResponseContent content = _returnOrderService.ReturnOrder(model.Content);
+ if (content.Status) return Instance.OK();
+ else return Instance.Error(content.Message);
+ }
+ /// <summary>
+ /// 鍏朵粬鍏ュ簱鍗曟帴鏀�(璋冩嫈鍏ヤ粨,瀹緵鍥炴敹,鐗╂枡閿�鍞��璐�)
+ /// </summary>
+ /// <returns></returns>
+ [HttpPost, Route("ReceiveWarehousingOrder"), AllowAnonymous, MethodParamsValidate]
+ public ErpResponseContent ReceiveWarehousingOrder([FromBody] Root<ErpInOrderDTO> model)
+ {
+ WebResponseContent content = _inboundService.InbounOrderService.ReceiveWarehousingOrder(model.Content);
+ if (content.Status) return Instance.OK();
+ else return Instance.Error(content.Message);
+ }
/// <summary>
/// 鎺ㄩ�丒RP鍑哄簱
/// </summary>
@@ -149,5 +173,13 @@
{
return _invokeERPService.InvokeInboundOrderApi(inboundModel);
}
+ /// <summary>
+ /// 鎺ㄩ�丒RP閫�鏂欎笂鎶�
+ /// </summary>
+ [HttpPost, Route("InvokeReturnApi"), AllowAnonymous]
+ public string InvokeReturnApi([FromBody] ERPReturnModel returnModel)
+ {
+ return _invokeERPService.InvokeReturnApi(returnModel);
+ }
}
}
--
Gitblit v1.9.3