cqpCow 1 年之前
父節點
當前提交
68925f6d67
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      app/Service/FinanceService.php

+ 2 - 2
app/Service/FinanceService.php

@@ -46,8 +46,8 @@ class FinanceService extends Service
             ->where('a.del_time',0)
             ->where('b.del_time',0)
             ->select('a.finance_account_name','a.account','a.ifsc','a.crt_time','b.id','b.amount','b.status','b.confirm_time')
-            ->ordertBy('b.status','asc')
-            ->orderBy('a.id','asc');
+            ->orderBy('a.id','asc')
+            ->orderBy('b.status','asc');
 
         if(! empty($data['finance_account_name'])) $model->where('a.finance_account_name', 'LIKE', '%'.$data['finance_account_name'].'%');
         if(! empty($data['account'])) $model->where('a.account', 'LIKE', '%'.$data['account'].'%');