| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273 |
- <?php
- namespace addons\YunfastPay\common\models;
- use Yii;
- /**
- * This is the model class for table "{{%addons_yunfast_pay_splitbill_log}}".
- *
- * @property int $id
- * @property int $mall_id 商城ID
- * @property int $payment_id 支付订单ID
- * @property string $order_no 订单号
- * @property string|null $req_data 请求数据
- * @property string|null $res_data 返回数据
- * @property int $status 状态
- * @property int $updated_at
- * @property int $created_at
- */
- class SplitbillLog extends ActiveRecord
- {
- protected static $json_fields = [
- 'req_data', 'res_data'
- ];
- /**
- * {@inheritdoc}
- */
- public static function tableName()
- {
- return '{{%addons_yunfast_pay_splitbill_log}}';
- }
- /**
- * {@inheritdoc}
- */
- public function rules()
- {
- return [
- [['mall_id', 'payment_id', 'order_no'], 'required'],
- [['mall_id', 'payment_id', 'status', 'updated_at', 'created_at'], 'integer'],
- [['req_data', 'res_data'], 'string'],
- [['order_no'], 'string', 'max' => 32],
- ];
- }
- /**
- * {@inheritdoc}
- */
- public function attributeLabels()
- {
- return [
- 'id' => 'ID',
- 'mall_id' => 'Mall ID',
- 'payment_id' => 'Payment ID',
- 'order_no' => 'Order No',
- 'req_data' => 'Req Data',
- 'res_data' => 'Res Data',
- 'status' => 'Status',
- 'updated_at' => 'Updated At',
- 'created_at' => 'Created At',
- ];
- }
- /**
- * @return ActiveQueryInterface the relational query object.
- */
- public function getItem()
- {
- return $this->hasMany(SplitbillItem::class, ['log_id' => 'id']);
- }
- }
|