修复bug

This commit is contained in:
18942506660
2024-10-24 10:25:18 +08:00
parent 3e8ece487f
commit a709de05f0
3 changed files with 3 additions and 1 deletions

View File

@@ -160,7 +160,7 @@ namespace WMS.Web.Domain.Services
//找仓库
var l_stock = resStock.Data.FirstOrDefault(f => f.Id == item.wms_co_id);
if (l_stock == null) continue;
var stock = r.FirstOrDefault(f => f.WarehouseCodeOfLingxing.Equals(l_stock.Name));
var stock = r.FirstOrDefault(f => f.WarehouseCodeOfJushuitan.Equals(l_stock.Name));
if (stock == null) continue;
var entity = new ProductInventory()

View File

@@ -109,6 +109,7 @@ namespace WMS.Web.Domain.Services.Public
}
string json = resData["data"]["inventorys"].ToString();
var datas = JsonConvert.DeserializeObject<List<JuShuiTanInventoryResponse>>(json);
datas.ForEach(f => f.wms_co_id = id);
list.AddRange(datas);
int count = Convert.ToInt32(resData["data"]["page_count"]);
@@ -125,6 +126,7 @@ namespace WMS.Web.Domain.Services.Public
}
json = resData["data"]["inventorys"].ToString();
datas = JsonConvert.DeserializeObject<List<JuShuiTanInventoryResponse>>(json);
datas.ForEach(f => f.wms_co_id = id);
list.AddRange(datas);
}
}