shish 2 tahun lalu
induk
melakukan
da0ccdd617
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      app-ghs/controllers/CustomController.php

+ 1 - 1
app-ghs/controllers/CustomController.php

@@ -551,7 +551,7 @@ class CustomController extends BaseController
         } else if ($type == 2) {
             //欠款客户
             $where['isDebt'] = 1;
-            $sort = 'debtAmount DESC';
+            $sort = '(debtAmount-balance) DESC';
         } else if ($type == 3) {
             $where['level'] = 0;
         }