dengjunjie
2025-02-11 8467804705615f7614c29e7ef7ac3e99f5c13a54
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
using Org.BouncyCastle.Crypto;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using WIDESEA_Core.BaseRepository;
using WIDESEA_IOutboundRepository;
using WIDESEA_Model.Models;
 
namespace WIDESEA_OutboundRepository
{
    public class OutboundOrderRepository : RepositoryBase<Dt_OutboundOrder>, IOutboundOrderRepository
    {
        public OutboundOrderRepository(IUnitOfWorkManage unitOfWorkManage) : base(unitOfWorkManage)
        {
        }
        public Dt_OutboundOrder GetStockInfo(int id)
        {
            return Db.Queryable<Dt_OutboundOrder>().Where(x => x.Id == id).Includes(x => x.Details).First();
        }
        public List<Dt_OutboundOrder> GetStockInfos(List<int> ids)
        {
            return Db.Queryable<Dt_OutboundOrder>().Where(x => ids.Contains(x.Id)).Includes(x => x.Details).ToList();
        }
        public override bool UpdateData(Dt_OutboundOrder entity)
        {
            return base.UpdateData(entity);
        }
    }
}