From 0b4792ff8245f9eac16e6d02452eb9a091f6f72b Mon Sep 17 00:00:00 2001
From: huanghongfeng <huanghongfeng@hnkhzn.com>
Date: 星期二, 28 十月 2025 19:42:04 +0800
Subject: [PATCH] 1
---
代码管理/WCS/WCS/WIDESEAWCS_Server/WIDESEAWCS_SystemServices/AgvStationService.cs | 104 +++++++++++++++++++++++++++++++++++++++++++++++-----
1 files changed, 94 insertions(+), 10 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 8cdce35..5d368ce 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"
@@ -36,6 +36,7 @@
using System.Text;
using System.Threading.Tasks;
using WIDESEA_Comm.Http;
+using WIDESEA_Common.Log;
using WIDESEAWCS_Core;
using WIDESEAWCS_Core.BaseServices;
using WIDESEAWCS_Core.Enums;
@@ -52,28 +53,111 @@
{
public AgvStationService(IAgvStationRepository BaseDal) : base(BaseDal)
{
-
}
-
- public AGVStation GetAllStationByDeviceCode(int Station_code)
+
+ /// <summary>
+ /// 鏍规嵁璁惧淇℃伅锛岃幏鍙栧皬杞﹀唴瀹�
+ /// </summary>
+ /// <param name="ChildPosiDeviceCode">璁惧</param>
+ /// <returns></returns>
+ public AGVStation Corridorequipment(string ChildPosiDeviceCode)
{
- return BaseDal.QueryFirst(x=>x.Station_code== Station_code);
+ return BaseDal.QueryFirst(x=>x.ChildPosiDeviceCode == ChildPosiDeviceCode && x.Station_enable==1);
+ }
+
+ /// <summary>
+ /// 鏍规嵁瀛愬湴鍧�锛岃幏鍙栨瘝杞﹁澶囦俊鎭�
+ /// </summary>
+ /// <param name="ZicheMotAddres">瀛愬湴鍧�</param>
+ /// <returns></returns>
+ public AGVStation GetMothervehicle(int ZicheMotAddres)
+ {
+ return BaseDal.QueryFirst(x => x.ZicheMotherinlaw == ZicheMotAddres && x.Station_enable == 1);
+ }
+
+ /// <summary>
+ /// 鏍规嵁杩囬亾鍦板潃锛岃幏鍙栬繃閬撳瓙杞﹁澶囦俊鎭�
+ /// </summary>
+ /// <param name="ZicheMotAddres">瀛愬湴鍧�</param>
+ /// <returns></returns>
+ public AGVStation GetMotheaisle(int ZicheMotAddres)
+ {
+ return BaseDal.QueryFirst(x => (x.MotherCarDeviceCode == ZicheMotAddres || x.MotherCardeputy == ZicheMotAddres) && x.Station_enable == 1);
+ }
+
+ /// <summary>
+ /// 鏍规嵁HCJ绔欏彴鏌ユ壘鍐呬晶瀛愯溅璁惧淇℃伅
+ /// </summary>
+ /// <param name="HCJAddres">HCJ绔欏彴缂栧彿</param>
+ /// <returns></returns>
+ public AGVStation GetZicheDeep(int HCJAddres)
+ {
+ return BaseDal.QueryFirst(x => x.HCJStorageaddress == HCJAddres && x.Station_Area == 2 && x.Station_enable == 1);
+ }
+
+ /// <summary>
+ /// 鏍规嵁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);
}
- public AGVStation GetMothercarDeviceCode(string Station_code)
+ public List<AGVStation> GetYljSide(string Station_code)
{
- return BaseDal.QueryFirst(x => x.Station_code== int.Parse(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);
}
- public AGVStation GetMothercarCode(string Station_code)
+
+
+
+ /// <summary>
+ /// 鑾峰彇鍏ュ簱杩欒竟鐨勫瓙杞︼紝姣嶈溅
+ /// </summary>
+ public List<AGVStation> GetInStroller()
{
- return BaseDal.QueryFirst(x => x.ZicheMotherinlaw == Station_code);
+ 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);
}
- public AGVStation GetZicheCode(string Station_code)
+ /// <summary>
+ /// 鑾峰彇鍑哄簱杩欒竟鐨勫瓙杞︼紝姣嶈溅
+ /// </summary>
+ public List<AGVStation> GetOutStroller()
{
- return BaseDal.QueryFirst(x => x.Motherinlaw == Station_code);
+ 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);
+ }
+
+ /// <summary>
+ /// 鑾峰彇鍑哄簱杩欒竟鐨勫瓙杞︼紝姣嶈溅
+ /// </summary>
+ public List<AGVStation> InGetOutStroller()
+ {
+ return BaseDal.QueryData(x => x.Station_tasktype == (int)RGVTasktype.Inbound && (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