lvhao 6 месяцев назад
Родитель
Сommit
ffa992cd3a

+ 4 - 3
core/CoreApp/controllers/Returngoods.php

@@ -186,10 +186,11 @@ class Returngoods extends Start_Controller {
 		}
         $order_no= $arg_array[0];
         $id = isset($arg_array[1])?$arg_array[1]:0;
-        if($id){
-            $order_info = $this->logic_order->getInfo("id = ".$id," and orderinfo = ".$order_no);
+        if($id > 0){
+            $order_info = $this->logic_order->getInfo("id = ".$id." and orderinfo = ".$order_no,'id,orderinfo,number,shop');
+          
         }else{
-            $order_info = $this->logic_order->getInfo("orderinfo = ".$order_no);
+            $order_info = $this->logic_order->getInfo("orderinfo = ".$order_no,'id,orderinfo,number,shop');
         }
 
        

+ 5 - 4
core/CoreApp/models/Model_logic_order.php

@@ -19,19 +19,20 @@ class Model_logic_order extends Lin_Model {
     /**
      * 表明没有给 直接查询所有订单
      */
-    public function getInfo($where){
-        $info =  $this->fullorder->find($where);
+    public function getInfo($where,$field = "*"){
+        $info =  $this->fullorder->find($where,$field);
         if(!empty($info)){
             return $info;
         }
-        $info =  $this->fullordertt->find($where);
+        $info =  $this->fullordertt->find($where,$field);
         if(!empty($info)){
             return $info;
         }
-        $info =  $this->fullordersmt->find($where);
+        $info =  $this->fullordersmt->find($where,$field);
         if(!empty($info)){
             return $info;
         }
         return [];
     }
+
 }