|
@@ -18,6 +18,7 @@ use app\model\system\config\SystemConfig;
|
|
|
use app\model\user\User;
|
|
|
use app\model\user\UserBill;
|
|
|
use app\model\user\UserBrokerage;
|
|
|
+use app\model\user\UserMoney;
|
|
|
use app\services\activity\combination\StorePinkServices;
|
|
|
use app\services\activity\coupon\StoreCouponIssueServices;
|
|
|
use app\services\BaseServices;
|
|
@@ -1568,6 +1569,17 @@ HTML;
|
|
|
'date' => '今日'
|
|
|
];
|
|
|
|
|
|
+ $today = UserMoney::where('pm', 1)->whereTime('add_time', 'today')->sum('number');
|
|
|
+ $yesterday = UserMoney::where('pm', 1)->whereTime('add_time', 'yesterday')->sum('number');
|
|
|
+ $today_ratio = $this->countRate($today, $yesterday);
|
|
|
+ $now_money = [
|
|
|
+ 'today' => $today,
|
|
|
+ 'yesterday' => $yesterday,
|
|
|
+ 'today_ratio' => $today_ratio,
|
|
|
+ 'total' => User::sum('now_money'),
|
|
|
+ 'date' => '今日'
|
|
|
+ ];
|
|
|
+
|
|
|
$today = UserBill::where('category', 'award_integral')->where('pm', 1)->whereTime('add_time', 'today')->sum('number');
|
|
|
$yesterday = UserBill::where('category', 'award_integral')->where('pm', 1)->whereTime('add_time', 'yesterday')->sum('number');
|
|
|
$today_ratio = $this->countRate($today, $yesterday);
|
|
@@ -1590,7 +1602,7 @@ HTML;
|
|
|
'date' => '今日'
|
|
|
];
|
|
|
|
|
|
- $info = array_values(compact('sales', 'visits', 'order', 'user', 'lack', 'a_integral', 's_integral', 'l_price', 'send_price', 'extract_price'));
|
|
|
+ $info = array_values(compact('sales', 'visits', 'order', 'user', 'lack', 'a_integral', 's_integral', 'l_price', 'send_price', 'extract_price', 'now_money'));
|
|
|
$info[0]['title'] = '销售额';
|
|
|
$info[1]['title'] = '用户访问量';
|
|
|
$info[2]['title'] = '订单量';
|
|
@@ -1601,6 +1613,7 @@ HTML;
|
|
|
$info[7]['title'] = '能量';
|
|
|
$info[8]['title'] = '释放参考分';
|
|
|
$info[9]['title'] = '提取参考分';
|
|
|
+ $info[10]['title'] = '余额';
|
|
|
$info[0]['total_name'] = '本月销售额';
|
|
|
$info[1]['total_name'] = '本月访问量';
|
|
|
$info[2]['total_name'] = '本月订单量';
|
|
@@ -1611,6 +1624,7 @@ HTML;
|
|
|
$info[7]['total_name'] = '剩余能量值';
|
|
|
$info[8]['total_name'] = '本月释放';
|
|
|
$info[9]['total_name'] = '本月提取';
|
|
|
+ $info[10]['title'] = '剩余余额';
|
|
|
return $info;
|
|
|
}
|
|
|
|