ActiveUsers.php 814 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. <?php
  2. /**
  3. *
  4. * @copyright ©2020 点小铺
  5. * @author hanj
  6. * @link: https://dyuit.com
  7. * Created by VSCode
  8. */
  9. namespace app\store\model\sharing;
  10. use app\common\model\sharing\ActiveUsers as ActiveUsersModel;
  11. /**
  12. * 拼团拼单成员模型
  13. * Class ActiveUsers
  14. * @package app\store\model\sharing
  15. */
  16. class ActiveUsers extends ActiveUsersModel
  17. {
  18. /**
  19. * 获取拼单成员列表
  20. * @param $active_id
  21. * @return \think\Paginator
  22. * @throws \think\exception\DbException
  23. */
  24. public function getList($active_id)
  25. {
  26. return $this->with(['sharingOrder.address', 'user'])
  27. ->where('active_id', '=', $active_id)
  28. ->order(['create_time' => 'asc'])
  29. ->paginate(15, false, [
  30. 'query' => request()->request()
  31. ]);
  32. }
  33. }