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

81 lines
2.4 KiB
PHP

<?php
namespace common\modelsgii;
use Yii;
/**
* This is the model class for table "yii_product_order".
*
* @property int $id 11
* @property int $su_id
* @property int $user_id 用户id
* @property int $up_id 就诊人id
* @property string $order_no 订单号
* @property int $p_id 处方id
* @property int $type 支付类型 1微信2支付宝3银行卡4其他
* @property int $is_pay 是否支付0否1是
* @property float $total_pay_price
* @property int $pay_time
* @property int $cancel_status
* @property int $cancel_time
* @property int $refund_status
* @property int $refund_time
* @property string $cancel_remark 取消备注(未支付超时取消,主动取消,拒绝取消)
* @property int $status 产品订单状态0未支付1待发货2待收货3待评价4已退款
* @property int $created_at
* @property int $updated_at
*/
class ProductOrder extends \common\core\BaseActiveRecord
{
/**
* {@inheritdoc}
*/
public static function tableName()
{
return 'yii_product_order';
}
/**
* {@inheritdoc}
*/
public function rules()
{
return [
[['su_id', 'user_id', 'order_no', 'total_pay_price', 'status'], 'required'],
[['su_id', 'user_id', 'p_id', 'type', 'is_pay', 'pay_time', 'cancel_status', 'cancel_time', 'refund_status', 'refund_time', 'status', 'created_at', 'updated_at'], 'integer'],
[['total_pay_price'], 'number'],
[['order_no'], 'string', 'max' => 50],
[['cancel_remark'], 'string', 'max' => 255],
];
}
/**
* {@inheritdoc}
*/
public function attributeLabels()
{
return [
'id' => 'ID',
'su_id' => 'Su ID',
'user_id' => 'User ID',
'up_id' => 'Up ID',
'order_no' => 'Order No',
'p_id' => 'P ID',
'type' => 'Type',
'is_pay' => 'Is Pay',
'total_pay_price' => 'Total Pay Price',
'pay_time' => 'Pay Time',
'cancel_status' => 'Cancel Status',
'cancel_time' => 'Cancel Time',
'cancel_remark' => 'Cancel Remark',
'refund_status' => 'Refund Status',
'refund_time' => 'Refund Time',
'status' => 'Status',
'sync_order_no' => '互医的订单号',
'created_at' => 'Created At',
'updated_at' => 'Updated At',
];
}
}