wesmiler 2 月之前
父节点
当前提交
8fe4d58a3c
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      app/Services/Common/AccountService.php

+ 1 - 1
app/Services/Common/AccountService.php

@@ -118,7 +118,7 @@ class AccountService extends BaseService
         $model = clone $query;
         $counts = [
             'count' => $model->count('a.id'),
-            'total' => $model->sum(DB::raw('abs(a.money)'))
+            'total' => $model->sum(DB::raw('abs(money)'))
         ];
 
         // 分页查询