From a29a1fd470493f1c0e251bc69df550665cb02078 Mon Sep 17 00:00:00 2001
From: dengjunjie <dengjunjie@hnkhzn.com>
Date: 星期二, 21 四月 2026 11:28:34 +0800
Subject: [PATCH] 1
---
代码管理/WCS/WIDESEAWCS_Server/WIDESEAWCS_TaskInfoService/TaskService.cs | 19 +++++++++++++++++--
1 files changed, 17 insertions(+), 2 deletions(-)
diff --git "a/\344\273\243\347\240\201\347\256\241\347\220\206/WCS/WIDESEAWCS_Server/WIDESEAWCS_TaskInfoService/TaskService.cs" "b/\344\273\243\347\240\201\347\256\241\347\220\206/WCS/WIDESEAWCS_Server/WIDESEAWCS_TaskInfoService/TaskService.cs"
index b039aac..8ae2576 100644
--- "a/\344\273\243\347\240\201\347\256\241\347\220\206/WCS/WIDESEAWCS_Server/WIDESEAWCS_TaskInfoService/TaskService.cs"
+++ "b/\344\273\243\347\240\201\347\256\241\347\220\206/WCS/WIDESEAWCS_Server/WIDESEAWCS_TaskInfoService/TaskService.cs"
@@ -1406,6 +1406,7 @@
{
stationManger.IsOccupied = LocationStatusEnum.Free.ObjToInt();
stationManger.Remark = "";
+ _stationMangerService.UpdateData(stationManger);
FOURBOToccupyStation fOURBOToccupyStation = new FOURBOToccupyStation()
{
stationCode = wMSContainerFlow.slotCode,
@@ -1414,7 +1415,6 @@
FOURBOTReturn fOURBOTReturn = response.DeserializeObject<FOURBOTReturn>();
content.OK(data: fOURBOTReturn);
if (fOURBOTReturn.returnCode != 0) throw new Exception(fOURBOTReturn.returnUserMsg);
- _stationMangerService.UpdateData(stationManger);
}
return content.OK();
}
@@ -1425,6 +1425,21 @@
finally
{
_trackloginfoService.AddTrackLog(wMSContainerFlow, content, "瀹瑰櫒娴佸姩璇锋眰", "", "");
+ }
+ }
+ public WebResponseContent UpStationType(UpStationTypeDTO stationTypeDTO)
+ {
+ try
+ {
+ if (stationTypeDTO.stationType < 1 || stationTypeDTO.stationType > 3) throw new Exception($"鏈畾涔夌殑绔欏彴绫诲瀷銆恵stationTypeDTO.stationType}銆戯紒1鍏ュ簱绔欏彴锛�2鍑哄簱绔欏彴锛�3鍑哄叆搴撶珯鍙�");
+ Dt_StationManger stationManger = _stationMangerService.Repository.QueryFirst(x => x.StationCode == stationTypeDTO.stationCode) ?? throw new Exception($"鏈壘鍒扮珯鍙扮紪鍙枫�恵stationTypeDTO.stationCode}銆戜俊鎭�");
+ stationManger.StationType = stationTypeDTO.stationType;
+ _stationMangerService.Repository.UpdateData(stationManger);
+ return WebResponseContent.Instance.OK();
+ }
+ catch (Exception ex)
+ {
+ return WebResponseContent.Instance.Error(ex.Message);
}
}
/// <summary>
@@ -1889,7 +1904,7 @@
WMSReturn wMSReturn = response.DeserializeObject<WMSReturn>();
if (wMSReturn == null) throw new Exception("WMS杩斿洖缁撴灉杞崲澶辫触锛�");
if (!wMSReturn.success) throw new Exception(wMSReturn.message);
- return content.OK();
+ return content.OK();
}
catch (Exception ex)
{
--
Gitblit v1.9.3