CensusMallSingleDayCapital.php 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  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_single_day_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 string $date 日期
  19. * @property int $status 状态[-1:删除;0:禁用;1启用;]
  20. * @property int $created_at 创建时间
  21. * @property int $updated_at 上次更新数据时间
  22. */
  23. class CensusMallSingleDayCapital extends BaseActiveRecord
  24. {
  25. /**
  26. * {@inheritdoc}
  27. */
  28. public static function tableName()
  29. {
  30. return '{{%census_mall_single_day_capital}}';
  31. }
  32. /**
  33. * {@inheritdoc}
  34. */
  35. public function rules()
  36. {
  37. return [
  38. [['mall_id', 'status', 'created_at', 'updated_at'], 'integer'],
  39. [['total_nums', 'use_nums', 'surplus_nums', 'withdrawal_nums', 'service_charge', 'cancel_nums', 'unsettled'], 'number'],
  40. [['type'], 'string', 'max' => 255],
  41. [['date'], 'string', 'max' => 20],
  42. ];
  43. }
  44. /**
  45. * {@inheritdoc}
  46. */
  47. public function attributeLabels()
  48. {
  49. return [
  50. 'id' => 'ID',
  51. 'mall_id' => '商城ID',
  52. 'type' => '类型',
  53. 'total_nums' => '累计数量',
  54. 'use_nums' => '使用数量',
  55. 'surplus_nums' => '剩余数量',
  56. 'withdrawal_nums' => '提现数量',
  57. 'service_charge' => '手续费',
  58. 'cancel_nums' => '无效数量',
  59. 'unsettled' => '待结算数量',
  60. 'date' => '日期',
  61. 'status' => '状态[-1:删除;0:禁用;1启用;]',
  62. 'created_at' => '创建时间',
  63. 'updated_at' => '上次更新数据时间',
  64. ];
  65. }
  66. }