Explorar o código

wesmiler 报恩寺项目提交

wesmiler %!s(int64=4) %!d(string=hai) anos
pai
achega
00fd1f0c8a
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      app/Services/TradeService.php

+ 1 - 1
app/Services/TradeService.php

@@ -193,7 +193,7 @@ class TradeService extends BaseService
                     $query->whereIn('a.status', [1, 2, 3]);
                 }
             })
-            ->select([\DB::raw("sum(`a`.`money`) as total"),'a.change_type'])
+            ->select([\DB::raw("sum(money) as total"),'a.change_type'])
             ->orderBy('a.create_time','desc')
             ->groupBy('a.change_type')
             ->get();