huanghongfeng
2025-03-06 1c213042c6608c7b5cfc3fd4a801f946dc2d8651
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
using OfficeOpenXml.FormulaParsing.Excel.Functions.DateTime;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using WIDESEA_Core;
using WIDESEA_Core.BaseServices;
using WIDESEA_ISystemRepository;
using WIDESEA_ISystemService;
using WIDESEA_Model.Models.System;
 
namespace WIDESEA_SystemService
{
    public class Sys_VehiService : ServiceBase<Sys_Vehi, ISys_VehiRepository>, ISys_VehiService
    {
        public Sys_VehiService(ISys_VehiRepository BaseDal) : base(BaseDal)
        {
        }
 
        public ISys_VehiRepository Repository => BaseDal;
 
        public WebResponseContent GetCacheList(string traycode_code)
        {
            try
            {
                List<string> traycode_materiel = BaseDal.QueryData(x => x.Vehicletraycoid == traycode_code).Select(x=>x.Vehi_name).ToList();
                if (traycode_materiel != null)
                {
                    return WebResponseContent.Instance.OK(data: traycode_materiel);
                }
                else
                {
                    return WebResponseContent.Instance.OK(data: null);
                }
 
            }
            catch (Exception ex)
            {
                return WebResponseContent.Instance.OK(data: null);
                throw;
            }
 
        }
 
 
        public WebResponseContent GetdataLis()
        {
            try
            {
                List<string> traycode_materiel = BaseDal.QueryData().Select(x => x.Vehi_name).ToList();
                if (traycode_materiel != null)
                {
                    return WebResponseContent.Instance.OK(data: traycode_materiel);
                }
                else
                {
                    return WebResponseContent.Instance.OK(data: null);
                }
 
            }
            catch (Exception ex)
            {
                return WebResponseContent.Instance.OK(data: null);
                throw;
            }
 
        }
    }
}