root 3 år sedan
förälder
incheckning
d951c5a424
1 ändrade filer med 1 tillägg och 6 borttagningar
  1. 1 6
      common/helpers/bonus/BonusCalc.php

+ 1 - 6
common/helpers/bonus/BonusCalc.php

@@ -3305,17 +3305,12 @@ class BonusCalc extends BaseObject {
                     $gxRealMonth = $gxDeduct['surplus'];
                     $gxManageMonth = $gxDeduct['manageTax'];
                     $gxPointMonth = $gxDeduct['reConsumePoints'];
-                    // 将此期共享奖流水中的数据实发更新
-                    CalcBonusGX::updateAll(
-                        ['AMOUNT' => $gxRealMonth, 'RECONSUME_POINTS' => $gxPointMonth, 'MANAGE_TAX' => $gxManageMonth], 
-                        'PERIOD_NUM=:PERIOD_NUM AND USER_ID=:USER_ID', 
-                        [':PERIOD_NUM' => $this->_periodNum,':USER_ID' => $userId]
-                    );
                 } else {
                     $gxRealMonth = $gxManageMonth = $gxPointMonth = 0;
                 }
                 // 实发共享奖,还需要再扣除管理费和复消积分
                 $bonus['BONUS_GX'] = $gxRealMonth;
+                $realBonusGx = $gxRealMonth;
                 $bonus['RECONSUME_POINTS'] = $bonus['RECONSUME_POINTS']+$gxPointMonth;
                 $realBonusGl += $bonusGlSum + $bonus['BONUS_GL'];
                 $bonus['MANAGE_TAX'] = $bonus['MANAGE_TAX'] + $gxManageMonth;