Commit 4a2d1617 by 杨树贤

Merge branch 'ysx-ic助手服务开发-20190824'

parents 6ed355a5 8099dacd
...@@ -91,7 +91,7 @@ class IntegralBill extends Model ...@@ -91,7 +91,7 @@ class IntegralBill extends Model
$totalAmount = DB::table('integral_bills') $totalAmount = DB::table('integral_bills')
->leftJoin('integrals', 'integral_bills.integral_id', 'integrals.id') ->leftJoin('integrals', 'integral_bills.integral_id', 'integrals.id')
->where('user_id', $userId) ->where('user_id', $userId)
->sum('amount'); ->sum('integrals.amount');
//已经兑换的金额 //已经兑换的金额
$exchangedAmount = DB::table('user_exchanges') $exchangedAmount = DB::table('user_exchanges')
->leftJoin('exchange_settings', 'user_exchanges.exchange_id', 'exchange_settings.id') ->leftJoin('exchange_settings', 'user_exchanges.exchange_id', 'exchange_settings.id')
......
19880 6340
\ No newline at end of file \ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment