WCS
dengjunjie
2024-10-14 966d1fe6077c885db064fcea98bb48cbccb464d6
项目代码/WMS/WIDESEA_WMSServer/WIDESEA_StorageOutOrderRepository/OutboundOrder/Dt_OutOrderAndStockRepository.cs
@@ -18,8 +18,6 @@
        return await Db.Queryable<Dt_OutOrderAndStock>()
            .Includes(x => x.OrderList)
            .Includes(x => x.StockList)
            .Includes(x => x.OrderDetailList)
            .Includes(x => x.StockDetailList)
            .Includes(x => x.LocationList)
            .WhereIF(locationID != null, x => x.LocationCode == locationID)
            .WhereIF(orderNum != null, x => x.OrderNumber == orderNum)
@@ -35,10 +33,8 @@
    public bool DeleteNavOrderStock(Dt_OutOrderAndStock stock)
    {
        return Db.DeleteNav<Dt_OutOrderAndStock>(x => x.Id == stock.Id)
            .Include(x => x.OrderDetailList)
            .Include(x => x.OrderList)
            .Include(x => x.StockDetailList)
            .Include(x => x.StockList)
            .Include(x => x.OrderList).ThenInclude(x => x.OrderDetailList)
            .Include(x => x.StockList).ThenInclude(x => x.Dt_BillGroupStockDetailList)
            .ExecuteCommand();
    }
@@ -50,9 +46,7 @@
    public bool UpdateNavOrderStock(Dt_OutOrderAndStock stock)
    {
        return Db.UpdateNav(stock)
            .Include(x => x.OrderDetailList)
            .Include(x => x.OrderList)
            .Include(x => x.StockDetailList)
            .Include(x => x.StockList)
            .ExecuteCommand();
    }