From ca4a0e7ffc11dc6f4c19b75f625444b06768ea15 Mon Sep 17 00:00:00 2001
From: pan <antony1029@163.com>
Date: 星期三, 12 十一月 2025 08:51:30 +0800
Subject: [PATCH] 提交

---
 项目代码/WMS无仓储版/WIDESEA_WMSServer/WIDESEA_BasicService/LocationInfoService.cs |   12 +++++++++---
 1 files changed, 9 insertions(+), 3 deletions(-)

diff --git "a/\351\241\271\347\233\256\344\273\243\347\240\201/WMS\346\227\240\344\273\223\345\202\250\347\211\210/WIDESEA_WMSServer/WIDESEA_BasicService/LocationInfoService.cs" "b/\351\241\271\347\233\256\344\273\243\347\240\201/WMS\346\227\240\344\273\223\345\202\250\347\211\210/WIDESEA_WMSServer/WIDESEA_BasicService/LocationInfoService.cs"
index e20fa2b..33789ce 100644
--- "a/\351\241\271\347\233\256\344\273\243\347\240\201/WMS\346\227\240\344\273\223\345\202\250\347\211\210/WIDESEA_WMSServer/WIDESEA_BasicService/LocationInfoService.cs"
+++ "b/\351\241\271\347\233\256\344\273\243\347\240\201/WMS\346\227\240\344\273\223\345\202\250\347\211\210/WIDESEA_WMSServer/WIDESEA_BasicService/LocationInfoService.cs"
@@ -36,13 +36,13 @@
         private readonly IUnitOfWorkManage _unitOfWorkManage;
         private readonly IRepository<Dt_StockInfo> _stockInfoRepository;
         public  IRepository<Dt_LocationInfo> Repository => BaseDal;
+        public readonly IRepository<Dt_LocationType> _locationTypeRepository;
 
-  
-        public LocationInfoService(IRepository<Dt_LocationInfo> BaseDal, IUnitOfWorkManage unitOfWorkManage, IRepository<Dt_StockInfo> stockInfoRepository ) : base(BaseDal)
+        public LocationInfoService(IRepository<Dt_LocationInfo> BaseDal, IUnitOfWorkManage unitOfWorkManage, IRepository<Dt_StockInfo> stockInfoRepository, IRepository<Dt_LocationType> locationTypeRepository) : base(BaseDal)
         {
             _unitOfWorkManage = unitOfWorkManage;
             _stockInfoRepository = stockInfoRepository;
-         
+            _locationTypeRepository = locationTypeRepository;
         }
 
         /// <summary>
@@ -173,6 +173,12 @@
             return Repository.QueryData(x => locationCodes.Contains(x.LocationCode));
         }
 
+        public List<LocationTypeDto> GetLocationTypes()
+        {
+          return   _locationTypeRepository.Db.Queryable<Dt_LocationType>().Select(x=>
+              new LocationTypeDto { LocationType=x.LocationType,LocationTypeDesc=x.LocationTypeDesc}).ToList();   
+        }
+
         /// <summary>
         /// 鍒濆鍖栬揣浣�
         /// </summary>

--
Gitblit v1.9.3