Store.php 968 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <?php
  2. /**
  3. * Niushop商城系统 - 团队十年电商经验汇集巨献!
  4. * =========================================================
  5. * Copy right 2019-2029 上海牛之云网络科技有限公司, 保留所有权利。
  6. * ----------------------------------------------
  7. * 官方网址: https://www.niushop.com
  8. * =========================================================
  9. */
  10. namespace addon\stock\model;
  11. use app\model\store\Store as StoreCommonModel;
  12. use app\model\BaseModel;
  13. /**
  14. * 库存model
  15. *
  16. * @author Administrator
  17. *
  18. */
  19. class Store extends BaseModel
  20. {
  21. /**
  22. * 库存用门店列表
  23. * @param $site_id
  24. * @return mixed
  25. */
  26. public function getStoreList($site_id)
  27. {
  28. $condition = array (
  29. [ 'site_id', '=', $site_id ],
  30. [ 'stock_type', '=', 'store' ]
  31. );
  32. $store_model = new StoreCommonModel();
  33. $result = $store_model->getStoreList($condition);
  34. return $result;
  35. }
  36. }