|
@@ -79,7 +79,7 @@ class RegimentRecord extends Auth{
|
|
->join('regiment_active','regiment_active.id','=','regiment_record.active_id')
|
|
->join('regiment_active','regiment_active.id','=','regiment_record.active_id')
|
|
->join('product','product.id','=','regiment_record.product_id')
|
|
->join('product','product.id','=','regiment_record.product_id')
|
|
->join('custom','custom.uid','=','regiment_record.custom_uid');
|
|
->join('custom','custom.uid','=','regiment_record.custom_uid');
|
|
- if (isset($shopIds)){
|
|
|
|
|
|
+ if ($shopIds){
|
|
$list = $list->whereIn('regiment_active.business_id',$shopIds);
|
|
$list = $list->whereIn('regiment_active.business_id',$shopIds);
|
|
}
|
|
}
|
|
$list = $list->where($map)
|
|
$list = $list->where($map)
|