|
@@ -417,7 +417,7 @@ class UserController extends BaseController
|
|
|
}
|
|
|
//Log::info($bids);
|
|
|
$result = DB::select(sprintf('select book_configs.book_name,intro,bid,books.category_name,book_configs.cover,first_cid,
|
|
|
-(select GROUP_CONCAT(tags) from book_tags where bid = book_configs.bid) as tag from book_configs
|
|
|
+(select GROUP_CONCAT(tags) from book_tags where bid = book_configs.bid and `status` = 1) as tag from book_configs
|
|
|
left join books on books.id = book_configs.bid left join book_categories on book_categories.id = books.category_id
|
|
|
where bid in (%s) and is_on_shelf =2 ORDER by field(book_configs.bid,%s)',$bids,$bids));
|
|
|
$data = [];
|