Goodsattrindex.php 614 B

1234567891011121314151617181920212223242526272829303132
  1. <?php
  2. namespace app\common\model;
  3. use think\facade\Db;
  4. /**
  5. *
  6. *
  7. * ----------------------------------------------------------------------------
  8. *
  9. * 数据层模型
  10. */
  11. class Goodsattrindex extends BaseModel
  12. {
  13. /**
  14. * 对应列表
  15. * @access public
  16. * @author csdeshang
  17. * @param array $condition 条件
  18. * @param string $field 字段
  19. * @return array
  20. */
  21. public function getGoodsAttrIndexList($condition, $field = '*')
  22. {
  23. return Db::name('goodsattrindex')->where($condition)->field($field)->select()->toArray();
  24. }
  25. }