修复bug
This commit is contained in:
@@ -83,7 +83,7 @@ namespace WMS.Web.Domain.Services
|
||||
//有原箱的情况下验证序列号和原箱是否一致
|
||||
var s = d.Details.SelectMany(s => s.SerialNumbers).ToList();
|
||||
var boxCount = serialNumberList.Where(w => s.Contains(w.SerialNumber)).GroupBy(s => s.BoxId).Select(s => s.Key).ToList();
|
||||
if (boxCount.Count() > 1 || (boxCount.Count() == 0 && boxCount[0] != d.SrcBoxId))
|
||||
if (boxCount.Count() > 1 || (boxCount.Count() == 1 && boxCount[0] != d.SrcBoxId))
|
||||
return Result.ReFailure(ResultCodes.SerialNumbersSrcBoxError);
|
||||
}
|
||||
var box = boxs.FirstOrDefault(f => f.BoxId == d.SrcBoxId);
|
||||
|
||||
Reference in New Issue
Block a user