| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273 |
- <?php
- namespace common\models;
- /**
- * This is the model class for table "xhAllOrder".
- *
- * @property int $id
- * @property string $relateId 关联id
- * @property int $capitalType 流水类型,参考configDict capitalType
- * @property string $prePrice 应付款,原价,未修改价格,打折前
- * @property string $actPrice 实际付款,实价,修改后价格,打折后
- * @property int $io 收支类型 0支出 1收入 2其它
- * @property string $sendNum 配送编号,方便寻找订单对应的花束
- * @property int $merchantId 商家id
- * @property int $userId 用户id
- * @property string $openId 微信openid
- * @property string $alipayId 支付宝uid
- * @property int $payStatus 支付状态 0待支付 1已支付
- * @property int $addTime 添加时间
- * @property string $createTime 创建时间
- * @property string $updateTime
- */
- class xhAllOrder extends xhBaseModel
- {
- /**
- * @inheritdoc
- */
- public static function tableName()
- {
- return 'xhAllOrder';
- }
- /**
- * @inheritdoc
- */
- public function rules()
- {
- return [
- [['capitalType', 'io', 'merchantId', 'userId', 'payStatus', 'addTime'], 'integer'],
- [['prePrice', 'actPrice'], 'number'],
- [['createTime'], 'required'],
- [['createTime', 'updateTime'], 'safe'],
- [['relateId', 'openId'], 'string', 'max' => 100],
- [['sendNum'], 'string', 'max' => 20],
- [['alipayId'], 'string', 'max' => 50],
- ];
- }
- /**
- * @inheritdoc
- */
- public function attributeLabels()
- {
- return [
- 'id' => 'ID',
- 'relateId' => 'Relate ID',
- 'capitalType' => 'Capital Type',
- 'prePrice' => 'Pre Price',
- 'actPrice' => 'Act Price',
- 'io' => 'Io',
- 'sendNum' => 'Send Num',
- 'merchantId' => 'Merchant ID',
- 'userId' => 'User ID',
- 'openId' => 'Open ID',
- 'alipayId' => 'Alipay ID',
- 'payStatus' => 'Pay Status',
- 'addTime' => 'Add Time',
- 'createTime' => 'Create Time',
- 'updateTime' => 'Update Time',
- ];
- }
- }
|