|
|
@ -13,11 +13,6 @@ use yii\behaviors\TimestampBehavior; |
|
|
|
* @property string $goods_code 商品条码 |
|
|
|
* @property string $goods_sn 商品唯一货号 |
|
|
|
* @property string $goods_attr 属性匹配 |
|
|
|
* @property int $weight 重量 |
|
|
|
* @property int $length 长度 |
|
|
|
* @property int $width 宽度 |
|
|
|
* @property int $height 高度 |
|
|
|
* @property int $diameter 直径 |
|
|
|
* @property int $sold_count 已售数量 |
|
|
|
* @property int $stock 库存 |
|
|
|
* @property int $market_price 市场价 |
|
|
@ -53,7 +48,7 @@ class GoodsSku extends \yii\db\ActiveRecord |
|
|
|
{ |
|
|
|
return [ |
|
|
|
[['goods_id', 'goods_sn'], 'required'], |
|
|
|
[['goods_id', 'weight', 'length', 'width', 'height', 'diameter', 'sold_count', 'stock', 'market_price', 'price', 'model_id', 'is_sale', 'sort_order', 'is_delete', 'is_manaul'], 'integer'], |
|
|
|
[['goods_id', 'diameter', 'sold_count', 'stock', 'market_price', 'price', 'model_id', 'is_sale', 'sort_order', 'is_delete', 'is_manaul'], 'integer'], |
|
|
|
[['goods_code'], 'string', 'max' => 50], |
|
|
|
[['goods_sn', 'goods_attr'], 'string', 'max' => 60], |
|
|
|
]; |
|
|
@ -70,11 +65,6 @@ class GoodsSku extends \yii\db\ActiveRecord |
|
|
|
'goods_code' => '商品条码', |
|
|
|
'goods_sn' => '商品唯一货号', |
|
|
|
'goods_attr' => '属性匹配', |
|
|
|
'weight' => '重量', |
|
|
|
'length' => '长度', |
|
|
|
'width' => '宽度', |
|
|
|
'height' => '高度', |
|
|
|
'diameter' => '直径', |
|
|
|
'sold_count' => '已售数量', |
|
|
|
'stock' => '库存', |
|
|
|
'market_price' => '市场价', |
|
|
|