Bläddra i källkod

修复购药历史查询ERROR

auqfypeu 4 år sedan
förälder
incheckning
be292234f1

+ 1 - 1
Member/MemberWeb/Controllers/mem_orderController.cs

@@ -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数据

+ 1 - 1
Member/MemberWeb/Controllers/mem_orderproductsController.cs

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