| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109 |
- <?php
- namespace common\models\user;
- use Yii;
- /**
- * This is the model class for table "qimall_user_statistics_total".
- *
- * @property int $id ID
- * @property int $mall_id 商城ID
- * @property int $user_id 用户ID
- * @property int $order_num 下单数
- * @property float $order_money
- * @property int $pay_num 支付订单数
- * @property float $pay_money
- * @property int $pay_goods_num 支付商品件数
- * @property float|null $average_money 客单价(订单总额/订单总数)
- * @property int $finish_order_num 已完成订单数
- * @property float $finish_order_money
- * @property int $finish_goods_num 已完成商品数
- * @property int $refund_order_num 退款订单数
- * @property float $refund_order_money
- * @property int $refund_goods_num 退款商品数
- * @property float $recharge_money
- * @property float $original_order_money
- * @property int $cancel_order_num 已取消订单数
- * @property float $cancel_order_money
- * @property int $cancel_goods_num 已取消商品数
- * @property float $balance_pay
- * @property float $wechat_pay
- * @property float $ali_pay
- * @property int $status 状态【1启用 0禁用 -1删除】
- * @property int $created_at 创建时间
- * @property int $updated_at 更新数据时间
- * @property int $share_nums 分享次数
- * @property int $visit_nums 访问次数
- * @property float $pay_selling_price 已支付的订单售价总额(商品价格)
- * @property float $finish_selling_price 已完成的订单售价总额(商品价格)
- * @property float $user_goods_price_total 已支付的业绩
- * @property int $user_order_num 用户订单数(订单售后完成会减)
- * @property int $refund_finish_order_num
- * @property float $refund_finish_order_money
- */
- class UserStatisticsTotal extends \common\models\base\BaseActiveRecord
- {
- /**
- * {@inheritdoc}
- */
- public static function tableName()
- {
- return 'qimall_user_statistics_total';
- }
- /**
- * {@inheritdoc}
- */
- public function rules()
- {
- return [
- [['mall_id', 'user_id', 'order_num', 'pay_num', 'pay_goods_num', 'finish_order_num', 'finish_goods_num', 'refund_order_num', 'refund_goods_num', 'cancel_order_num', 'cancel_goods_num', 'status', 'created_at', 'updated_at', 'share_nums', 'visit_nums', 'user_order_num', 'refund_finish_order_num'], 'integer'],
- [['order_money', 'pay_money', 'average_money', 'finish_order_money', 'refund_order_money', 'recharge_money', 'original_order_money', 'cancel_order_money', 'balance_pay', 'wechat_pay', 'ali_pay', 'pay_selling_price', 'finish_selling_price', 'user_goods_price_total', 'refund_finish_order_money'], 'number'],
- ];
- }
- /**
- * {@inheritdoc}
- */
- public function attributeLabels()
- {
- return [
- 'id' => 'ID',
- 'mall_id' => 'Mall ID',
- 'user_id' => 'User ID',
- 'order_num' => 'Order Num',
- 'order_money' => 'Order Money',
- 'pay_num' => 'Pay Num',
- 'pay_money' => 'Pay Money',
- 'pay_goods_num' => 'Pay Goods Num',
- 'average_money' => 'Average Money',
- 'finish_order_num' => 'Finish Order Num',
- 'finish_order_money' => 'Finish Order Money',
- 'finish_goods_num' => 'Finish Goods Num',
- 'refund_order_num' => 'Refund Order Num',
- 'refund_order_money' => 'Refund Order Money',
- 'refund_goods_num' => 'Refund Goods Num',
- 'recharge_money' => 'Recharge Money',
- 'original_order_money' => 'Original Order Money',
- 'cancel_order_num' => 'Cancel Order Num',
- 'cancel_order_money' => 'Cancel Order Money',
- 'cancel_goods_num' => 'Cancel Goods Num',
- 'balance_pay' => 'Balance Pay',
- 'wechat_pay' => 'Wechat Pay',
- 'ali_pay' => 'Ali Pay',
- 'status' => 'Status',
- 'created_at' => 'Created At',
- 'updated_at' => 'Updated At',
- 'share_nums' => 'Share Nums',
- 'visit_nums' => 'Visit Nums',
- 'pay_selling_price' => 'Pay Selling Price',
- 'finish_selling_price' => 'Finish Selling Price',
- 'user_goods_price_total' => 'User Goods Price Total',
- 'user_order_num' => 'User Order Num',
- 'refund_finish_order_num' => 'Refund Finish Order Num',
- 'refund_finish_order_money' => 'Refund Finish Order Money',
- ];
- }
- }
|