From 8d558cb173873004cd8a0d6c12f37865f03d7a4f Mon Sep 17 00:00:00 2001
From: huanghongfeng <huanghongfeng@hnkhzn.com>
Date: 星期三, 22 十月 2025 10:32:15 +0800
Subject: [PATCH] 1
---
代码管理/WCS/WCS/WIDESEAWCS_Server/WIDESEAWCS_SystemServices/AgvStationService.cs | 53 ++++++++++++++++++++++++++++++++++++++++++++++++++---
1 files changed, 50 insertions(+), 3 deletions(-)
diff --git "a/\344\273\243\347\240\201\347\256\241\347\220\206/WCS/WCS/WIDESEAWCS_Server/WIDESEAWCS_SystemServices/AgvStationService.cs" "b/\344\273\243\347\240\201\347\256\241\347\220\206/WCS/WCS/WIDESEAWCS_Server/WIDESEAWCS_SystemServices/AgvStationService.cs"
index cd334e5..53fbaed 100644
--- "a/\344\273\243\347\240\201\347\256\241\347\220\206/WCS/WCS/WIDESEAWCS_Server/WIDESEAWCS_SystemServices/AgvStationService.cs"
+++ "b/\344\273\243\347\240\201\347\256\241\347\220\206/WCS/WCS/WIDESEAWCS_Server/WIDESEAWCS_SystemServices/AgvStationService.cs"
@@ -92,17 +92,64 @@
/// <returns></returns>
public AGVStation GetZicheDeep(int HCJAddres)
{
- return BaseDal.QueryFirst(x => (x.HCJStorageaddress == HCJAddres && x.Station_Area == 2) && x.Station_enable == 1);
+ return BaseDal.QueryFirst(x => x.HCJStorageaddress == HCJAddres && x.Station_Area == 2 && x.Station_enable == 1);
}
/// <summary>
- /// 鏍规嵁HCJ绔欏彴鏌ユ壘鍐呬晶瀛愯溅璁惧淇℃伅
+ /// 鏍规嵁HCJ绔欏彴鍒ゆ柇鍑哄簱杩涜鍙栬揣鏃讹紝鍐呬晶瀛愯溅鏄惁鍦℉CJ绔欏彴涓嬮潰
+ /// </summary>
+ /// <param name="HCJAddres">HCJ绔欏彴缂栧彿</param>
+ /// <returns></returns>
+ public AGVStation GetOutZicheDeep(int HCJAddres)
+ {
+ return BaseDal.QueryFirst(x => x.HCJStorageaddress == HCJAddres && x.Station_Area == 5 && x.Station_enable == 1);
+ }
+
+ public AGVStation OutGetZicheDeepHCJ(int HCJAddres)
+ {
+ return BaseDal.QueryFirst(x => x.HCJStorageaddress == HCJAddres && x.Station_Area == 6 && x.Station_enable == 1);
+ }
+
+ /// <summary>
+ /// 鏍规嵁HCJ绔欏彴鏌ユ壘澶栦晶瀛愯溅璁惧淇℃伅
/// </summary>
/// <param name="HCJAddres">HCJ绔欏彴缂栧彿</param>
/// <returns></returns>
public AGVStation GetZicheOuterSide(int HCJAddres)
{
- return BaseDal.QueryFirst(x => (x.HCJStorageaddress == HCJAddres && x.Station_Area == 1) && x.Station_enable == 1);
+ return BaseDal.QueryFirst(x => x.HCJStorageaddress == HCJAddres && x.Station_Area == 1 && x.Station_enable == 1);
+ }
+
+
+ public List<AGVStation> GetYljSide(string Station_code)
+ {
+ return BaseDal.QueryData(x => x.Station_code == Station_code && x.Station_enable == 1);
+ }
+ /// <summary>
+ /// 鏍规嵁宸烽亾杩涜鑾峰彇璁惧锛堝叆搴撶増鏈級
+ /// </summary>
+ public AGVStation ObtainCcordingTunnel(int SCTunnel)
+ {
+ return BaseDal.QueryFirst(x => x.Station_tasktype == (int)RGVTasktype.Inbound && x.Station_Area== SCTunnel && x.Station_material== (int)RGVEquipment.Mothertrailer && x.Station_enable == 1);
+ }
+
+
+
+
+ /// <summary>
+ /// 鑾峰彇鍏ュ簱杩欒竟鐨勫瓙杞︼紝姣嶈溅
+ /// </summary>
+ public List<AGVStation> GetInStroller()
+ {
+ return BaseDal.QueryData(x => x.Station_tasktype== (int)RGVTasktype.Inbound && (x.Station_Area == (int)RGVEquipment.Mothertrailer || x.Station_Area == (int)RGVEquipment.Corridorcar || x.Station_Area == (int)RGVEquipment.InRGVForklift) && x.Station_enable == 1);
+ }
+
+ /// <summary>
+ /// 鑾峰彇鍑哄簱杩欒竟鐨勫瓙杞︼紝姣嶈溅
+ /// </summary>
+ public List<AGVStation> GetOutStroller()
+ {
+ return BaseDal.QueryData(x => x.Station_tasktype == (int)RGVTasktype.Outbound && (x.Station_material == (int)RGVEquipment.Mothertrailer || x.Station_material == (int)RGVEquipment.Corridorcar || x.Station_material == (int)RGVEquipment.OutRGVForklift) && x.Station_enable == 1);
}
}
}
--
Gitblit v1.9.3