feat(bet-provider): 添加开注商管理功能,包括增删改查接口及相关模型和迁移文件
This commit is contained in:
@@ -83,6 +83,10 @@ final class AdminTicketItemIndexController extends Controller
|
||||
|
||||
$number = trim((string) ($validated['number'] ?? ''));
|
||||
$this->applyTicketItemNumberSearch($query, $number);
|
||||
$providerCode = strtoupper(trim((string) ($validated['provider_code'] ?? '')));
|
||||
if ($providerCode !== '') {
|
||||
$query->where('ticket_items.provider_code', $providerCode);
|
||||
}
|
||||
$this->applyOrderPlacedDateRange(
|
||||
$query,
|
||||
is_string($validated['start_date'] ?? null) ? $validated['start_date'] : null,
|
||||
@@ -113,6 +117,8 @@ final class AdminTicketItemIndexController extends Controller
|
||||
'order_no' => $row->order?->order_no,
|
||||
'draw_no' => $row->draw?->draw_no,
|
||||
'currency_code' => $row->order?->currency_code,
|
||||
'provider_code' => $row->provider_code,
|
||||
'provider_name' => $row->provider_name,
|
||||
'play_code' => $row->play_code,
|
||||
'original_number' => $row->original_number,
|
||||
// 历史字段:保留兼容,实际单位为 minor。
|
||||
|
||||
Reference in New Issue
Block a user