goods_attr_index.model.php 532 B

1234567891011121314151617181920212223242526
  1. <?php
  2. /**
  3. * 商品与属性对应
  4. *
  5. *
  6. *
  7. *
  8. */
  9. defined('InShopNC') or exit('Access Invalid!');
  10. class goods_attr_indexModel extends Model {
  11. public function __construct() {
  12. parent::__construct('goods_attr_index');
  13. }
  14. /**
  15. * 对应列表
  16. *
  17. * @param array $condition
  18. * @param string $field
  19. * @return array
  20. */
  21. public function getGoodsAttrIndexList($condition, $field = '*') {
  22. return $this->where($condition)->field($field)->select();
  23. }
  24. }