|
|
@@ -412,7 +412,7 @@ class User extends \common\components\ActiveRecord
|
|
|
public static function sumDevPvByUserId($userId) {
|
|
|
$decOrderPv = DecOrder::find()
|
|
|
->select('SUM(DEC_PV) AS PV_SUM')
|
|
|
- ->where('TO_USER_ID=:TO_USER_ID',
|
|
|
+ ->where('TO_USER_ID=:TO_USER_ID AND IS_DEL=0',
|
|
|
[
|
|
|
'TO_USER_ID'=>$userId,
|
|
|
|
|
|
@@ -423,7 +423,7 @@ class User extends \common\components\ActiveRecord
|
|
|
$decOrderPv = isset($decOrderPv['PV_SUM']) ? $decOrderPv['PV_SUM'] : 0;
|
|
|
$orderDecPv = OrderDec::find()
|
|
|
->select('SUM(PAY_PV) AS PV_SUM')
|
|
|
- ->where('USER_ID=:USER_ID',
|
|
|
+ ->where('USER_ID=:USER_ID AND IS_DELETE=0',
|
|
|
[
|
|
|
'USER_ID'=>$userId,
|
|
|
|