Commit 924a066c by pengjinyang

记录取消的配货单号。

parent c2705f41
......@@ -138,7 +138,8 @@ namespace Service.TakeStock
if (response.IsSuccessStatusCode)
{
var responseContent = await response.Content.ReadAsStringAsync();
isSuccess = JObject.Parse(responseContent)["data"].ToObject<bool>();
var jobj = JObject.Parse(responseContent)["data"];
isSuccess = jobj["Result"].ToObject<bool>();
TakeStockOrderLog log = new TakeStockOrderLog();
log.OrderId = id;
if (isSuccess)
......@@ -148,6 +149,9 @@ namespace Service.TakeStock
log.State = TakeStockEnum.TSOrderState.释放库存;
log.Content = $"已释放占用库存。";
var cancelCodes = jobj["CancelCodes"].ToObject<string>();
if (cancelCodes?.Count() > 0)
log.Content += "取消了配货的订单:" + string.Join(';', cancelCodes);
}
else
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment