校准接口优化
This commit is contained in:
@@ -1337,6 +1337,13 @@
|
||||
<param name="boxBillNo"></param>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="M:WMS.Web.Domain.Infrastructure.IInStockTaskRepositories.GetBySource(System.String)">
|
||||
<summary>
|
||||
实体:根据来源单号
|
||||
</summary>
|
||||
<param name="sourceBillNo"></param>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="M:WMS.Web.Domain.Infrastructure.IInStockTaskRepositories.IsExist(System.String)">
|
||||
<summary>
|
||||
箱号是否绑定了入库任务单实体:待入库和部分入库状态中
|
||||
|
||||
@@ -36,6 +36,13 @@ namespace WMS.Web.Domain.Infrastructure
|
||||
/// <returns></returns>
|
||||
Task<InStockTask> GetBy(string boxBillNo);
|
||||
|
||||
/// <summary>
|
||||
/// 实体:根据来源单号
|
||||
/// </summary>
|
||||
/// <param name="sourceBillNo"></param>
|
||||
/// <returns></returns>
|
||||
Task<InStockTask> GetBySource(string sourceBillNo);
|
||||
|
||||
/// <summary>
|
||||
/// 箱号是否绑定了入库任务单实体:待入库和部分入库状态中
|
||||
/// </summary>
|
||||
|
||||
@@ -52,7 +52,7 @@ namespace WMS.Web.Domain.Services
|
||||
bool isTransaction = false;
|
||||
|
||||
//2.查看是否有入库任务单
|
||||
var task = await _inStockTaskRepositories.GetBy(sourceBillNo);
|
||||
var task = await _inStockTaskRepositories.GetBySource(sourceBillNo);
|
||||
if (task == null)
|
||||
return ResultList<InStockTaskBillNoQueryResponse>.ReFailure(ResultCodes.OrderNoData);
|
||||
|
||||
|
||||
@@ -180,6 +180,22 @@ namespace WMS.Web.Repositories
|
||||
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 实体:根据来源单号
|
||||
/// </summary>
|
||||
/// <param name="sourceBillNo"></param>
|
||||
/// <returns></returns>
|
||||
public async Task<InStockTask> GetBySource(string sourceBillNo)
|
||||
{
|
||||
var entity = await _context.InStockTask
|
||||
.Include(s => s.Boxs)
|
||||
.Include(s => s.Details)
|
||||
.Where(w => w.SourceBillNo==sourceBillNo).FirstOrDefaultAsync();
|
||||
|
||||
return entity;
|
||||
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 箱号是否绑定了任务实体:待入库和部分入库状态中
|
||||
/// </summary>
|
||||
|
||||
Reference in New Issue
Block a user