|
@@ -473,12 +473,15 @@ class FinanceRepository extends BaseRepository
|
|
473
|
|
473
|
|
|
474
|
|
474
|
|
|
475
|
// 共富会员概况
|
475
|
// 共富会员概况
|
|
|
|
476
|
+ $sWeekWhere = " 1=1";
|
|
|
|
477
|
+ $weekWhere = " 1=1";
|
|
|
|
478
|
+ $dayWhere = " 1=1";
|
|
476
|
//上周时间条件
|
479
|
//上周时间条件
|
|
477
|
- $sWeekWhere = " and DATE(create_time) >= '" . $startDate . "' and DATE(create_time) <= '" . $endDate . "'";
|
|
|
|
|
|
480
|
+ $sWeekWhere .= " and DATE(create_time) >= '" . $startDate . "' and DATE(create_time) <= '" . $endDate . "'";
|
|
478
|
//周时间条件
|
481
|
//周时间条件
|
|
479
|
- $weekWhere = " and DATE(create_time) >= '" . $oneWeekAgoFormatted . "' and DATE(create_time) <= '" . $todayFormatted . "'";
|
|
|
|
|
|
482
|
+ $weekWhere .= " and DATE(create_time) >= '" . $oneWeekAgoFormatted . "' and DATE(create_time) <= '" . $todayFormatted . "'";
|
|
480
|
//今日时间条件
|
483
|
//今日时间条件
|
|
481
|
- $dayWhere = " and DATE(create_time) = '" . $todayFormatted . "'";
|
|
|
|
|
|
484
|
+ $dayWhere .= " and DATE(create_time) = '" . $todayFormatted . "'";
|
|
482
|
$sharedUserCount = Db::name('shared_prosperity_user')->count(); //共富会员总人数
|
485
|
$sharedUserCount = Db::name('shared_prosperity_user')->count(); //共富会员总人数
|
|
483
|
$sharedUserDayCount = Db::name('shared_prosperity_user')->where($dayWhere)->count(); //共富今日新增会员
|
486
|
$sharedUserDayCount = Db::name('shared_prosperity_user')->where($dayWhere)->count(); //共富今日新增会员
|
|
484
|
$sharedUserPvCount = Db::name('shared_prosperity_reward_record')->where(['type'=>SharedProsperityRewardRecordEnum::TYPE['PV']['code']])->sum('number'); // 共富会员专区总业绩
|
487
|
$sharedUserPvCount = Db::name('shared_prosperity_reward_record')->where(['type'=>SharedProsperityRewardRecordEnum::TYPE['PV']['code']])->sum('number'); // 共富会员专区总业绩
|