Browse Source

Update json 2 sql

pull/19/head
sunkaixuan 2 years ago
parent
commit
c944ad50d0
  1. 4
      Src/Asp.Net/SqlSugar/Json2Sql/Provider/Queryable/AppendPage.cs

4
Src/Asp.Net/SqlSugar/Json2Sql/Provider/Queryable/AppendPage.cs

@ -12,12 +12,12 @@ namespace SqlSugar
{ {
private int AppendPageSize(JToken item) private int AppendPageSize(JToken item)
{ {
return Convert.ToInt32(item.First()); return Convert.ToInt32(item.First().ToString().ObjToInt());
} }
private int AppendPageNumber(JToken item) private int AppendPageNumber(JToken item)
{ {
var result= Convert.ToInt32(item.First()); var result = Convert.ToInt32(item.First().ToString().ObjToInt());
if (result == 0) if (result == 0)
{ {
result = 1; result = 1;

Loading…
Cancel
Save