From daf541c51a7687b338e17b1543266bacee4ff2d3 Mon Sep 17 00:00:00 2001
From: duyongjia <adu_555@163.com>
Date: 星期四, 09 一月 2025 09:34:53 +0800
Subject: [PATCH] 同步上游系统job修改
---
项目代码/WMS/WIDESEA_WMSServer/WIDESEA_TaskInfoService/PartialTaskService_Inbound.cs | 28 +++++++++++++++++++++++++++-
1 files changed, 27 insertions(+), 1 deletions(-)
diff --git "a/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WIDESEA_WMSServer/WIDESEA_TaskInfoService/PartialTaskService_Inbound.cs" "b/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WIDESEA_WMSServer/WIDESEA_TaskInfoService/PartialTaskService_Inbound.cs"
index dfb74fb..2c2445f 100644
--- "a/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WIDESEA_WMSServer/WIDESEA_TaskInfoService/PartialTaskService_Inbound.cs"
+++ "b/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WIDESEA_WMSServer/WIDESEA_TaskInfoService/PartialTaskService_Inbound.cs"
@@ -89,6 +89,31 @@
return content;
}
+
+ /// <summary>
+ /// 鐗╂枡鍥炲簱
+ /// </summary>
+ /// <param name="stationCode">璧峰鍦板潃</param>
+ /// <param name="palletCode">鎵樼洏缂栧彿</param>
+ /// <returns>杩斿洖澶勭悊缁撴灉</returns>
+ public WebResponseContent ReturnInboundRequest(string stationCode, string palletCode)
+ {
+ WebResponseContent content = new WebResponseContent();
+ try
+ {
+ Dt_StockInfo stockInfo = _stockService.StockInfoService.Repository.GetStockInfo(palletCode);
+ (bool, string) result = CheckRequestInbound(stationCode, palletCode, true, stockInfo);
+ if (!result.Item1) return content = WebResponseContent.Instance.Error(result.Item2);
+ content = AssignLocUpdateData(stationCode, TaskTypeEnum.PalletReturnInbound.ObjToInt(), palletCode, true, stockInfo);
+ }
+ catch (Exception ex)
+ {
+ content = WebResponseContent.Instance.Error($"{ex.Message}");
+ }
+ return content;
+ }
+
+
/// <summary>
/// 鍏ュ簱鍒嗛厤璐т綅鍙婂鐞嗘暟鎹�
/// </summary>
@@ -105,7 +130,7 @@
try
{
_unitOfWorkManage.BeginTran();
- Dt_LocationInfo? locationInfo = _basicService.LocationInfoService.AssignLocation(stationCode, taskType);
+ Dt_LocationInfo? locationInfo = _basicService.LocationInfoService.AssignLocation(stationCode, taskType,palletCode);
if (locationInfo != null)
{
List<Dt_Task> tasks = new List<Dt_Task>();
@@ -121,6 +146,7 @@
TaskStatus = InTaskStatusEnum.InNew.ObjToInt(),
TaskType = taskType,
Depth= locationInfo.Depth,
+ Creater="System"
};
BaseDal.AddData(task);
int beforeStatus = locationInfo.LocationStatus;
--
Gitblit v1.9.3