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

feat: NG-71: 会员奖金列表调整

kevin 1 год назад
Родитель
Сommit
e1d91cc2b9
1 измененных файлов с 6 добавлено и 37 удалено
  1. 6 37
      backendApi/modules/v1/models/lists/bonus/PeriodBonusList.php

+ 6 - 37
backendApi/modules/v1/models/lists/bonus/PeriodBonusList.php

@@ -48,8 +48,6 @@ class PeriodBonusList extends \common\libs\dataList\DataList implements DataList
                 $this->listData['list'][$key]['LAST_STATUS_NAME'] = Tool::paramConvert(Yii::$app->params['userStatus'])[$value['LAST_STATUS']]['label'];
                 $this->listData['list'][$key]['LAST_REC_USER_NAME'] = Info::getUserNameByUserId($value['REC_UID']);
                 $this->listData['list'][$key]['LAST_REC_REAL_NAME'] = Info::getUserRealNameByUserId($value['REC_UID']);
-                $this->listData['list'][$key]['LAST_CON_USER_NAME'] = Info::getUserNameByUserId($value['CON_UID']);
-                $this->listData['list'][$key]['LAST_CON_REAL_NAME'] = Info::getUserRealNameByUserId($value['CON_UID']);
             }
         }
     }
@@ -71,14 +69,11 @@ class PeriodBonusList extends \common\libs\dataList\DataList implements DataList
                         'tag'=>['type'=>'', 'size' => 'small', 'class'=>'no-border'],
                     ],
                 ],
-                'CALCULATED_AT' => [
-                    'header' =>  \Yii::t('ctx', 'bonusDate'), // 结算时间
-                    'value' => function($row) {
-                        return (new DateTime([
-                            'value' => $row['CALCULATED_AT'],
-                        ]))->result();
-                    },
-                    'headerOther' => ['width' => '170'],
+                'CALC_MONTH' => [
+                    'header' => Yii::t('ctx', 'bonusMonth'), // 结算月
+                    'headerOther' => [
+                        'width' => '110',
+                    ],
                 ],
                 'LAST_USER_NAME' => [
                     'header' => \Yii::t('ctx', 'memberCode'), // 会员编号
@@ -116,27 +111,6 @@ class PeriodBonusList extends \common\libs\dataList\DataList implements DataList
                         'width' => '140',
                     ],
                 ],
-                'LAST_MOBILE' => [
-                    'header' => \Yii::t('ctx', 'phoneNumber'),//手机号码
-                    'headerOther' => [
-                        'width' => '120',
-                    ],
-                ],
-                'LAST_PERIOD_AT' => [
-                    'header' => Yii::t('ctx', 'joiningPeriod'), // 加入期数
-                    'headerOther' => [
-                        'width' => '110',
-                    ],
-                ],
-                'LAST_CREATED_AT' => [
-                    'header' => Yii::t('ctx', 'joiningDate'), // 加入时间
-                    'value' => function($row) {
-                        return (new DateTime([
-                            'value' => $row['LAST_CREATED_AT'],
-                        ]))->result();
-                    },
-                    'headerOther' => ['width' => '170'],
-                ],
                 'LAST_REC_USER_NAME' => [
                     'header' => Yii::t('ctx', 'sponsorNo'), // 开拓者编号
                     'headerOther' => [
@@ -149,12 +123,7 @@ class PeriodBonusList extends \common\libs\dataList\DataList implements DataList
                         'width' => '120',
                     ],
                 ],
-                'CALC_MONTH' => [
-                    'header' => Yii::t('ctx', 'bonusMonth'), // 结算月
-                    'headerOther' => [
-                        'width' => '110',
-                    ],
-                ],
+
             ];
         }
         return $this->columns;