|  |  |  | 
|---|
|  |  |  | 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; | 
|---|
|  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | 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.Id, x => x.WarehouseStatus == EnableEnum.Enable.ObjToInt()).Distinct().ToList(); | 
|---|
|  |  |  | public List<int> EnableWarehouseIds => QueryData(x => x.WarehouseId, x => x.WarehouseStatus == EnableEnum.Enable.ObjToInt()).Distinct().ToList(); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | } | 
|---|