| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768 |
- <?php
- namespace app\models;
- use yii\behaviors\TimestampBehavior;
- use yii\db\ActiveRecord;/**
- * This is the model class for table "{{%store_dividends}}".
- *
- * @property integer $id
- * @property integer $max_cycle
- * @property integer $current_cycle
- * @property float $dividends_money
- * @property float $league_price
- * @property integer $is_finish
- * @property string $created_at
- * @property string $updated_at
- */
- class StoreDividends extends \yii\db\ActiveRecord
- {
- /**
- * 是否完成:否;
- */
- const IS_FINISH_NO = 0;
- /**
- * 是否完成:是;
- */
- const IS_FINISH_YES = 1;
- /**
- * @inheritdoc
- */
- public static function tableName()
- {
- return '{{%store_dividends}}';
- }
- public function rules()
- {
- return [
- [['id', 'max_cycle', 'current_cycle', 'is_finish'], 'integer'],
- [['dividends_money', 'league_price', 'created_at', 'updated_at'], 'number']
- ];
- }
- public function behaviors()
- {
- return [
- [
- 'class' => TimestampBehavior::class
- ]
- ];
- }
- public function attributeLabels()
- {
- return [
- 'id' => '',
- 'max_cycle' => '最大分红周期',
- 'current_cycle' => '当前分红周期数',
- 'dividends_money' => '当前分红统计金额(订单金额*让利)',
- 'league_price' => '累计发放联盟券数量',
- 'is_finish' => '是否完成',
- 'created_at' => '创建时间',
- 'updated_at' => '修改时间'
- ];
- }
- }
|