修复bug
This commit is contained in:
@@ -76,7 +76,8 @@ namespace WMS.Web.Domain.Services.Public
|
|||||||
|
|
||||||
string json = resData["data"].ToString();
|
string json = resData["data"].ToString();
|
||||||
var datas = JsonConvert.DeserializeObject<List<ErpInventoryDto>>(json);
|
var datas = JsonConvert.DeserializeObject<List<ErpInventoryDto>>(json);
|
||||||
list.AddRange(datas);
|
if (datas != null && datas.Count() > 0)
|
||||||
|
list.AddRange(datas);
|
||||||
|
|
||||||
int num = Convert.ToInt32(resData["rowcount"]) / 10000;
|
int num = Convert.ToInt32(resData["rowcount"]) / 10000;
|
||||||
for (int i = 1; i <= num; i++)
|
for (int i = 1; i <= num; i++)
|
||||||
@@ -94,7 +95,8 @@ namespace WMS.Web.Domain.Services.Public
|
|||||||
|
|
||||||
json = resData["data"].ToString();
|
json = resData["data"].ToString();
|
||||||
datas = JsonConvert.DeserializeObject<List<ErpInventoryDto>>(json);
|
datas = JsonConvert.DeserializeObject<List<ErpInventoryDto>>(json);
|
||||||
list.AddRange(datas);
|
if (datas != null && datas.Count() > 0)
|
||||||
|
list.AddRange(datas);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user