Selaa lähdekoodia

fix(finance): 修复共富会员统计查询条件错误

- 移除 shared_prosperity_user 表统计中的多余 where 条件
- 确保共富会员总人数统计准确性
shichen 5 kuukautta sitten
vanhempi
commit
32b7e3193a
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      app/common/repositories/finance/FinanceRepository.php

+ 1 - 1
app/common/repositories/finance/FinanceRepository.php

@@ -473,7 +473,7 @@ class FinanceRepository extends BaseRepository
473 473
 
474 474
 
475 475
         // 共富会员概况
476
-        $sharedUserCount = Db::name('shared_prosperity_user')->where($where)->count(); //共富会员总人数
476
+        $sharedUserCount = Db::name('shared_prosperity_user')->count(); //共富会员总人数
477 477
         $sharedUserDayCount = Db::name('shared_prosperity_user')->where($dayWhere)->count(); //共富今日新增会员
478 478
         $sharedUserPvCount = Db::name('shared_prosperity_reward_record')->where(['type'=>SharedProsperityRewardRecordEnum::TYPE['PV']['code']])->sum('pv'); // 共富会员专区总业绩
479 479
         $sharedUserLastWeekPv = Db::name('shared_prosperity_reward_record')->where($sWeekWhere)->where(['type'=>SharedProsperityRewardRecordEnum::TYPE['PV']['code']])->sum('pv'); // 共富会员专区上周总业绩