request->get(); $where = []; $where['mainId'] = $this->mainId; $bookSn = $get['bookSn'] ?? ''; if (empty($bookSn)) { $shop = $this->shop; $bookSn = $shop->bookSn ?? 0; if (empty($bookSn)) { util::fail('请选择预订活动'); } } $where['bookSn'] = $bookSn; $customId = $get['customId'] ?? 0; if (!empty($customId)) { $where['customId'] = $customId; } $itemId = $get['itemId'] ?? 0; if (!empty($itemId)) { $where['itemId'] = $itemId; } $list = BookItemCustomClass::getAllByCondition($where, 'addTime DESC', '*'); util::success(['list' => $list]); } }