You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

OtherOrderStatusServices.php 811B

1234567891011121314151617181920212223242526272829303132333435363738
  1. <?php
  2. namespace app\services\order;
  3. use app\dao\order\OtherOrderStatusDao;
  4. use app\services\BaseServices;
  5. /**
  6. * Class OtherOrderStatusServices
  7. * @package app\services\order
  8. */
  9. class OtherOrderStatusServices extends BaseServices
  10. {
  11. /**
  12. * OtherOrderStatusServices constructor.
  13. * @param OtherOrderStatusDao $dao
  14. */
  15. public function __construct(OtherOrderStatusDao $dao)
  16. {
  17. $this->dao = $dao;
  18. }
  19. /**
  20. * 获取订单状态列表
  21. * @param int $id
  22. * @return array
  23. * @throws \think\db\exception\DataNotFoundException
  24. * @throws \think\db\exception\DbException
  25. * @throws \think\db\exception\ModelNotFoundException
  26. */
  27. public function getStatusList(int $id)
  28. {
  29. return $this->dao->getStatusList(['oid' => $id], 0, 0);
  30. }
  31. }