Commit 36933067 by 杨树贤

Merge branch 'dev/ver/1.0.0'

parents 19d9b5bf 699ea0fe
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