has_type
This commit is contained in:
parent
fb26aa8946
commit
e27a7bf4f1
@ -163,7 +163,7 @@ trait OrderCardConcern
|
||||
$query->whereRaw(sprintf("sim in (SELECT sim FROM virtual_order_cards_partition WHERE type in (0, 1) AND created_at >= '%s' AND created_at <= '%s' AND deleted_at is null AND refunded_at is null)", $conditions['sell_starttime'], $conditions['sell_endtime']));
|
||||
}
|
||||
|
||||
if (isset($conditions['has_type'])) {
|
||||
if (isset($conditions['has_type']) && !empty($conditions['has_type'])) {
|
||||
$conditions['has_type'] = array_wrap($conditions['has_type']);
|
||||
$query->whereRaw(sprintf("sim in (SELECT sim from virtual_order_cards_partition WHERE type in (%s))", implode(',', $conditions['has_type'])));
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user