@@ -42,7 +42,7 @@ namespace SupplierWeb.Controllers
string OrdersCode = "";
if (data != null)
{
- OrdersCode = data.query;
+ OrdersCode = data.query[0];
data = new { query = "select * from mem_order where OrdersCode = '"+ OrdersCode + "'" };
}
//将参数转换成JSON数据
@@ -124,7 +124,7 @@ namespace SupplierWeb.Controllers
data = new { query = "select * from mem_orderproducts where OrdersCode='" + OrdersCode + "' " };