Browse Source

供货商查询

shish 1 year ago
parent
commit
004d6f540f
1 changed files with 7 additions and 0 deletions
  1. 7 0
      app-hd/controllers/GhsController.php

+ 7 - 0
app-hd/controllers/GhsController.php

@@ -166,6 +166,13 @@ class GhsController extends BaseController
         $where = [];
         $where['ownShopId'] = $this->shopId;
         $where['delStatus'] = $delStatus;
+
+        $name = isset($get['name']) ? $get['name'] : '';
+        if (stringUtil::isLetter($name)) {
+            $where['py'] = ['like', $name];
+        } else {
+            $where['name'] = ['like', $name];
+        }
         $respond = GhsClass::getGhsList($where);
 
         //广告列表