1234567891011121314151617181920212223242526272829303132333435363738394041 |
- <?php
-
-
- namespace app\admin\model;
-
- use think\Model;
- use think\Db;
-
-
- class ProductAttribute extends Model
- {
-
- protected function initialize()
- {
-
- parent::initialize();
- }
-
- public function getListByTypeid($typeid = 0)
- {
- $result = Db::name('product_attribute')->where([
- 'typeid' => $typeid,
- 'is_del' => 0,
- 'lang' => get_admin_lang(),
- ])->count();
-
- return $result;
- }
- }
|