1
huanghongfeng
2024-11-27 1dd9f4bf540a74a7de2daeeebf38491f86befa08
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
using SqlSugar.Extensions;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using WIDESEA_Core.BaseRepository;
using WIDESEA_Core.Enums;
using WIDESEA_IBasicRepository;
using WIDESEA_Model.Models;
 
namespace WIDESEA_BasicRepository
{
    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();
    }
}