huanghongfeng
2025-09-08 093c2580c7a274b4339a1f6305e91d4e69ea2c5a
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
#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 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<AGVStation, IAgvStationRepository>, IAgvStationService
    {
        public AgvStationService(IAgvStationRepository BaseDal) : base(BaseDal)
        {
            
        }
        
        public AGVStation GetAllStationByDeviceCode(int Station_code)
        {
            return BaseDal.QueryFirst(x=>x.Station_code== Station_code);
        }
 
 
        public AGVStation GetMothercarDeviceCode(string Station_code)
        {
            return BaseDal.QueryFirst(x => x.Station_code== int.Parse(Station_code));
        }
 
        public AGVStation GetMothercarCode(string Station_code)
        {
            return BaseDal.QueryFirst(x => x.ZicheMotherinlaw == Station_code);
        }
 
        public AGVStation GetZicheCode(string Station_code)
        {
            return BaseDal.QueryFirst(x => x.Motherinlaw == Station_code);
        }
    }
}