| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152 |
- <?php
- /**
- * 厦门云联储网络科技有限公司
- * https://www.baokuaiyun.com
- * Copyright (c) 2023 爆块云 All rights reserved.
- */
- namespace app\models;
- /**
- * This is the model class for table "{{%hanging_order_detail}}".
- *
- * @property integer $id
- * @property integer $order_id
- * @property integer $goods_id
- * @property integer $num
- * @property double $total_price
- * @property double $new_price
- * @property integer $is_delete
- * @property string $attr
- */
- class HangingOrderDetail extends \yii\db\ActiveRecord
- {
- /**
- * @inheritdoc
- */
- public static function tableName()
- {
- return '{{%hanging_order_detail}}';
- }
- public function rules()
- {
- return [
- [['order_id','goods_id','num','total_price','is_delete','attr'],'required'],
- [['order_id','goods_id','num','is_delete'],'integer'],
- [['attr'],'string'],
- [['total_price', 'new_price'],'number']
- ];
- }
- public function attributeLabels(){
- return [
- 'order_id' => '挂单订单号',
- 'goods_id' => '商品ID',
- 'num' => '商品数量',
- 'total_price' => '商品总金额',
- 'is_delete' => '删除状态',
- 'attr' => '商品规格信息',
- 'new_price' => '新价格'
- ];
- }
- }
|