UserUserBillServices.php 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. <?php
  2. // +----------------------------------------------------------------------
  3. // | CRMEB [ CRMEB赋能开发者,助力企业发展 ]
  4. // +----------------------------------------------------------------------
  5. // | Copyright (c) 2016~2023 https://www.crmeb.com All rights reserved.
  6. // +----------------------------------------------------------------------
  7. // | Licensed CRMEB并不是自由软件,未经许可不能去掉CRMEB相关版权
  8. // +----------------------------------------------------------------------
  9. // | Author: CRMEB Team <admin@crmeb.com>
  10. // +----------------------------------------------------------------------
  11. declare (strict_types = 1);
  12. namespace app\services\user;
  13. use app\services\BaseServices;
  14. use app\dao\user\UserUserBillDao;
  15. /**
  16. *
  17. * Class UserUserBillServices
  18. * @package app\services\user
  19. */
  20. class UserUserBillServices extends BaseServices
  21. {
  22. /**
  23. * UserUserBillServices constructor.
  24. * @param UserUserBillDao $dao
  25. */
  26. public function __construct(UserUserBillDao $dao)
  27. {
  28. $this->dao = $dao;
  29. }
  30. /**
  31. * @param $where
  32. * @param $field
  33. * @param $order
  34. * @return array
  35. */
  36. public function getBrokerageList(array $where, string $field = '*', string $order = '', $is_page = true)
  37. {
  38. [$page, $limit] = $this->getPageValue($is_page);
  39. $list = $this->dao->getList($where, $field, $order, $page, $limit);
  40. $count = $this->dao->getCount($where);
  41. return [$count, $list];
  42. }
  43. }