bug修复
This commit is contained in:
@@ -2026,6 +2026,13 @@
|
|||||||
<param name="taskId"></param>
|
<param name="taskId"></param>
|
||||||
<returns></returns>
|
<returns></returns>
|
||||||
</member>
|
</member>
|
||||||
|
<member name="M:WMS.Web.Domain.Infrastructure.IInStockTaskBoxRepositories.GetListBy(System.Collections.Generic.List{System.String})">
|
||||||
|
<summary>
|
||||||
|
集合:根据箱号集合
|
||||||
|
</summary>
|
||||||
|
<param name="boxBillNos"></param>
|
||||||
|
<returns></returns>
|
||||||
|
</member>
|
||||||
<member name="M:WMS.Web.Domain.Infrastructure.IInStockTaskBoxRepositories.GetBy(System.String)">
|
<member name="M:WMS.Web.Domain.Infrastructure.IInStockTaskBoxRepositories.GetBy(System.String)">
|
||||||
<summary>
|
<summary>
|
||||||
实体:箱号ID
|
实体:箱号ID
|
||||||
|
|||||||
@@ -18,6 +18,13 @@ namespace WMS.Web.Domain.Infrastructure
|
|||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
Task<List<InStockTaskBox>> GetListBy(int taskId);
|
Task<List<InStockTaskBox>> GetListBy(int taskId);
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 集合:根据箱号集合
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="boxBillNos"></param>
|
||||||
|
/// <returns></returns>
|
||||||
|
Task<List<InStockTaskBox>> GetListBy(List<string> boxBillNos);
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 实体:箱号ID
|
/// 实体:箱号ID
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|||||||
@@ -570,9 +570,8 @@ namespace WMS.Web.Domain.Services
|
|||||||
|
|
||||||
|
|
||||||
//4.是否任务单存在绑定箱号判断:存在的话,就不能收货或者非采购上架
|
//4.是否任务单存在绑定箱号判断:存在的话,就不能收货或者非采购上架
|
||||||
var taskBoxList = await _inStockTaskBoxRepositories.GetListBy(task.Id);
|
var taskBoxList = await _inStockTaskBoxRepositories.GetListBy(dto.BoxBillNos);
|
||||||
bool isHave = taskBoxList.Where(x => dto.BoxBillNos.Contains(x.BoxBillNo)).Any();
|
if (taskBoxList != null && taskBoxList.Count != 0)
|
||||||
if (isHave)
|
|
||||||
return Result<ContrastMaterialsResponse>.ReFailure(ResultCodes.BoxHaveError);
|
return Result<ContrastMaterialsResponse>.ReFailure(ResultCodes.BoxHaveError);
|
||||||
|
|
||||||
//4.返回对比结果:true为比对成功,并把箱ID和箱号返回
|
//4.返回对比结果:true为比对成功,并把箱ID和箱号返回
|
||||||
|
|||||||
@@ -48,7 +48,7 @@ namespace WMS.Web.Repositories
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 集合:任务ID
|
/// 集合:根据任务ID
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="taskId"></param>
|
/// <param name="taskId"></param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
@@ -59,6 +59,18 @@ namespace WMS.Web.Repositories
|
|||||||
return entitys;
|
return entitys;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 集合:根据箱号集合
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="boxBillNos"></param>
|
||||||
|
/// <returns></returns>
|
||||||
|
public async Task<List<InStockTaskBox>> GetListBy(List<string> boxBillNos)
|
||||||
|
{
|
||||||
|
var entitys = await _context.InstockTaskBox
|
||||||
|
.Include(s => s.Details).Where(x => boxBillNos.Contains(x.BoxBillNo)).ToListAsync();
|
||||||
|
return entitys;
|
||||||
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 实体:箱号ID
|
/// 实体:箱号ID
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|||||||
Reference in New Issue
Block a user