| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091 |
- <?php
- namespace common\models;
- /**
- * This is the model class for table "xhApplyOrder".
- *
- * @property string $id 订单号
- * @property int $accountId xhMerchantAccount表的id
- * @property int $payWay 支付方式,查看配置文件configDict payWay
- * @property int $payStyle 0第三方支付 1非第三方支付
- * @property string $payCode 支付返回号
- * @property string $prePrice 应付款,原价,未修改价格,打折前
- * @property string $actPrice 实际付款,实价,修改后价格,打折后
- * @property string $applyName 申请公众号名称,花店名称,商家名称
- * @property string $email 申请使用的邮箱
- * @property int $userId 用户id
- * @property string $alipayId 支付宝用户id
- * @property int $merchantId 邀请人id
- * @property int $invitedMerchantId 申请人id 邀请人id
- * @property string $remark 备注
- * @property int $deadline 到期时间
- * @property string $inviteCode 邀请码
- * @property int $inviteCodeStatus 邀请码使用状态0未使用 1使用
- * @property int $couponId 代金券id
- * @property int $payStatus 订单交易状态 0待付款,等待 1付款成功
- * @property int $status 订单生存状态
- * @property int $addTime 添加时间,时间戳格式
- * @property string $createTime 创建时间
- * @property string $updateTime
- */
- class xhApplyOrder extends xhBaseModel
- {
- /**
- * @inheritdoc
- */
- public static function tableName()
- {
- return 'xhApplyOrder';
- }
- /**
- * @inheritdoc
- */
- public function rules()
- {
- return [
- [['id', 'createTime'], 'required'],
- [['accountId', 'payWay', 'payStyle', 'userId', 'merchantId', 'invitedMerchantId', 'deadline', 'inviteCodeStatus', 'couponId', 'payStatus', 'status', 'addTime'], 'integer'],
- [['prePrice', 'actPrice'], 'number'],
- [['createTime', 'updateTime'], 'safe'],
- [['id'], 'string', 'max' => 100],
- [['payCode', 'remark'], 'string', 'max' => 1000],
- [['applyName', 'email', 'alipayId'], 'string', 'max' => 50],
- [['inviteCode'], 'string', 'max' => 30],
- [['id'], 'unique'],
- ];
- }
- /**
- * @inheritdoc
- */
- public function attributeLabels()
- {
- return [
- 'id' => 'ID',
- 'accountId' => 'Account ID',
- 'payWay' => 'Pay Way',
- 'payStyle' => 'Pay Style',
- 'payCode' => 'Pay Code',
- 'prePrice' => 'Pre Price',
- 'actPrice' => 'Act Price',
- 'applyName' => 'Apply Name',
- 'email' => 'Email',
- 'userId' => 'User ID',
- 'alipayId' => 'Alipay ID',
- 'merchantId' => 'Merchant ID',
- 'invitedMerchantId' => 'Invited Merchant ID',
- 'remark' => 'Remark',
- 'deadline' => 'Deadline',
- 'inviteCode' => 'Invite Code',
- 'inviteCodeStatus' => 'Invite Code Status',
- 'couponId' => 'Coupon ID',
- 'payStatus' => 'Pay Status',
- 'status' => 'Status',
- 'addTime' => 'Add Time',
- 'createTime' => 'Create Time',
- 'updateTime' => 'Update Time',
- ];
- }
- }
|