From b698a2085fd090e90abedb1e91266ec496574b29 Mon Sep 17 00:00:00 2001
From: wanshenmean <cathay_xy@163.com>
Date: 星期四, 16 四月 2026 23:31:35 +0800
Subject: [PATCH] 1
---
Code/WMS/WIDESEA_WMSServer/WIDESEA_WMSServer/Controllers/Stock/StockController.cs | 38 ++++++++++++++++++++++++++++++--------
1 files changed, 30 insertions(+), 8 deletions(-)
diff --git a/Code/WMS/WIDESEA_WMSServer/WIDESEA_WMSServer/Controllers/Stock/StockController.cs b/Code/WMS/WIDESEA_WMSServer/WIDESEA_WMSServer/Controllers/Stock/StockController.cs
index b5f60ef..2076b82 100644
--- a/Code/WMS/WIDESEA_WMSServer/WIDESEA_WMSServer/Controllers/Stock/StockController.cs
+++ b/Code/WMS/WIDESEA_WMSServer/WIDESEA_WMSServer/Controllers/Stock/StockController.cs
@@ -26,9 +26,9 @@
/// <param name="stock"></param>
/// <returns></returns>
[HttpGet,HttpPost,Route("GroupPalletAsync"), AllowAnonymous]
- public async Task<bool> GroupPallet([FromBody]StockDTO stock)
+ public async Task<WebResponseContent> GroupPallet([FromBody]StockDTO stock)
{
- return await Service.GroupPallet(stock);
+ return await Service.GroupPalletAsync(stock);
}
/// <summary>
@@ -37,9 +37,9 @@
/// <param name="stock"></param>
/// <returns></returns>
[HttpGet, HttpPost, Route("ChangePalletAsync"),AllowAnonymous]
- public async Task<bool> ChangePallet([FromBody] StockDTO stock)
+ public async Task<WebResponseContent> ChangePalletAsync([FromBody] StockDTO stock)
{
- return await Service.ChangePallet(stock);
+ return await Service.ChangePalletAsync(stock);
}
/// <summary>
@@ -48,9 +48,9 @@
/// <param name="stock"></param>
/// <returns></returns>
[HttpGet, HttpPost, Route("SplitPalletAsync"), AllowAnonymous]
- public async Task<bool> SplitPallet([FromBody] StockDTO stock)
+ public async Task<WebResponseContent> SplitPalletAsync([FromBody] StockDTO stock)
{
- return await Service.SplitPallet(stock);
+ return await Service.SplitPalletAsync(stock);
}
/// <summary>
@@ -59,9 +59,31 @@
/// <param name="stock"></param>
/// <returns></returns>
[HttpGet, HttpPost, Route("UpdateStockInfoAsync"), AllowAnonymous]
- public async Task<bool> UpdateStockInfo([FromBody] StockInfoDTO stock)
+ public async Task<WebResponseContent> UpdateStockInfoAsync([FromBody] StockInfoDTO stock)
{
- return await Service.UpdateStockInfo(stock);
+ return await Service.UpdateStockInfoAsync(stock);
+ }
+
+ /// <summary>
+ /// 鎵归噺鎷嗙洏纭 - WCS鎷嗙洏浠诲姟鍏ㄩ儴鍙栧畬鏃惰皟鐢�
+ /// </summary>
+ /// <param name="dto">鎷嗙洏纭璇锋眰</param>
+ /// <returns>鎿嶄綔缁撴灉</returns>
+ [HttpPost("SplitPalletConfirm"), AllowAnonymous]
+ public async Task<WebResponseContent> SplitPalletConfirm([FromBody] SplitPalletConfirmRequestDto dto)
+ {
+ return await Service.SplitPalletConfirmAsync(dto.PalletCode);
+ }
+
+ /// <summary>
+ /// 鎵归噺缁勭洏纭 - WCS缁勭洏浠诲姟鍏ㄩ儴鏀惧畬鏃惰皟鐢�
+ /// </summary>
+ /// <param name="dto">缁勭洏纭璇锋眰</param>
+ /// <returns>鎿嶄綔缁撴灉</returns>
+ [HttpPost("GroupPalletConfirm"), AllowAnonymous]
+ public async Task<WebResponseContent> GroupPalletConfirm([FromBody] GroupPalletConfirmRequestDto dto)
+ {
+ return await Service.GroupPalletConfirmAsync(dto.PalletCode);
}
}
}
--
Gitblit v1.9.3