Просмотр исходного кода

更新最后一期共享奖金流水的实发 积分 管理费

root 3 лет назад
Родитель
Сommit
b83718fa41
1 измененных файлов с 6 добавлено и 0 удалено
  1. 6 0
      common/helpers/bonus/BonusCalc.php

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

@@ -3305,6 +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;
                 }