|
@ -179,7 +179,7 @@ public class IncomingToWmsWorker : AsyncPeriodicBackgroundWorkerBase |
|
|
default: |
|
|
default: |
|
|
throw new ArgumentOutOfRangeException(); |
|
|
throw new ArgumentOutOfRangeException(); |
|
|
} |
|
|
} |
|
|
if( incomingToWms.Status != EnumExchangeDataStatus.Error) |
|
|
if (incomingToWms.Status != EnumExchangeDataStatus.Error) |
|
|
{ |
|
|
{ |
|
|
incomingToWms.SetSuccess(); |
|
|
incomingToWms.SetSuccess(); |
|
|
} |
|
|
} |
|
@ -188,7 +188,7 @@ public class IncomingToWmsWorker : AsyncPeriodicBackgroundWorkerBase |
|
|
{ // 定义请求的 URL
|
|
|
{ // 定义请求的 URL
|
|
|
// string apiUrl = "http://10.164.113.31:60085/api/wms/store/product-receipt-note";
|
|
|
// string apiUrl = "http://10.164.113.31:60085/api/wms/store/product-receipt-note";
|
|
|
|
|
|
|
|
|
string apiUrl = _options.Value.IncomingOptions.apiUrl+ "api/wms/store/backFlush-note/create-many"; |
|
|
string apiUrl = _options.Value.IncomingOptions.apiUrl + "api/wms/store/backFlush-note/create-many"; |
|
|
|
|
|
|
|
|
if (!string.IsNullOrEmpty(_options.Value.IncomingOptions.apiUrl)) |
|
|
if (!string.IsNullOrEmpty(_options.Value.IncomingOptions.apiUrl)) |
|
|
{ |
|
|
{ |
|
@ -237,6 +237,8 @@ public class IncomingToWmsWorker : AsyncPeriodicBackgroundWorkerBase |
|
|
if (!string.IsNullOrEmpty(_options.Value.IncomingOptions.apiUrl)) |
|
|
if (!string.IsNullOrEmpty(_options.Value.IncomingOptions.apiUrl)) |
|
|
{ |
|
|
{ |
|
|
var productReceiptJson = JsonSerializer.Deserialize<ProductReceiptNoteEditInput>(incomingToWms.DataContent); |
|
|
var productReceiptJson = JsonSerializer.Deserialize<ProductReceiptNoteEditInput>(incomingToWms.DataContent); |
|
|
|
|
|
var memos = productReceiptJson.Details.Select(r => r.Remark).ToList(); |
|
|
|
|
|
string memostr = String.Join(", ", memos); |
|
|
productReceiptJson.Worker = "Mes"; |
|
|
productReceiptJson.Worker = "Mes"; |
|
|
try |
|
|
try |
|
|
{ |
|
|
{ |
|
@ -256,6 +258,7 @@ public class IncomingToWmsWorker : AsyncPeriodicBackgroundWorkerBase |
|
|
|
|
|
|
|
|
// 读取响应内容并返回
|
|
|
// 读取响应内容并返回
|
|
|
string responseBody = await response.Content.ReadAsStringAsync().ConfigureAwait(false); |
|
|
string responseBody = await response.Content.ReadAsStringAsync().ConfigureAwait(false); |
|
|
|
|
|
Logger.LogInformation("标签" + memostr); |
|
|
} |
|
|
} |
|
|
catch (HttpRequestException ex) |
|
|
catch (HttpRequestException ex) |
|
|
{ |
|
|
{ |
|
|