shish 1 year ago
parent
commit
9ae142ff7e
1 changed files with 5 additions and 5 deletions
  1. 5 5
      app-ghs/controllers/LiveOrderController.php

+ 5 - 5
app-ghs/controllers/LiveOrderController.php

@@ -17,17 +17,17 @@ class LiveOrderController extends BaseController
     {
         $get = Yii::$app->request->get();
         $staffId = $get['staffId'] ?? 0;
-        $name = $get['name'] ?? '';
+        $searchContent = $get['searchContent'] ?? '';
         $where = [];
         $where['mainId'] = $this->mainId;
         if (!empty($staffId)) {
             $where['staffId'] = $staffId;
         }
-        if (!empty($name)) {
-            if (stringUtil::isLetter($name)) {
-                $where['py'] = ['like', $name];
+        if (!empty($searchContent)) {
+            if (stringUtil::isLetter($searchContent)) {
+                $where['py'] = ['like', $searchContent];
             } else {
-                $where['name'] = ['like', $name];
+                $where['name'] = ['like', $searchContent];
             }
         }
         $searchTime = $get['searchTime'] ?? '';