加了测试标志
This commit is contained in:
Binary file not shown.
@@ -276,7 +276,7 @@ namespace WMS.Web.Domain.Services.Public
|
|||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
_logger.LogError($"BillQueryForPurchaseInStock->拉取金蝶数据失败:{ex.Message} 返回json:{result_json}");
|
_logger.LogError($"BillQueryForPurchaseInStock->拉取金蝶数据失败yzh:{ex.Message} 返回json:{result_json}");
|
||||||
return ResultList<ErpInStockResultDto>.ReFailure(ResultCodes.Erp_BillQuery_Error);
|
return ResultList<ErpInStockResultDto>.ReFailure(ResultCodes.Erp_BillQuery_Error);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -387,7 +387,7 @@ namespace WMS.Web.Domain.Services.Public
|
|||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
_logger.LogError($"BillQueryForMiscellaneous->拉取金蝶数据失败:{ex.Message} 返回json:{result_json}");
|
_logger.LogError($"BillQueryForMiscellaneous->拉取金蝶数据失败yzh:{ex.Message} 返回json:{result_json}");
|
||||||
return ResultList<ErpInStockResultDto>.ReFailure(ResultCodes.Erp_BillQuery_Error);
|
return ResultList<ErpInStockResultDto>.ReFailure(ResultCodes.Erp_BillQuery_Error);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -501,7 +501,7 @@ namespace WMS.Web.Domain.Services.Public
|
|||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
_logger.LogError($"BillQueryForTransferDirect->拉取金蝶数据失败:{ex.Message} 返回json:{result_json}");
|
_logger.LogError($"BillQueryForTransferDirect->拉取金蝶数据失败yzh:{ex.Message} 返回json:{result_json}");
|
||||||
return ResultList<ErpInStockResultDto>.ReFailure(ResultCodes.Erp_BillQuery_Error);
|
return ResultList<ErpInStockResultDto>.ReFailure(ResultCodes.Erp_BillQuery_Error);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -615,7 +615,7 @@ namespace WMS.Web.Domain.Services.Public
|
|||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
_logger.LogError($"BillQueryForTransferin->拉取金蝶数据失败:{ex.Message} 返回json:{result_json}");
|
_logger.LogError($"BillQueryForTransferin->拉取金蝶数据失败yzh:{ex.Message} 返回json:{result_json}");
|
||||||
return ResultList<ErpInStockResultDto>.ReFailure(ResultCodes.Erp_BillQuery_Error);
|
return ResultList<ErpInStockResultDto>.ReFailure(ResultCodes.Erp_BillQuery_Error);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -727,7 +727,7 @@ namespace WMS.Web.Domain.Services.Public
|
|||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
_logger.LogError($"BillQueryForAssembledApp_Assembly->拉取金蝶数据失败:{ex.Message} 返回json:{result_json}");
|
_logger.LogError($"BillQueryForAssembledApp_Assembly->拉取金蝶数据失败yzh:{ex.Message} 返回json:{result_json}");
|
||||||
return ResultList<ErpInStockResultDto>.ReFailure(ResultCodes.Erp_BillQuery_Error);
|
return ResultList<ErpInStockResultDto>.ReFailure(ResultCodes.Erp_BillQuery_Error);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -839,7 +839,7 @@ namespace WMS.Web.Domain.Services.Public
|
|||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
_logger.LogError($"BillQueryForAssembledApp_Disassembly->拉取金蝶数据失败:{ex.Message} 返回json:{result_json}");
|
_logger.LogError($"BillQueryForAssembledApp_Disassembly->拉取金蝶数据失败yzh:{ex.Message} 返回json:{result_json}");
|
||||||
return ResultList<ErpInStockResultDto>.ReFailure(ResultCodes.Erp_BillQuery_Error);
|
return ResultList<ErpInStockResultDto>.ReFailure(ResultCodes.Erp_BillQuery_Error);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -864,13 +864,13 @@ namespace WMS.Web.Domain.Services.Public
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
var beginTime = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss.fff");
|
var beginTime = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss.fff");
|
||||||
_logger.LogInformation($"物料拉取-开始时间:{beginTime}");
|
_logger.LogInformation($"物料拉取-开始时间yzh:{beginTime}");
|
||||||
//组装dto
|
//组装dto
|
||||||
var erp_materials_list = mats.Select(x => _mapper.Map<ErpMaterialDto>(x)).ToList();
|
var erp_materials_list = mats.Select(x => _mapper.Map<ErpMaterialDto>(x)).ToList();
|
||||||
_memoryCache.Set(_erpOptions.cache_materail_key, erp_materials_list, new MemoryCacheEntryOptions().SetAbsoluteExpiration(TimeSpan.FromMinutes(DateTimeUtil.GetTotalMinutesTimeSpan())));
|
_memoryCache.Set(_erpOptions.cache_materail_key, erp_materials_list, new MemoryCacheEntryOptions().SetAbsoluteExpiration(TimeSpan.FromMinutes(DateTimeUtil.GetTotalMinutesTimeSpan())));
|
||||||
var endTime = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss.fff");
|
var endTime = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss.fff");
|
||||||
_logger.LogInformation($"物料拉取-结束时间:{endTime}");
|
_logger.LogInformation($"物料拉取-结束时间yzh:{endTime}");
|
||||||
_logger.LogInformation($"物料拉取-本地数据库-总条数:{erp_materials_list.Count}");
|
_logger.LogInformation($"物料拉取-本地数据库-总条数yzh:{erp_materials_list.Count}");
|
||||||
return ResultList<ErpMaterialDto>.ReSuccess(erp_materials_list);
|
return ResultList<ErpMaterialDto>.ReSuccess(erp_materials_list);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -981,7 +981,7 @@ namespace WMS.Web.Domain.Services.Public
|
|||||||
var erp_materials_list = new List<ErpMaterialDto>();
|
var erp_materials_list = new List<ErpMaterialDto>();
|
||||||
int skip = 0;
|
int skip = 0;
|
||||||
var beginTime = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss.fff");
|
var beginTime = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss.fff");
|
||||||
_logger.LogInformation($"物料拉取-开始时间:{beginTime}");
|
_logger.LogInformation($"物料拉取-开始时间yzh:{beginTime}");
|
||||||
var error_josn = "";
|
var error_josn = "";
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
@@ -1685,7 +1685,7 @@ namespace WMS.Web.Domain.Services.Public
|
|||||||
//保存
|
//保存
|
||||||
var result_json = await _client.SaveAsync(JsonConvert.SerializeObject(query));
|
var result_json = await _client.SaveAsync(JsonConvert.SerializeObject(query));
|
||||||
|
|
||||||
_logger.LogInformation("入库单->开始同步金蝶:保存参数" + JsonConvert.SerializeObject(query) + " 结果->" + result_json);
|
_logger.LogInformation("入库单->开始同步金蝶yzh:保存参数" + JsonConvert.SerializeObject(query) + " 结果->" + result_json);
|
||||||
|
|
||||||
JObject jobject = (JObject)JsonConvert.DeserializeObject(result_json);
|
JObject jobject = (JObject)JsonConvert.DeserializeObject(result_json);
|
||||||
|
|
||||||
@@ -1722,7 +1722,7 @@ namespace WMS.Web.Domain.Services.Public
|
|||||||
//提交
|
//提交
|
||||||
query.Data = JsonConvert.SerializeObject(dto);
|
query.Data = JsonConvert.SerializeObject(dto);
|
||||||
var result_json = await _client.SubmitAsync(JsonConvert.SerializeObject(query));
|
var result_json = await _client.SubmitAsync(JsonConvert.SerializeObject(query));
|
||||||
_logger.LogInformation("入库单->开始同步金蝶:提交参数" + JsonConvert.SerializeObject(query) + " 结果->" + result_json);
|
_logger.LogInformation("入库单->开始同步金蝶yzh:提交参数" + JsonConvert.SerializeObject(query) + " 结果->" + result_json);
|
||||||
JObject jobject = (JObject)JsonConvert.DeserializeObject(result_json);
|
JObject jobject = (JObject)JsonConvert.DeserializeObject(result_json);
|
||||||
|
|
||||||
if (jobject["Result"]["ResponseStatus"]["IsSuccess"].ToString().ToLower() == "true")
|
if (jobject["Result"]["ResponseStatus"]["IsSuccess"].ToString().ToLower() == "true")
|
||||||
@@ -1754,7 +1754,7 @@ namespace WMS.Web.Domain.Services.Public
|
|||||||
//提交
|
//提交
|
||||||
query.Data = JsonConvert.SerializeObject(dto);
|
query.Data = JsonConvert.SerializeObject(dto);
|
||||||
var result_json = await _client.AuditAsync(JsonConvert.SerializeObject(query));
|
var result_json = await _client.AuditAsync(JsonConvert.SerializeObject(query));
|
||||||
_logger.LogInformation("入库单->开始同步金蝶:审核参数" + JsonConvert.SerializeObject(query) + " 结果->" + result_json);
|
_logger.LogInformation("入库单->开始同步金蝶yzh:审核参数" + JsonConvert.SerializeObject(query) + " 结果->" + result_json);
|
||||||
JObject jobject = (JObject)JsonConvert.DeserializeObject(result_json);
|
JObject jobject = (JObject)JsonConvert.DeserializeObject(result_json);
|
||||||
|
|
||||||
if (jobject["Result"]["ResponseStatus"]["IsSuccess"].ToString().ToLower() == "true")
|
if (jobject["Result"]["ResponseStatus"]["IsSuccess"].ToString().ToLower() == "true")
|
||||||
@@ -1849,7 +1849,7 @@ namespace WMS.Web.Domain.Services.Public
|
|||||||
//下推
|
//下推
|
||||||
string json = JsonConvert.SerializeObject(query);
|
string json = JsonConvert.SerializeObject(query);
|
||||||
var result_json = await _client.PushAsync(json);
|
var result_json = await _client.PushAsync(json);
|
||||||
_logger.LogInformation("入库单->开始同步金蝶:下推参数" + json + " 结果->" + result_json);
|
_logger.LogInformation("入库单->开始同步金蝶yzh:下推参数" + json + " 结果->" + result_json);
|
||||||
JObject jobject = (JObject)JsonConvert.DeserializeObject(result_json);
|
JObject jobject = (JObject)JsonConvert.DeserializeObject(result_json);
|
||||||
var isSuccess = jobject["Result"]["ResponseStatus"]["IsSuccess"].ToString().ToLower();
|
var isSuccess = jobject["Result"]["ResponseStatus"]["IsSuccess"].ToString().ToLower();
|
||||||
|
|
||||||
@@ -1965,7 +1965,7 @@ namespace WMS.Web.Domain.Services.Public
|
|||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
_logger.LogError($"BillQueryForDeliveryNoticeOutStock->拉取金蝶数据失败:{ex.Message} 返回json:{result_json}");
|
_logger.LogError($"BillQueryForDeliveryNoticeOutStock->拉取金蝶数据失败yzh:{ex.Message} 返回json:{result_json}");
|
||||||
return ResultList<ErpDeliveryNoticeOutStockResultDto>.ReFailure(ResultCodes.Erp_BillQuery_Error);
|
return ResultList<ErpDeliveryNoticeOutStockResultDto>.ReFailure(ResultCodes.Erp_BillQuery_Error);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -2066,7 +2066,7 @@ namespace WMS.Web.Domain.Services.Public
|
|||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
_logger.LogError($"BillQueryForTransferDirectOutStock->拉取金蝶数据失败:{ex.Message} 返回json:{result_json}");
|
_logger.LogError($"BillQueryForTransferDirectOutStock->拉取金蝶数据失败yzh:{ex.Message} 返回json:{result_json}");
|
||||||
return ResultList<ErpDeliveryNoticeOutStockResultDto>.ReFailure(ResultCodes.Erp_BillQuery_Error);
|
return ResultList<ErpDeliveryNoticeOutStockResultDto>.ReFailure(ResultCodes.Erp_BillQuery_Error);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -2167,7 +2167,7 @@ namespace WMS.Web.Domain.Services.Public
|
|||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
_logger.LogError($"BillQueryForTransferOutOutStock->拉取金蝶数据失败:{ex.Message} 返回json:{result_json}");
|
_logger.LogError($"BillQueryForTransferOutOutStock->拉取金蝶数据失败yzh:{ex.Message} 返回json:{result_json}");
|
||||||
return ResultList<ErpDeliveryNoticeOutStockResultDto>.ReFailure(ResultCodes.Erp_BillQuery_Error);
|
return ResultList<ErpDeliveryNoticeOutStockResultDto>.ReFailure(ResultCodes.Erp_BillQuery_Error);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -2266,7 +2266,7 @@ namespace WMS.Web.Domain.Services.Public
|
|||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
_logger.LogError($"BillQueryForAssembledAppOutStock_Dassembly->拉取金蝶数据失败:{ex.Message} 返回json:{result_json}");
|
_logger.LogError($"BillQueryForAssembledAppOutStock_Dassembly->拉取金蝶数据失败yzh:{ex.Message} 返回json:{result_json}");
|
||||||
return ResultList<ErpDeliveryNoticeOutStockResultDto>.ReFailure(ResultCodes.Erp_BillQuery_Error);
|
return ResultList<ErpDeliveryNoticeOutStockResultDto>.ReFailure(ResultCodes.Erp_BillQuery_Error);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -2364,7 +2364,7 @@ namespace WMS.Web.Domain.Services.Public
|
|||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
_logger.LogError($"BillQueryForMisDeliveryOutStock->拉取金蝶数据失败:{ex.Message} 返回json:{result_json}");
|
_logger.LogError($"BillQueryForMisDeliveryOutStock->拉取金蝶数据失败yzh:{ex.Message} 返回json:{result_json}");
|
||||||
return ResultList<ErpDeliveryNoticeOutStockResultDto>.ReFailure(ResultCodes.Erp_BillQuery_Error);
|
return ResultList<ErpDeliveryNoticeOutStockResultDto>.ReFailure(ResultCodes.Erp_BillQuery_Error);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -2465,7 +2465,7 @@ namespace WMS.Web.Domain.Services.Public
|
|||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
_logger.LogError($"BillQueryForAssembledAppOutStock_Assembly->拉取金蝶数据失败:{ex.Message} 返回json:{result_json}");
|
_logger.LogError($"BillQueryForAssembledAppOutStock_Assembly->拉取金蝶数据失败yzh:{ex.Message} 返回json:{result_json}");
|
||||||
return ResultList<ErpDeliveryNoticeOutStockResultDto>.ReFailure(ResultCodes.Erp_BillQuery_Error);
|
return ResultList<ErpDeliveryNoticeOutStockResultDto>.ReFailure(ResultCodes.Erp_BillQuery_Error);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -2568,7 +2568,7 @@ namespace WMS.Web.Domain.Services.Public
|
|||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
_logger.LogError($"BillQueryForSalOutStock->拉取金蝶数据失败:{ex.Message} 返回json:{result_json}");
|
_logger.LogError($"BillQueryForSalOutStock->拉取金蝶数据失败yzh:{ex.Message} 返回json:{result_json}");
|
||||||
return ResultList<ErpDeliveryNoticeOutStockResultDto>.ReFailure(ResultCodes.Erp_BillQuery_Error);
|
return ResultList<ErpDeliveryNoticeOutStockResultDto>.ReFailure(ResultCodes.Erp_BillQuery_Error);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -2809,7 +2809,7 @@ namespace WMS.Web.Domain.Services.Public
|
|||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
_logger.LogError($"获取金蝶即时库存出错:{ex.ToString()}");
|
_logger.LogError($"获取金蝶即时库存出错yzh:{ex.ToString()}");
|
||||||
return ResultList<ErpInventoryDto>.ReFailure(ResultCodes.Erp_Inventory_Error);
|
return ResultList<ErpInventoryDto>.ReFailure(ResultCodes.Erp_Inventory_Error);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user