#region << 版 本 注 释 >> /*---------------------------------------------------------------- * 命名空间:WIDESEAWCS_TaskInfoService * 创建者:胡童庆 * 创建时间:2024/8/2 16:13:36 * 版本:V1.0.0 * 描述: * * ---------------------------------------------------------------- * 修改人: * 修改时间: * 版本:V1.0.1 * 修改说明: * *----------------------------------------------------------------*/ #endregion << 版 本 注 释 >> using AutoMapper; using Microsoft.AspNetCore.Mvc.RazorPages; using NetTaste; using Newtonsoft.Json; using OfficeOpenXml.FormulaParsing.Excel.Functions.DateTime; using OfficeOpenXml.FormulaParsing.Excel.Functions.Text; using SqlSugar; using StackExchange.Profiling.Internal; using System; using System.Collections; using System.Collections.Generic; using System.ComponentModel; using System.Diagnostics; using System.Diagnostics.CodeAnalysis; using System.Linq; using System.Linq.Expressions; using System.Reflection; using System.Reflection.Metadata; 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; using WIDESEAWCS_DTO.Enum; using WIDESEAWCS_DTO.TaskInfo; using WIDESEAWCS_ISystemRepository; using WIDESEAWCS_ISystemServices; using WIDESEAWCS_Model.Models; using WIDESEAWCS_Model.Models.System; namespace WIDESEAWCS_SystemServices { public class AgvStationService : ServiceBase, IAgvStationService { public AgvStationService(IAgvStationRepository BaseDal) : base(BaseDal) { } /// /// 根据设备信息,获取小车内容 /// /// 设备 /// public AGVStation Corridorequipment(string ChildPosiDeviceCode) { return BaseDal.QueryFirst(x=>x.ChildPosiDeviceCode == ChildPosiDeviceCode && x.Station_enable==1); } /// /// 根据子地址,获取母车设备信息 /// /// 子地址 /// public AGVStation GetMothervehicle(int ZicheMotAddres) { return BaseDal.QueryFirst(x => x.ZicheMotherinlaw == ZicheMotAddres && x.Station_enable == 1); } /// /// 根据过道地址,获取过道子车设备信息 /// /// 子地址 /// public AGVStation GetMotheaisle(int ZicheMotAddres) { return BaseDal.QueryFirst(x => (x.MotherCarDeviceCode == ZicheMotAddres || x.MotherCardeputy == ZicheMotAddres) && x.Station_enable == 1); } /// /// 根据HCJ站台查找内侧子车设备信息 /// /// HCJ站台编号 /// public AGVStation GetZicheDeep(int HCJAddres) { return BaseDal.QueryFirst(x => (x.HCJStorageaddress == HCJAddres || x.Station_Area == 2) && x.Station_enable == 1); } /// /// 根据HCJ站台查找内侧子车设备信息 /// /// HCJ站台编号 /// public AGVStation GetZicheDeep(int HCJAddres) { return BaseDal.QueryFirst(x => (x.HCJStorageaddress == HCJAddres || x.Station_Area == 2) && x.Station_enable == 1); } } }