Commit efe247ae authored by 孙磊's avatar 孙磊

youhua

Signed-off-by: 孙磊's avatarsunlei <sunlei@romens.cn>
parent faae7377
<?php
namespace app\models;
namespace app\models\v1\shopgoods;
use Yii;
use app\models\v1\BaseModel;
use Yii;
use yii\data\ActiveDataProvider;
/**
* This is the model class for table "shop_goods_brand".
......
<?php
namespace app\models;
namespace app\models\v1\shopgoods;
use Yii;
use app\models\v1\BaseModel;
use Yii;
use yii\data\ActiveDataProvider;
/**
* This is the model class for table "shop_goods_property".
......@@ -53,4 +54,14 @@ class ShopGoodsProperty extends BaseModel
'TYPE' => 'Type',
];
}
/**
* 获取商品标签信息
*/
public function getGoodsProperty($name)
{
return $query = static::find()
->select('count(GUID) as num,GUID')
->where(['NAME'=>$name])
->all();
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment