修复bug
This commit is contained in:
@@ -60,8 +60,8 @@ namespace WMS.Web.Domain.Services
|
|||||||
{
|
{
|
||||||
_logger.LogInformation($"改箱:{JsonConvert.SerializeObject(dto)} 操作人:{loginInfo.UserInfo.StaffId}");
|
_logger.LogInformation($"改箱:{JsonConvert.SerializeObject(dto)} 操作人:{loginInfo.UserInfo.StaffId}");
|
||||||
//1.有原箱时 需要判断 物料对应的序列号是否存在
|
//1.有原箱时 需要判断 物料对应的序列号是否存在
|
||||||
var srcIds = dto.Select(s => s.SrcBoxId).ToList();
|
var srcIds = dto.Select(s => s.SrcBoxId).Distinct().ToList();
|
||||||
var destIds = dto.Select(s => s.DestBoxId).ToList();
|
var destIds = dto.Select(s => s.DestBoxId).Distinct().ToList();
|
||||||
var boxs = await _boxInventoryRepositories.GetList(srcIds);
|
var boxs = await _boxInventoryRepositories.GetList(srcIds);
|
||||||
foreach (var d in dto)
|
foreach (var d in dto)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user