diff --git a/app/admin/lists/beforehand_order/BeforehandOrderLists.php b/app/admin/lists/beforehand_order/BeforehandOrderLists.php index 0d632cdd8..048d14830 100644 --- a/app/admin/lists/beforehand_order/BeforehandOrderLists.php +++ b/app/admin/lists/beforehand_order/BeforehandOrderLists.php @@ -83,7 +83,7 @@ class BeforehandOrderLists extends BaseAdminDataLists implements ListsSearchInte } } if($item->msg==''){ - $count=BeforehandOrderCartInfo::where('is_buyer',0)->count('id'); + $count=BeforehandOrderCartInfo::where('is_buyer',0)->where('bhoid',$item['id'])->count('id'); if($count>0){ $item->msg='有'.$count.'个商品未设置'; }