SendOrderDao.php 428 B

123456789101112131415161718192021222324
  1. <?php
  2. namespace App\Dao\SendOrder;
  3. use App\Models\SendOrder\SendOrder as SendOrderModel;
  4. class SendOrderDao
  5. {
  6. /**
  7. * 派单信息
  8. *
  9. * @param $id
  10. * @return array
  11. */
  12. public function getSendOrderById($id): array
  13. {
  14. if (empty($id)) {
  15. return [];
  16. }
  17. $result = SendOrderModel::where('id', $id)->first();
  18. return $result ? $result->toArray() : [];
  19. }
  20. }