shish před 1 rokem
rodič
revize
58339cd455
1 změnil soubory, kde provedl 5 přidání a 0 odebrání
  1. 5 0
      app-ghs/controllers/CustomController.php

+ 5 - 0
app-ghs/controllers/CustomController.php

@@ -645,6 +645,11 @@ class CustomController extends BaseController
                     $where['mobile'] = $name;
                 } else {
                     $where['mobile'] = ['like', $name];
+                    $shop = $this->shop;
+                    //如果是昆明的批发,搜索数字还是优先搜索客户名称,因为客户名称经常会编号
+                    if($shop->pfLevel == 1){
+                        $where['name'] = ['like', $name];
+                    }
                 }
             } else if (stringUtil::isLetter($name)) {
                 $where['py'] = ['like', $name];