Commit 699ea0fe by 杨树贤

询价搜索问题

parent c80282a7
Showing with 2 additions and 2 deletions
......@@ -67,8 +67,8 @@ class InquiryService
])->where('user_id', $userId)->orderBy('inquiry_id', 'desc');
if (!empty($searchKeyWord)) {
$query->whereHas('inquiry_items', function ($q) use ($searchKeyWord) {
$q->where('goods_name', $searchKeyWord);
});
$q->where('goods_name', 'like', "%$searchKeyWord%");
})->orWhere('inquiry_sn', 'like', "%$searchKeyWord%");
}
if (!empty($status) || ($status === '0')) {
$query->where('status', $status);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment