wupengfei vor 2 Jahren
Ursprung
Commit
bfe9787826
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  1. 1 1
      application/store/controller/OrderShift.php

+ 1 - 1
application/store/controller/OrderShift.php

@@ -26,7 +26,7 @@ class OrderShift  extends  Controller
         $this->sh_status_desc = ['待审核','审核通过','审核拒绝'];
         $query = $this->_query($this->table);
         if($this->request->request('phone'))      $where[]= ['m.phone','like','%'.$this->request->request('phone').'%'];
-        if($this->request->request('order_no')) $where[]= ['o.order_no','like','%'.$this->request->request('order_no').'%'];
+        if($this->request->request('order_no')) $where[]= ['o.order_no','like','%'.trim($this->request->request('order_no')).'%'];
         $this->sh_status = $this->request->request('sh_status',-1);
         if($this->sh_status > -1 ) $where[]= ['o.sh_status','=',$this->request->request('sh_status')];