CensusMallCapitalStatistics.php 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. <?php
  2. namespace common\models\census;
  3. use common\models\base\BaseActiveRecord;
  4. use Yii;
  5. /**
  6. * This is the model class for table "qimall_census_mall_capital".
  7. *
  8. * @property int $id ID
  9. * @property int $mall_id 商城ID
  10. * @property string $type 类型
  11. * @property float $total_nums 累计数量【已结算佣金】
  12. * @property float $use_nums 使用数量
  13. * @property float $surplus_nums 剩余数量
  14. * @property float $withdrawal_nums 提现数量
  15. * @property float $service_charge 手续费
  16. * @property float $cancel_nums 无效数量
  17. * @property float $unsettled 待结算数量
  18. * @property int $status 状态[-1:删除;0:禁用;1启用;]
  19. * @property int $created_at 创建时间
  20. * @property int $updated_at 上次更新数据时间
  21. */
  22. class CensusMallCapitalStatistics extends BaseActiveRecord
  23. {
  24. /**
  25. * {@inheritdoc}
  26. */
  27. public static function tableName()
  28. {
  29. return '{{%census_mall_capital_statistics}}';
  30. }
  31. /**
  32. * {@inheritdoc}
  33. */
  34. public function rules()
  35. {
  36. return [
  37. [['mall_id', 'status', 'created_at', 'updated_at'], 'integer'],
  38. [['balance_surplus_nums', 'commission_surplus_nums', 'score_surplus_nums'], 'number'],
  39. [['statistics_date'], 'string'],
  40. ];
  41. }
  42. /**
  43. * {@inheritdoc}
  44. */
  45. public function attributeLabels()
  46. {
  47. return [
  48. 'id' => 'ID',
  49. 'mall_id' => '商城ID',
  50. 'statistics_date' => '统计日期',
  51. 'balance_surplus_nums' => '余额剩余数量',
  52. 'commission_surplus_nums' => '佣金剩余数量',
  53. 'score_surplus_nums' => '积分剩余数量',
  54. 'status' => '状态[-1:删除;0:禁用;1启用;]',
  55. 'created_at' => '创建时间',
  56. 'updated_at' => '更新时间',
  57. ];
  58. }
  59. }