| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990 |
- <?php
- namespace common\models;
- /**
- * This is the model class for table "xhActiveOrder".
- *
- * @property string $id 订单号
- * @property int $activeId 活动id
- * @property int $payWay 支付方式 0微信 1支付宝 2余额,具体请查看配置文件configDict payWay
- * @property int $payStyle 0第三方支付 1非第三方支付
- * @property string $payCode 支付返回号
- * @property string $prePrice 票面价,原价,未修改价格,优惠前价格
- * @property string $actPrice 实际付款,修改后价格,使用优惠码后付的价格
- * @property int $ticketNum 票数
- * @property string $coupon 优惠码
- * @property int $couponId 代金劵id
- * @property int $userId 用户id
- * @property string $alipayId 支付宝用户id
- * @property int $merchantId 商户id
- * @property string $remark 备注
- * @property int $payStatus 付款状态 0待付款 1已经付款
- * @property string $createTime 创建时间
- * @property string $updateTime 修改时间
- * @property int $classId 票种id
- * @property int $deadline 订单有效期
- * @property int $addTime 添加时间,时间戳格式
- * @property string $bookName 订票人真实姓名
- * @property string $bookMobile 订票人电话
- */
- class xhActiveOrder extends xhBaseModel
- {
- /**
- * @inheritdoc
- */
- public static function tableName()
- {
- return 'xhActiveOrder';
- }
- /**
- * @inheritdoc
- */
- public function rules()
- {
- return [
- [['id', 'createTime'], 'required'],
- [['activeId', 'payWay', 'payStyle', 'ticketNum', 'couponId', 'userId', 'merchantId', 'payStatus', 'passStatus', 'classId', 'deadline', 'addTime'], 'integer'],
- [['prePrice', 'actPrice'], 'number'],
- [['createTime', 'updateTime'], 'safe'],
- [['id', 'coupon'], 'string', 'max' => 100],
- [['payCode', 'remark'], 'string', 'max' => 1000],
- [['alipayId'], 'string', 'max' => 50],
- [['bookName', 'bookMobile'], 'string', 'max' => 20],
- [['id'], 'unique'],
- ];
- }
- /**
- * @inheritdoc
- */
- public function attributeLabels()
- {
- return [
- 'id' => 'ID',
- 'activeId' => 'Active ID',
- 'payWay' => 'Pay Way',
- 'payStyle' => 'Pay Style',
- 'payCode' => 'Pay Code',
- 'prePrice' => 'Pre Price',
- 'actPrice' => 'Act Price',
- 'ticketNum' => 'Ticket Num',
- 'coupon' => 'Coupon',
- 'couponId' => 'Coupon ID',
- 'userId' => 'User ID',
- 'alipayId' => 'Alipay ID',
- 'merchantId' => 'Merchant ID',
- 'remark' => 'Remark',
- 'payStatus' => 'Pay Status',
- 'passStatus' => 'Pass Status',
- 'createTime' => 'Create Time',
- 'updateTime' => 'Update Time',
- 'classId' => 'Class ID',
- 'deadline' => 'Deadline',
- 'addTime' => 'Add Time',
- 'bookName' => 'Book Name',
- 'bookMobile' => 'Book Mobile',
- ];
- }
- }
|