| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980 |
- <?php
- namespace addons\Boss\common\models;
- use common\models\user\User;
- use Yii;
- /**
- * This is the model class for table "{{%addons_boss_bonus_pool_commission_log}}".
- *
- * @property int $id ID
- * @property int $mall_id 商城ID
- * @property int $user_id 用户ID
- * @property int $boss_id 股东ID
- * @property float $total_amount 分红总额
- * @property float $total_performance 团队总业绩
- * @property float $personal_performance 个人团队业绩
- * @property int $num 分红人数
- * @property float $amount 分红金额
- * @property int $status 状态[-1删除;0禁用;1正常]
- * @property string $start_at 开始时间
- * @property string $end_at 结算时间
- * @property int $billing_cycle 结算周期
- * @property int $created_at 创建时间
- * @property int $updated_at 更新时间
- * @property int $job_id 任务ID
- */
- class BossPoolPrizeCommissionLog extends \common\models\base\BaseActiveRecord
- {
- /**
- * {@inheritdoc}
- */
- public static function tableName()
- {
- return '{{%addons_boss_pool_prize_commission_log}}';
- }
- /**
- * {@inheritdoc}
- */
- public function rules()
- {
- return [
- [['mall_id', 'user_id', 'num', 'status', 'billing_cycle', 'created_at', 'updated_at', 'boss_id', 'job_id'], 'integer'],
- [['total_amount', 'total_performance', 'personal_performance', 'amount'], 'number'],
- [['start_at', 'end_at',], 'string']
- ];
- }
- /**
- * {@inheritdoc}
- */
- public function attributeLabels()
- {
- return [
- 'id' => 'ID',
- 'mall_id' => '商城ID',
- 'user_id' => '用户ID',
- 'boss_id' => '股东ID',
- 'total_amount' => '分红总额',
- 'total_performance' => '团队总业绩',
- 'personal_performance' => '个人团队业绩',
- 'num' => '分红人数',
- 'amount' => '分红金额',
- 'status' => '状态[-1删除;0禁用;1正常]',
- 'start_at' => '开始时间',
- 'end_at' => '结算时间',
- 'billing_cycle' => '结算周期',
- 'created_at' => '创建时间',
- 'updated_at' => '更新时间',
- 'job_id' => '任务ID',
- ];
- }
- public function getUser()
- {
- return $this->hasOne(User::class, ['id' => 'user_id']);
- }
- }
|