Files
xk-api-yii/common/modelsgii/Order.php
2024-09-19 11:32:39 +08:00

105 lines
4.0 KiB
PHP
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<?php
namespace common\modelsgii;
use Yii;
/**
* This is the model class for table "yii_order".
*
* @property int $id
* @property int $user_id 关联用户
* @property int $su_id 关联咨询医生id
* @property int $ui_id 关联图文问诊id
* @property int $type 订单类型1是图文2是视频
* @property int $image_limit_status 图文限制回复状态
* @property int $image_limit_number 图文限制回复条数
* @property int $left_number 剩余回复条数,未开启限制0代表无限制开启限制0代表没条数
* @property string $order_no 订单编号
* @property float $total_pay_price 金额
* @property int $is_pay 是否支付0否1是
* @property int $pay_time 支付时间
* @property int $pay_type 支付类型 1微信2支付宝3银行卡4其他
* @property int $cancel_status 取消状态0否1是
* @property int $cancel_time 取消时间
* @property string $cancel_remark 取消备注(未支付超时取消,主动取消,拒绝取消,超时未接诊取消)
* @property int $auto_cancel_time 自动取消时间
* @property int $auto_refund_time 未接诊超时自动退款时间
* @property int $auto_over_time 接诊后自动结束时间
* @property int $over_time 接诊结束时间
* @property int $accept_status 是否接诊默认0无状态,1待接诊2已接诊3已拒绝结束4正常结束5超时未接诊结束6主动取消结束
* @property int $accept_time 接诊时间
* @property string $refuse_reason 拒绝原因
* @property int $refuse_time 拒绝时间
* @property int $is_comment 是否评价
* @property int $refund_status 退款状态
* @property int $refund_time 退款时间
* @property int $comment_time 评价时间
* @property int $created_at
* @property int $updated_at
*/
class Order extends \common\core\BaseActiveRecord
{
/**
* {@inheritdoc}
*/
public static function tableName()
{
return 'yii_order';
}
/**
* {@inheritdoc}
*/
public function rules()
{
return [
[['user_id', 'order_no', 'total_pay_price'], 'required'],
[['user_id', 'su_id', 'ui_id', 'type', 'image_limit_status', 'image_limit_number', 'left_number', 'is_pay', 'pay_time', 'pay_type', 'cancel_status', 'cancel_time', 'auto_cancel_time', 'auto_refund_time', 'auto_over_time', 'over_time', 'accept_status', 'accept_time', 'refuse_time', 'is_comment', 'refund_status', 'refund_time', 'comment_time', 'created_at', 'updated_at'], 'integer'],
[['total_pay_price'], 'number'],
[['order_no'], 'string', 'max' => 50],
[['cancel_remark'], 'string', 'max' => 100],
[['refuse_reason'], 'string', 'max' => 255],
];
}
/**
* {@inheritdoc}
*/
public function attributeLabels()
{
return [
'id' => 'ID',
'user_id' => 'User ID',
'su_id' => 'Su ID',
'ui_id' => 'Ui ID',
'type' => 'Type',
'image_limit_status' => 'Image Limit Status',
'image_limit_number' => 'Image Limit Number',
'left_number' => 'Left Number',
'order_no' => 'Order No',
'total_pay_price' => 'Total Pay Price',
'is_pay' => 'Is Pay',
'pay_time' => 'Pay Time',
'pay_type' => 'Pay Type',
'cancel_status' => 'Cancel Status',
'cancel_time' => 'Cancel Time',
'cancel_remark' => 'Cancel Remark',
'auto_cancel_time' => 'Auto Cancel Time',
'auto_refund_time' => 'Auto Refund Time',
'auto_over_time' => 'Auto Over Time',
'over_time' => 'Over Time',
'accept_status' => 'Accept Status',
'accept_time' => 'Accept Time',
'refuse_reason' => 'Refuse Reason',
'refuse_time' => 'Refuse Time',
'is_comment' => 'Is Comment',
'refund_status' => 'Refund Status',
'refund_time' => 'Refund Time',
'comment_time' => 'Comment Time',
'created_at' => 'Created At',
'updated_at' => 'Updated At',
];
}
}