6
0
Fork 0
release
李静 2022-03-23 13:37:43 +08:00
parent 7d3aa6881f
commit 78b2c8ed5f
2 changed files with 2 additions and 1 deletions

View File

@ -22,7 +22,7 @@ class ManageSubsidyLogController extends Controller
$perPage = Paginator::resolvePerPage('per_page', 20, 50);
$manageSubsidyLogs = DealerManageSubsidyLog::with(['product'])
$manageSubsidyLogs = DealerManageSubsidyLog::with(['product', 'order'])
->when($isComplted, function ($query) {
$tz = now();

View File

@ -15,6 +15,7 @@ class DealerManageSubsidyLogResource extends JsonResource
public function toArray($request)
{
return [
'order' => OrderSimpleResource::make($this->whenLoaded('order')),
'product' => ProductSimpleResource::make($this->whenLoaded('product')),
'sales_volume' => $this->sales_volume,
'total_amount' => $this->total_amount,