增加日志
This commit is contained in:
Binary file not shown.
@@ -125,7 +125,7 @@ namespace WMS.Web.Api.Controllers
|
|||||||
//string codes = "AD";
|
//string codes = "AD";
|
||||||
//var b = await _erpInventoryService.GetInventory(codes);
|
//var b = await _erpInventoryService.GetInventory(codes);
|
||||||
int count = 10 / 5;
|
int count = 10 / 5;
|
||||||
var bcd=await _productInventoryService.Erp();
|
var bcd=await _productInventoryService.LingXing();
|
||||||
|
|
||||||
//LingXingResponse<LingXingStockResponse> r = new LingXingResponse<LingXingStockResponse>();
|
//LingXingResponse<LingXingStockResponse> r = new LingXingResponse<LingXingStockResponse>();
|
||||||
|
|
||||||
|
|||||||
@@ -70,7 +70,7 @@ namespace WMS.Web.Domain.Services
|
|||||||
//var str = string.Join(",", codes.Select(s => s.Code).ToList());
|
//var str = string.Join(",", codes.Select(s => s.Code).ToList());
|
||||||
|
|
||||||
var res = await _erpInventoryService.GetInventory(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;
|
if (!res.IsSuccess) return res;
|
||||||
//过滤掉不符合要求的组织和仓库组合
|
//过滤掉不符合要求的组织和仓库组合
|
||||||
List<ErpInventoryDto> listOld = new List<ErpInventoryDto>();
|
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 ids = resStock.Data.Where(w => listNames.Contains(w.Name)).Select(s => s.Id).ToList();
|
||||||
//获取领星库存
|
//获取领星库存
|
||||||
var resInventory = await _juShuiTanService.GetInventory(ids);
|
var resInventory = await _juShuiTanService.GetInventory(ids);
|
||||||
|
_logger.LogInformation($"拉取聚水潭数据结果:{resInventory.IsSuccess} {resInventory.Message} {resInventory.Data.Count()}");
|
||||||
if (!resInventory.IsSuccess) return resStock;
|
if (!resInventory.IsSuccess) return resStock;
|
||||||
|
|
||||||
|
|
||||||
@@ -231,6 +232,7 @@ namespace WMS.Web.Domain.Services
|
|||||||
string strIds = string.Join(",", ids);
|
string strIds = string.Join(",", ids);
|
||||||
//获取领星库存
|
//获取领星库存
|
||||||
var resInventory = await _lingXingService.GetInventory(new Core.Dto.LingXing.LingXingInventoryRequest() { wid = strIds });
|
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;
|
if (!resInventory.IsSuccess) return resStock;
|
||||||
|
|
||||||
//物料
|
//物料
|
||||||
|
|||||||
Reference in New Issue
Block a user