修复bug
This commit is contained in:
@@ -279,13 +279,13 @@ namespace WMS.Web.Repositories
|
|||||||
|
|
||||||
List<int> taskIds = new List<int>();
|
List<int> taskIds = new List<int>();
|
||||||
//序列码出库单
|
//序列码出库单
|
||||||
if (dto.SerialNumbers.Count() > 0)
|
if (dto.SerialNumbers != null && dto.SerialNumbers.Count() > 0)
|
||||||
{
|
{
|
||||||
var res = await _outStockRepositories.GetEntityListBySerialNumbers(dto.SerialNumbers);
|
var res = await _outStockRepositories.GetEntityListBySerialNumbers(dto.SerialNumbers);
|
||||||
taskIds.AddRange(res.Select(s => s.TaskId));
|
taskIds.AddRange(res.Select(s => s.TaskId));
|
||||||
}
|
}
|
||||||
//箱号取出库单
|
//箱号取出库单
|
||||||
if (dto.BoxBillNos.Count() > 0)
|
if (dto.BoxBillNos != null && dto.BoxBillNos.Count() > 0)
|
||||||
{
|
{
|
||||||
var res = await _outStockRepositories.GetEntityListByBoxBillNos(dto.BoxBillNos);
|
var res = await _outStockRepositories.GetEntityListByBoxBillNos(dto.BoxBillNos);
|
||||||
taskIds.AddRange(res.Select(s => s.TaskId));
|
taskIds.AddRange(res.Select(s => s.TaskId));
|
||||||
|
|||||||
Reference in New Issue
Block a user