|
|
@@ -4137,7 +4137,9 @@ class BonusCalc extends BaseObject {
|
|
|
// 判断会员是否活跃
|
|
|
public function _isPerfActive($userId): bool
|
|
|
{
|
|
|
- $pv = PerfPeriod::find()->where('USER_ID=:USER_ID AND CALC_MONTH=:CALC_MONTH', ['USER_ID'=>$userId, 'CALC_MONTH'=>$this->_calcYearMonth])->SUM('PV_PCS');
|
|
|
+ $pv = PerfPeriod::find()->where('USER_ID=:USER_ID AND CALC_MONTH=:CALC_MONTH AND PERIOD_NUM<=:PERIOD_NUM',
|
|
|
+ ['USER_ID'=>$userId, 'CALC_MONTH'=>$this->_calcYearMonth, 'PERIOD_NUM'=>$this->_periodNum])
|
|
|
+ ->SUM('PV_PCS');
|
|
|
|
|
|
return $pv >= $this->_sysConfig['monthPcsPvFxCondition']['VALUE'];
|
|
|
}
|