This commit is contained in:
tongfei
2023-11-30 15:13:49 +08:00
parent 5c8528a05d
commit f8ad28fecb
2 changed files with 5 additions and 1 deletions

View File

@@ -163,7 +163,7 @@ namespace WMS.Web.Domain.Services
if (!erp_result.IsSuccess)
return Result.ReFailure(erp_result.Message, erp_result.Status);
var erp_list = erp_result.Data;
_logger.LogInformation("分步式调入条数:" + erp_list.ToList().Count);
return await this.SysnData(erp_list.ToList(), isTransaction);
}
@@ -318,6 +318,9 @@ namespace WMS.Web.Domain.Services
if (erp_list.GroupBy(x => x.Type).Select(x => x.Key).FirstOrDefault() == (int)InstockType.Assembled)
_logger.LogInformation("组装拆卸单新增条数:" + erp_list.Count);
if (erp_list.GroupBy(x => x.Type).Select(x => x.Key).FirstOrDefault() == (int)InstockType.StktransferInst)
_logger.LogInformation("分步式调入新增条数:" + erp_list.Count);
//3.wms任务单的来源单据编号不存在于erp中那么就新增
if (erp_list.Count != 0)
{

View File

@@ -546,6 +546,7 @@ namespace WMS.Web.Domain.Services.Public
lis.Type = (int)InstockType.StktransferInst;
erp_list.Add(lis);
}
_logger.LogInformation("分步式调入条数:" + erp_list.Count);
return ResultList<ErpInStockResultDto>.ReSuccess(erp_list);
}
catch (Exception ex)