|
|
@@ -73,8 +73,9 @@ class MemberCouponService extends BaseService
|
|
|
$ids = isset($params['ids'])?$params['ids']:[];
|
|
|
if($ids){
|
|
|
$query->where(function($query) use($ids){
|
|
|
- $query->where(DB::raw("FIND_IN_SET(?, goods_ids)",[implode(',', $ids)]))
|
|
|
- ->orWhere('goods_ids','');
|
|
|
+ $query->where('goods_ids','')
|
|
|
+ ->orWhere(DB::raw("FIND_IN_SET(?, goods_ids)",[implode(',', $ids)]));
|
|
|
+
|
|
|
});
|
|
|
}else{
|
|
|
$query->where('goods_ids','');
|