ProductClass.php 362 B

123456789101112131415161718192021
  1. <?php
  2. /**
  3. *
  4. *User:Administrator
  5. *Date:2021/10/11
  6. */
  7. namespace app\api\model;
  8. use think\Model;
  9. class ProductClass extends Model
  10. {
  11. protected $table = 't_product_class';
  12. protected $pk = 'id';
  13. public function selectProductListByTypeID($type_id,$field='')
  14. {
  15. return $this->where('type_id','=',$type_id)->field($field)->select();
  16. }
  17. }