| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143 |
- <?php
- namespace common\models;
- /**
- * This is the model class for table "xhOrder".
- *
- * @property string $id 订单号
- * @property string $orderName 订单名称 (也指 商品名称)
- * @property int $goodsNum 商品数量
- * @property int $payWay 支付方式 0微信 1支付宝 2余额,具体请查看配置文件configDict payWay
- * @property int $payStyle 0第三方支付 1非第三方支付
- * @property string $payCode 支付返回号
- * @property int $modPriceStatus 是否可以修改价格0可以 1不可以
- * @property int $sourceType 订单来源,0商城订单 1付款订单
- * @property string $prePrice 应付款,原价,未修改价格,打折前
- * @property string $actPrice 实际付款,实价,修改后价格,打折后
- * @property int $userId 用户id
- * @property string $alipayId 支付宝用户id
- * @property int $merchantId 商户id
- * @property string $receiveProvince 收货地址 省
- * @property string $receiveCity 收货地址 市
- * @property string $receiveDist 收货地址 区县市
- * @property string $receiveAddress 收货的详细街道地址
- * @property string $receiveFullAddress 完整收货地址
- * @property string $receiveFloor 楼号门牌号
- * @property string $receiveLong 收货的经度
- * @property string $receiveLat 收货的纬度
- * @property int $useType 赠送类型,0送给别人,1寄给自己
- * @property int $anonymity 0不匿名派送 1匿名派送
- * @property string $sendCost 运费
- * @property string $sendNum 配送编号,方便寻找订单对应的花束
- * @property int $sendDistance 送货距离,多少米
- * @property string $reachTime 送达时间
- * @property int $reachPeriod 0上午1下午2晚上,具体看配置文件
- * @property string $bookMobile 订花人电话
- * @property string $bookName 订花人名
- * @property string $receiveMobile 收货人电话
- * @property string $receiveUserName 收货人姓名
- * @property string $needSend 是否配送,1:配送(默认)、0:不配送
- * @property int $needCard 0不需要,1需要
- * @property int $needCard 0不需要,1需要
- * @property string $blessing 祝福语
- * @property string $uniCode 唯一号码,预留字段
- * @property int $couponId 代金劵id
- * @property int $luckyNum 抽奖号码
- * @property int $payStatus 支付状态:-1客户关闭、0待付款、1已付款
- * @property int $sendStatus 发货状态:0未发货、1已发货、2已送达
- * @property int $printStatus 0未打印 1打印过了
- * @property string $remark 备注
- * @property int $status 订单生存状态 0正常 1删除
- * @property int $deadline 订单有效期
- * @property int $addTime 添加时间,时间戳格式
- * @property string $createTime 创建时间
- * @property string $updateTime
- */
- class xhOrder extends xhBaseModel
- {
- /**
- * @inheritdoc
- */
- public static function tableName()
- {
- return 'xhOrder';
- }
- /**
- * @inheritdoc
- */
- public function rules()
- {
- return [
- [['id', 'createTime'], 'required'],
- [['goodsNum', 'payWay', 'payStyle', 'modPriceStatus', 'sourceType', 'shopId','userId', 'merchantId', 'useType', 'anonymity', 'sendDistance', 'reachPeriod', 'needCard', 'couponId', 'luckyNum', 'payStatus', 'sendStatus', 'printStatus', 'status', 'deadline', 'addTime', 'needSend'], 'integer'],
- [['prePrice', 'actPrice', 'sendCost'], 'number'],
- [['reachTime', 'createTime', 'updateTime'], 'safe'],
- [['id', 'orderName', 'receiveFullAddress', 'receiveUserName'], 'string', 'max' => 100],
- [['payCode', 'remark'], 'string', 'max' => 1000],
- [['alipayId', 'receiveFloor'], 'string', 'max' => 50],
- [['receiveProvince', 'receiveCity', 'receiveDist', 'receiveLong', 'receiveLat', 'sendNum', 'bookMobile', 'bookName', 'uniCode'], 'string', 'max' => 20],
- [['receiveAddress', 'blessing'], 'string', 'max' => 500],
- [['receiveMobile'], 'string', 'max' => 15],
- [['id'], 'unique'],
- ];
- }
- /**
- * @inheritdoc
- */
- public function attributeLabels()
- {
- return [
- 'id' => 'ID',
- 'orderName' => 'Order Name',
- 'goodsNum' => 'Goods Num',
- 'payWay' => 'Pay Way',
- 'payStyle' => 'Pay Style',
- 'payCode' => 'Pay Code',
- 'modPriceStatus' => 'Mod Price Status',
- 'sourceType' => 'Source Type',
- 'prePrice' => 'Pre Price',
- 'actPrice' => 'Act Price',
- 'userId' => 'User ID',
- 'alipayId' => 'Alipay ID',
- 'merchantId' => 'Merchant ID',
- 'receiveProvince' => 'Receive Province',
- 'receiveCity' => 'Receive City',
- 'receiveDist' => 'Receive Dist',
- 'receiveAddress' => 'Receive Address',
- 'receiveFullAddress' => 'Receive Full Address',
- 'receiveFloor' => 'Receive Floor',
- 'receiveLong' => 'Receive Long',
- 'receiveLat' => 'Receive Lat',
- 'useType' => 'Use Type',
- 'anonymity' => 'Anonymity',
- 'shopId' => 'shopId',
- 'sendCost' => 'Send Cost',
- 'sendNum' => 'Send Num',
- 'sendDistance' => 'Send Distance',
- 'reachTime' => 'Reach Time',
- 'reachPeriod' => 'Reach Period',
- 'bookMobile' => 'Book Mobile',
- 'bookName' => 'Book Name',
- 'receiveMobile' => 'Receive Mobile',
- 'receiveUserName' => 'Receive User Name',
- 'needCard' => 'Need Card',
- 'needSend' => 'Need Send',
- 'blessing' => 'Blessing',
- 'uniCode' => 'Uni Code',
- 'couponId' => 'Coupon ID',
- 'luckyNum' => 'Lucky Num',
- 'payStatus' => 'Pay Status',
- 'sendStatus' => 'Send Status',
- 'printStatus' => 'Print Status',
- 'remark' => 'Remark',
- 'status' => 'Status',
- 'deadline' => 'Deadline',
- 'addTime' => 'Add Time',
- 'createTime' => 'Create Time',
- 'updateTime' => 'Update Time',
- ];
- }
- }
|