|
|
@ -19,6 +19,7 @@ use yii\behaviors\TimestampBehavior; |
|
|
|
* @property int $market_price 市场价 |
|
|
|
* @property int $updated_at 更新时间 |
|
|
|
* @property int $created_at 创建时间 |
|
|
|
* @property int $weight 重量 |
|
|
|
*/ |
|
|
|
class OrderGoods extends \yii\db\ActiveRecord |
|
|
|
{ |
|
|
@ -37,7 +38,7 @@ class OrderGoods extends \yii\db\ActiveRecord |
|
|
|
{ |
|
|
|
return [ |
|
|
|
[['order_id', 'goods_id'], 'required'], |
|
|
|
[['order_id', 'goods_id', 'goods_img', 'goods_count', 'price', 'market_price'], 'integer'], |
|
|
|
[['order_id', 'goods_id', 'goods_img', 'goods_count', 'price', 'market_price', 'weight'], 'integer'], |
|
|
|
[['goods_name', 'sku_value'], 'string', 'max' => 120], |
|
|
|
]; |
|
|
|
} |
|
|
@ -59,6 +60,7 @@ class OrderGoods extends \yii\db\ActiveRecord |
|
|
|
'market_price' => '市场价', |
|
|
|
'updated_at' => '更新时间', |
|
|
|
'created_at' => '创建时间', |
|
|
|
'weight' => '重量', |
|
|
|
]; |
|
|
|
} |
|
|
|
|
|
|
|