Selaa lähdekoodia

基础数据,去掉计算服务当期生成的

root 3 vuotta sitten
vanhempi
commit
2452d9367b
1 muutettua tiedostoa jossa 9 lisäystä ja 3 poistoa
  1. 9 3
      common/models/ServeLog.php

+ 9 - 3
common/models/ServeLog.php

@@ -100,12 +100,18 @@ class ServeLog extends \common\components\ActiveRecord
         $infoCount = UserInfo::find()->where('1=1')->count('ID');
         $networkConut = UserNetwork::find()->where('1=1')->count('ID');
         $userPerfConut = UserPerf::find()->where('1=1')->count('ID');
-        $calcBonusQyConut = CalcBonusQY::find()->where('1=1')->count('ID');
-        $perfPeriodCount = PerfPeriod::find()->where('1=1')->count('ID');
+        $calcBonusQyConut = CalcBonusQY::find()
+        ->where('PERIOD_NUM!=:PERIOD_NUM', [':PERIOD_NUM'=>$periodNum])
+        ->count('ID');
+        $perfPeriodCount = PerfPeriod::find()
+        ->where('PERIOD_NUM!=:PERIOD_NUM', [':PERIOD_NUM'=>$periodNum])
+        ->count('ID');
         $perfOrderCount = PerfOrder::find()->where('1=1')->count('ID');
         $relationCount = UserRelation::find()->where('1=1')->count('ID');
         $periodCount = Period::find()->where('1=1')->count('ID');
-        $perfMonthCount = PerfMonth::find()->where('1=1')->count('ID');
+        $perfMonthCount = PerfMonth::find()
+        ->where('CALC_MONTH!=:CALC_MONTH', [':CALC_MONTH'=>$calcMonth])
+        ->count('ID');
         $desc = "记录推送基础数据信息:AR_USER-推送用户总条数:$userCount;AR_USER_INFO-推送用户信息总条数:$infoCount;
 AR_USER_NETWORK_NEW-推送安置网络总条数:$networkConut;AR_USER_PERF-推送用户结余业绩总条数:$userPerfConut;
 AR_CALC_BONUS_QY-推送团队奖总条数:$calcBonusQyConut;AR_PERF_PERIOD-推送期业绩总条数:$perfPeriodCount;