ソースを参照

修复购药历史查询ERROR

auqfypeu 4 年 前
コミット
be292234f1
共有2 個のファイルを変更した2 個の追加2 個の削除を含む
  1. 1 1
      Member/MemberWeb/Controllers/mem_orderController.cs
  2. 1 1
      Member/MemberWeb/Controllers/mem_orderproductsController.cs

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