调整接口

This commit is contained in:
18942506660
2023-11-10 14:32:13 +08:00
parent e10ef1c136
commit 53a52104fa
8 changed files with 90 additions and 21 deletions

View File

@@ -37,6 +37,8 @@ namespace WMS.Web.Domain.Infrastructure
//获取实体
Task<OutStockTask> Get(int id);
//根据订单号获取订单信息
Task<List<GetOutStockTaskByNoResponse>> GetOutStockTaskByNo(string billNo);
Task<List<GetOutStockTaskByNoResponse>> GetOutStockTaskListByNo(string billNo);
//根据订单号获取订单信息
Task<GetOutStockTaskByNoResponse> GetOutStockTaskByNo(string billNo);
}
}

View File

@@ -53,11 +53,11 @@ namespace WMS.Web.Domain.Services
{
var outStockTask = await _outStockTaskRepositories.Get(dto.TaskId);
//OutStock entity = await _outStockRepositories.GetByTaskId(dto.TaskId);
//同步该订单最新数据到wms系统
List<string> nos = new List<string>();
nos.Add(outStockTask.SourceBillNo);
var res = await _outStockTaskService.Ssyn(nos);
if (!res.IsSuccess) return Result.ReSuccess();
////同步该订单最新数据到wms系统
//List<string> nos = new List<string>();
//nos.Add(outStockTask.SourceBillNo);
//var res = await _outStockTaskService.Ssyn(nos);
//if (!res.IsSuccess) return Result.ReSuccess();
OutStock entity = new OutStock();
entity.Create(loginInfo.UserInfo.StaffId, outStockTask);
@@ -66,7 +66,7 @@ namespace WMS.Web.Domain.Services
//任务单明细
var tDetail = outStockTask.Details.FirstOrDefault(f => f.MaterialId == d.MaterialId);
if (tDetail == null) continue;
res = outStockTask.OutStock(d.MaterialId, d.Qty);
var res = outStockTask.OutStock(d.MaterialId, d.Qty);
if (!res.IsSuccess) return res;
var outd = _mapper.Map<OutStockDetails>(tDetail);