OtherOrderStatusServices.php 1.4 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. namespace app\services\order;
  12. use app\dao\order\OtherOrderStatusDao;
  13. use app\services\BaseServices;
  14. /**
  15. * Class OtherOrderStatusServices
  16. * @package app\services\order
  17. * @mixin OtherOrderStatusDao
  18. */
  19. class OtherOrderStatusServices extends BaseServices
  20. {
  21. /**
  22. * OtherOrderStatusServices constructor.
  23. * @param OtherOrderStatusDao $dao
  24. */
  25. public function __construct(OtherOrderStatusDao $dao)
  26. {
  27. $this->dao = $dao;
  28. }
  29. /**
  30. * 获取订单状态列表
  31. * @param int $id
  32. * @return array
  33. * @throws \think\db\exception\DataNotFoundException
  34. * @throws \think\db\exception\DbException
  35. * @throws \think\db\exception\ModelNotFoundException
  36. */
  37. public function getStatusList(int $id)
  38. {
  39. return $this->dao->getStatusList(['oid' => $id], 0, 0);
  40. }
  41. }