|
|
|
@ -113,10 +113,14 @@ class ComboController extends Controller
|
|
|
|
->pluck('combo_id')->toArray();
|
|
|
|
->pluck('combo_id')->toArray();
|
|
|
|
$count = count($combo_ids);
|
|
|
|
$count = count($combo_ids);
|
|
|
|
$placeholders = implode(', ', array_fill(0, $count, '?'));
|
|
|
|
$placeholders = implode(', ', array_fill(0, $count, '?'));
|
|
|
|
|
|
|
|
if(count($combo_ids)>0){
|
|
|
|
$sql = $sql . " and a.combo_id in ($placeholders) ";
|
|
|
|
$sql = $sql . " and a.combo_id in ($placeholders) ";
|
|
|
|
|
|
|
|
|
|
|
|
$canshu =array_merge($canshu, $combo_ids);
|
|
|
|
$canshu =array_merge($canshu, $combo_ids);
|
|
|
|
|
|
|
|
}else{
|
|
|
|
|
|
|
|
$sql = $sql . " and a.combo_id in (?) ";
|
|
|
|
|
|
|
|
$canshu =array_merge($canshu, [0]);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|