| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485 |
- <?php
- namespace addons\Achievement\common\models;
- use common\models\base\BaseActiveRecord;
- use Yii;
- /**
- * This is the model class for table "qimall_addons_achievement_grant_log".
- *
- * @property int $id
- * @property int $mall_id 商城id
- * @property string $award_proportion 奖励比例
- * @property int $cycle 结算周期:0:按周 1:按月
- * @property int|null $is_wait 是否进入待结算:1:是
- * @property string|null $cycle_time 结算时间
- * @property int $wait_settlement_time 等待结算时间
- * @property int|null $is_settlement 是否已结算 1:是
- * @property int|null $settlement_time 结算时间
- * @property float $total_performance 总业绩
- * @property int $user_num 会员数量
- * @property float $award_money 奖励金额
- * @property int|null $statistical_methods 统计方式 0:订单完成 1:支付完成
- * @property int $is_create 是否创建下期:1:是
- * @property int $end_time 本期结束时间
- * @property int|null $settlement_mode 结算方式 0:不含极差 1:含极差
- * @property int $created_at
- * @property int $updated_at
- * @property int $status 状态[-1:删除;0:禁用;1启用]
- * @property int $is_award_need_confirm 是否开启业绩审核确认模式:0否 1是
- * @property int $is_leader_first_month_no_award 是否首月成为团长不发放结算金额:0否 1是
- */
- class AchievementGrantLog extends BaseActiveRecord
- {
- /**
- * {@inheritdoc}
- */
- public static function tableName()
- {
- return 'qimall_addons_achievement_grant_log';
- }
- /**
- * {@inheritdoc}
- */
- public function rules()
- {
- return [
- [['mall_id', 'cycle', 'is_wait', 'wait_settlement_time', 'is_settlement', 'settlement_time', 'user_num', 'statistical_methods', 'is_create', 'end_time', 'settlement_mode', 'created_at', 'updated_at', 'status','is_equal','equal_percent', 'is_award_need_confirm', 'is_leader_first_month_no_award'], 'integer'],
- [['award_proportion'], 'required'],
- [['award_proportion'], 'string'],
- [['total_performance', 'award_money','equal_price_first','equal_price_second','equal_money'], 'number'],
- [['cycle_time'], 'string', 'max' => 255],
- ];
- }
- /**
- * {@inheritdoc}
- */
- public function attributeLabels()
- {
- return [
- 'id' => 'ID',
- 'mall_id' => '商城id',
- 'award_proportion' => '奖励比例',
- 'cycle' => '结算周期:0:按周 1:按月',
- 'is_wait' => '是否进入待结算:1:是',
- 'cycle_time' => '结算时间',
- 'wait_settlement_time' => '等待结算时间',
- 'is_settlement' => '是否已结算 1:是',
- 'settlement_time' => '结算时间',
- 'total_performance' => '总业绩',
- 'user_num' => '会员数量',
- 'award_money' => '奖励金额',
- 'statistical_methods' => '统计方式 0:订单完成 1:支付完成',
- 'is_create' => '是否创建下期:1:是',
- 'end_time' => '本期结束时间',
- 'settlement_mode' => '结算方式 0:不含极差 1:含极差',
- 'created_at' => 'Created At',
- 'updated_at' => 'Updated At',
- 'status' => '状态[-1:删除;0:禁用;1启用]',
- ];
- }
- }
|