| using SqlSugar.Extensions; | 
| using System; | 
| using System.Collections.Generic; | 
| using System.Linq; | 
| using System.Text; | 
| using System.Threading.Tasks; | 
| using WIDESEA_Common.CommonEnum; | 
| using WIDESEA_Core.BaseRepository; | 
| using WIDESEA_Core.Enums; | 
| using WIDESEA_IBasicRepository; | 
| using WIDESEA_Model.Models; | 
|   | 
| namespace WIDESEA_BasicRepository | 
| { | 
|     /// <summary> | 
|     /// 仓库信息实现层 | 
|     /// </summary> | 
|     public class WarehouseRepository : RepositoryBase<Dt_Warehouse>, IWarehouseRepository | 
|     { | 
|         public WarehouseRepository(IUnitOfWorkManage unitOfWorkManage) : base(unitOfWorkManage) | 
|         { | 
|         } | 
|   | 
|         public List<int> EnableWarehouseIds => QueryData(x => x.WarehouseId, x => x.WarehouseStatus == EnableEnum.Enable.ObjToInt()).Distinct().ToList(); | 
|     } | 
| } |