Commit d28e1a43 authored by hj's avatar hj

更新提交

parent 3245a213
......@@ -12,6 +12,7 @@
namespace App\Services\Api;
use App\Finance\Services\InvoiceService;
use App\Repositories\Transformers\Rhawn\InvoiceListTransformer;
use App\Repositories\Transformers\Rhawn\InvoiceSorderItemsTransformer;
use App\Rhawn\Repositories\Eloquent\BhuaInvoiceRepositoryEloquent;
use App\Rhawn\Repositories\Eloquent\RhawnInvoiceRepositoryEloquent;
......@@ -70,7 +71,6 @@ class InvoicesService
throw new \Exception('订单编号为空',502);
}
try{
$orderNumber = $requestParams['order_number'];
$dpdetailList = $this->rhawnOrdersService->getOrderDispatchDetail($orderNumber);
if(!$dpdetailList){
......@@ -79,11 +79,12 @@ class InvoicesService
$dpdIds = array_column($dpdetailList, 'dpd_id');
$invoiceList = $this->invoiceRepository->getInvoiceItemsByDpdIds($dpdIds);
dd($invoiceList);
}catch(\Throwable $exception){
throw $exception;
if($invoiceList){
$invoiceList = app(InvoiceListTransformer::class)->transform($invoiceList);
}
return $invoiceList;
}
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment