AddonsBossRewardLog.php 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. <?php
  2. namespace addons\BossWeight\common\models;
  3. use Yii;
  4. /**
  5. * This is the model class for table "{{%addons_boss_weight_reward_log}}".
  6. *
  7. * @property int $id
  8. * @property int $mall_id 商城ID
  9. * @property int $order_id 订单ID
  10. * @property string $order_no 订单编号
  11. * @property int $user_id 用户ID
  12. * @property int $type 结算类型:1永久分红,2额外分红
  13. * @property int $level 结算时用户的股东等级
  14. * @property int $average_count 结算人数
  15. * @property float $amounts 结算的总金额,单位:元
  16. * @property float $commission 结算的佣金,单位:元
  17. * @property string|null $settlement_config 结算时的配置
  18. * @property string|null $settlement_data 结算时的数据
  19. * @property int $is_settlement 是否已结算【0否,1是】
  20. * @property int $date 数据生成日期
  21. * @property int|null $status 状态[-1:删除;0:禁用;1启用]
  22. * @property int $created_at
  23. * @property int $updated_at
  24. */
  25. class AddonsBossRewardLog extends \common\models\base\BaseActiveRecord
  26. {
  27. /**
  28. * {@inheritdoc}
  29. */
  30. public static function tableName()
  31. {
  32. return '{{%addons_boss_weight_reward_log}}';
  33. }
  34. /**
  35. * {@inheritdoc}
  36. */
  37. public function rules()
  38. {
  39. return [
  40. [['mall_id', 'order_id', 'user_id', 'type', 'level', 'average_count', 'is_settlement', 'date', 'status', 'created_at', 'updated_at'], 'integer'],
  41. [['amounts', 'commission', 'order_price', 'settle_price'], 'number'],
  42. [['settlement_config', 'settlement_data'], 'string'],
  43. [['order_no'], 'string', 'max' => 100],
  44. ];
  45. }
  46. /**
  47. * {@inheritdoc}
  48. */
  49. public function attributeLabels()
  50. {
  51. return [
  52. 'id' => 'ID',
  53. 'mall_id' => '商城ID',
  54. 'order_id' => '订单ID',
  55. 'order_no' => '订单编号',
  56. 'user_id' => '用户ID',
  57. 'type' => '结算类型:1永久分红,2额外分红',
  58. 'level' => '结算时用户的股东等级',
  59. 'average_count' => '结算人数',
  60. 'amounts' => '计算总金额,单位:元',
  61. 'commission' => '结算的佣金,单位:元',
  62. 'order_price' => '订单总金额,单位:元',
  63. 'settle_price' => '结算总金额,单位:元',
  64. 'settlement_config' => '结算时的配置',
  65. 'settlement_data' => '结算时的数据',
  66. 'is_settlement' => '是否已结算【0否,1是】',
  67. 'date' => '数据生成日期',
  68. 'status' => '状态[-1:删除;0:禁用;1启用]',
  69. 'created_at' => 'Created At',
  70. 'updated_at' => 'Updated At',
  71. ];
  72. }
  73. }