修复bug
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
using AutoMapper;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using Microsoft.EntityFrameworkCore.Storage;
|
||||
using Org.BouncyCastle.Crypto;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
@@ -113,7 +114,7 @@ namespace WMS.Web.Repositories
|
||||
/// <returns></returns>
|
||||
public async Task<(object obj, int total)> GetListField(InStockQueryRequest dto, int companyId)
|
||||
{
|
||||
var res= await GetPagedList(dto, companyId);
|
||||
var res = await GetPagedList(dto, companyId);
|
||||
return (res.list, res.total);
|
||||
}
|
||||
|
||||
@@ -502,12 +503,15 @@ namespace WMS.Web.Repositories
|
||||
.Where(x => boxIds.Contains(x.detail.BoxId) && x.order.Type != InstockType.Purchase && (x.detail.UnBind == null || x.detail.UnBind == false)).Select(s => s.detail.BoxId).ToListAsync();
|
||||
}
|
||||
|
||||
public async Task<List<InStockDetails>> GetListBy(List<int> boxIds)
|
||||
public async Task<List<InStock>> GetListBy(List<int> boxIds)
|
||||
{
|
||||
var entitys = await _context.InStockDetails.AsNoTracking()
|
||||
.Where(x => boxIds.Contains(x.BoxId) && (x.UnBind == null || x.UnBind == false))
|
||||
var res = await _context.Instock
|
||||
.Include(s => s.Details)
|
||||
.Include(s => s.ErpDetails)
|
||||
.Where(f => f.Details.Where(w => boxIds.Contains(w.BoxId)).Count() > 0)
|
||||
.ToListAsync();
|
||||
return entitys;
|
||||
|
||||
return res.Clone();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user