shish преди 5 години
родител
ревизия
b3696e5a51
променени са 1 файла, в които са добавени 3 реда и са изтрити 6 реда
  1. 3 6
      app-ghs/controllers/CustomController.php

+ 3 - 6
app-ghs/controllers/CustomController.php

@@ -116,12 +116,9 @@ class CustomController extends BaseController
         $type = isset($get['type']) ? $get['type'] : 0;
         $name = isset($get['name']) ? $get['name'] : '';
         $where = ['ownShopId' => $this->shopId];
-        switch ($type) {
-            case 1:
-                //已开店
-                $where['isOpen'] = 1;
-                break;
-            default:
+        //欠款客户
+        if (!empty($type) && $type == 1) {
+            $where['isDebt'] = 1;
         }
         if (!empty($name)) {
             if (stringUtil::isLetter($name)) {