ryan 1 week ago
parent
commit
f6b8a8e451

+ 9 - 0
backendApi/modules/v1/models/lists/bonus/PeriodBonusList.php

@@ -146,6 +146,15 @@ class PeriodBonusList extends \common\libs\dataList\DataList implements DataList
                         'width' => '120',
                     ],
                 ],
+                'BONUS_BB' => [
+                    'header' => Yii::t('ctx', 'builderBonus'), // Elite奖金
+                    'headerOther' => [
+                        'width' => '120',
+                    ],
+                    'value' => function ($row) {
+                        return 0;
+                    },
+                ],
                 'BONUS_PE' => [
                     'header' => Yii::t('ctx', 'proEliteBonus'), // Pro_Elite奖金
                     'headerOther' => [

+ 1 - 0
common/messages/en-US/ctx.php

@@ -646,6 +646,7 @@ return [
     'leaderShipBonus' => 'LeaderShip Bonus',
     'stockistBonus' => 'Stockist Bonus',
     'performanceBonus' => 'Performance Bonus',
+    'builderBonus' => 'Builder Bonus',
     'welcomeBonus' => 'Welcome Bonus',
     'carBonus' => 'Car Bonus',
     'totalRevenue' => 'Total Revenue',

+ 1 - 0
common/messages/zh-CN/ctx.php

@@ -647,6 +647,7 @@ return [
     'leaderShipBonus' => 'LeaderShip奖金',
     'stockistBonus' => '店铺奖',
     'performanceBonus' => '绩效奖金',
+    'builderBonus' => '创业奖金',
     'welcomeBonus' => '迎新奖',
     'carBonus' => '车奖',
     'totalRevenue' => '总收入',

+ 1 - 1
frontendApi/modules/v1/controllers/BonusController.php

@@ -396,7 +396,7 @@ class BonusController extends BaseController {
                 'IFNULL(SUM(BONUS_WB), 0.00) AS BONUS_WB',
                 'IFNULL(SUM(BONUS_CAR), 0.00) AS BONUS_CAR',
                 'IFNULL(SUM(BONUS_PB), 0.00) AS BONUS_PB',
-                'IFNULL(SUM(BONUS_BB), 0.00) AS BONUS_BB',
+//                'IFNULL(SUM(BONUS_BB), 0.00) AS BONUS_BB',
             ])
             ->asArray()
             ->one();