| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687 |
- <?php
- namespace addons\QiShangTong\common\models;
- use common\models\order\OrderRefund;
- use Yii;
- /**
- * This is the model class for table "qimall_addons_qi_shang_tong_refund".
- *
- * @property int $id ID
- * @property int $mall_id 商城ID
- * @property int $created_at 创建时间
- * @property int $updated_at 更新时间
- * @property int $status 状态
- * @property int $order_id 订单ID
- * @property string $order_no 订单编号
- * @property int $refund_id 退款ID
- * @property string $refund_no 退款单号
- * @property string $third_order_no 第三方订单编号
- * @property int $third_refund_id 第三方退款ID
- * @property array|null $content 最后一次更新数据
- * @property array|null $post 请求数据
- * @property int $order_detail_id 订单详情ID
- * @property int $refund_status 售后状态
- * @property int $user_id 售后状态
- * @property string|null $last_resp 订单编号
- * @property array|null $third_detail 定时同步的数据
- * @property int $req_success 订单详情ID
- * @property string $last_req 订单编号
- */
- class QiShangTongRefund extends \common\models\base\BaseActiveRecord
- {
- /**
- * {@inheritdoc}
- */
- public static function tableName()
- {
- return 'qimall_addons_qi_shang_tong_refund';
- }
- /**
- * {@inheritdoc}
- */
- public function rules()
- {
- return [
- [['mall_id', 'created_at', 'updated_at', 'status', 'order_id', 'refund_id', 'third_refund_id', 'order_detail_id', 'refund_status', 'user_id', 'req_success'], 'integer'],
- [['content', 'post', 'third_detail'], 'safe'],
- [['order_no', 'refund_no'], 'string', 'max' => 30],
- [['third_order_no'], 'string', 'max' => 50],
- [['last_req'], 'string', 'max' => 255],
- [['last_resp'], 'string']
- ];
- }
- /**
- * {@inheritdoc}
- */
- public function attributeLabels()
- {
- return [
- 'id' => 'ID',
- 'mall_id' => 'Mall ID',
- 'created_at' => 'Created At',
- 'updated_at' => 'Updated At',
- 'status' => 'Status',
- 'order_id' => 'Order ID',
- 'order_no' => 'Order No',
- 'refund_id' => 'Refund ID',
- 'refund_no' => 'Refund No',
- 'third_order_no' => 'Third Order No',
- 'third_refund_id' => 'Third Refund ID',
- 'content' => 'Content',
- 'post' => 'Post',
- 'order_detail_id' => 'Order Detail ID',
- 'refund_status' => 'Refund Status',
- 'third_detail' => 'Third Detail',
- ];
- }
- public function getRefund()
- {
- return $this->hasOne(OrderRefund::class, ['id' => 'refund_id']);
- }
- }
|