增加日志

This commit is contained in:
18942506660
2024-10-30 17:35:16 +08:00
parent 324a33ab1e
commit 0ec23858e7
3 changed files with 4 additions and 2 deletions

View File

@@ -125,7 +125,7 @@ namespace WMS.Web.Api.Controllers
//string codes = "AD";
//var b = await _erpInventoryService.GetInventory(codes);
int count = 10 / 5;
var bcd=await _productInventoryService.Erp();
var bcd=await _productInventoryService.LingXing();
//LingXingResponse<LingXingStockResponse> r = new LingXingResponse<LingXingStockResponse>();

View File

@@ -70,7 +70,7 @@ namespace WMS.Web.Domain.Services
//var str = string.Join(",", codes.Select(s => s.Code).ToList());
var res = await _erpInventoryService.GetInventory(codes.Select(s => s.Code).ToList());
_logger.LogInformation($"拉金蝶数据结果:{res.IsSuccess} {res.Message} {res.Data.Count()}");
_logger.LogInformation($"拉金蝶数据结果:{res.IsSuccess} {res.Message} {res.Data.Count()}");
if (!res.IsSuccess) return res;
//过滤掉不符合要求的组织和仓库组合
List<ErpInventoryDto> listOld = new List<ErpInventoryDto>();
@@ -142,6 +142,7 @@ namespace WMS.Web.Domain.Services
var ids = resStock.Data.Where(w => listNames.Contains(w.Name)).Select(s => s.Id).ToList();
//获取领星库存
var resInventory = await _juShuiTanService.GetInventory(ids);
_logger.LogInformation($"拉取聚水潭数据结果:{resInventory.IsSuccess} {resInventory.Message} {resInventory.Data.Count()}");
if (!resInventory.IsSuccess) return resStock;
@@ -231,6 +232,7 @@ namespace WMS.Web.Domain.Services
string strIds = string.Join(",", ids);
//获取领星库存
var resInventory = await _lingXingService.GetInventory(new Core.Dto.LingXing.LingXingInventoryRequest() { wid = strIds });
_logger.LogInformation($"拉取领星数据结果:{resInventory.IsSuccess} {resInventory.Message} {resInventory.Data.Count()}");
if (!resInventory.IsSuccess) return resStock;
//物料