| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273 |
- <?php
- namespace addons\Boss\common\models;
- use common\enums\StatusEnum;
- use Yii;
- use yii\db\Exception;
- /**
- * This is the model class for table "{{%addons_boss_performance_log}}".
- *
- * @property int $id
- * @property int $mall_id 商城ID
- * @property int $order_id 订单ID
- * @property string $order_no 订单编号
- * @property int $user_id 用户ID
- * @property int $level 计算业绩时的股东等级
- * @property float $performance 业绩,单位:元
- * @property string|null $order_detail_ids 参与业绩计算的商品订单
- * @property int $is_settlement 是否已结算【0否,1是】
- * @property int $date 数据生成日期
- * @property int|null $status 状态[-1:删除;0:禁用;1启用]
- * @property int $created_at
- * @property int $updated_at
- */
- class AddonsBossPerformanceLog extends \common\models\base\BaseActiveRecord
- {
- /**
- * {@inheritdoc}
- */
- public static function tableName()
- {
- return '{{%addons_boss_performance_log}}';
- }
- /**
- * {@inheritdoc}
- */
- public function rules()
- {
- return [
- [['mall_id', 'order_id', 'user_id', 'level', 'is_settlement', 'date', 'status', 'created_at', 'updated_at'], 'integer'],
- [['performance'], 'number'],
- [['order_detail_ids'], 'string'],
- [['order_no'], 'string', 'max' => 100],
- ];
- }
- /**
- * {@inheritdoc}
- */
- public function attributeLabels()
- {
- return [
- 'id' => 'ID',
- 'mall_id' => '商城ID',
- 'order_id' => '订单ID',
- 'order_no' => '订单编号',
- 'user_id' => '用户ID',
- 'level' => '计算业绩时的股东等级',
- 'performance' => '这笔订单股东获得的业绩',
- 'commission' => '结算的佣金,单位:元',
- 'settlement_config' => '结算时的配置',
- 'settlement_data' => '结算时的数据',
- 'is_settlement' => '是否已结算【0否,1是】',
- 'date' => '数据生成日期',
- 'status' => '状态[-1:删除;0:禁用;1启用]',
- 'created_at' => '创建时间',
- 'updated_at' => '更新时间',
- ];
- }
- }
|