StoreCouponIssueUserServices.php 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. <?php
  2. // +----------------------------------------------------------------------
  3. // | CRMEB [ CRMEB赋能开发者,助力企业发展 ]
  4. // +----------------------------------------------------------------------
  5. // | Copyright (c) 2016~2020 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\activity\coupon;
  13. use app\services\BaseServices;
  14. use app\dao\activity\coupon\StoreCouponIssueUserDao;
  15. /**
  16. * Class StoreCouponIssueUserServices
  17. * @package app\services\activity\coupon
  18. * @mixin StoreCouponIssueUserDao
  19. */
  20. class StoreCouponIssueUserServices extends BaseServices
  21. {
  22. /**
  23. * StoreCouponIssueUserServices constructor.
  24. * @param StoreCouponIssueUserDao $dao
  25. */
  26. public function __construct(StoreCouponIssueUserDao $dao)
  27. {
  28. $this->dao = $dao;
  29. }
  30. /**
  31. * 获取列表
  32. * @param array $where
  33. * @return array
  34. */
  35. public function issueLog(array $where)
  36. {
  37. [$page, $limit] = $this->getPageValue();
  38. $list = $this->dao->getList($where, $page, $limit);
  39. $count = $this->dao->count($where);
  40. return compact('list', 'count');
  41. }
  42. }