Commit 989a5aad by 杨树贤

模糊搜索

parent f4a96444
...@@ -66,6 +66,12 @@ class SupplierFilter ...@@ -66,6 +66,12 @@ class SupplierFilter
if (!empty($map['channel_uid'])) { if (!empty($map['channel_uid'])) {
$query->where('channel_uid', 'like', "%{$map['channel_uid']}%"); $query->where('channel_uid', 'like', "%{$map['channel_uid']}%");
} }
if (!empty($map['supplier_search_fuzzy'])) {
$query->where('supplier_name','like',"%${map['supplier_search_fuzzy']}%")
->orWhere('supplier_code','like',"%${map['supplier_search_fuzzy']}%");
}
if (!empty($map['create_uid'])) { if (!empty($map['create_uid'])) {
//因为传过来的是内部编码,所以要转成admin_id //因为传过来的是内部编码,所以要转成admin_id
$adminService = new AdminUserService(); $adminService = new AdminUserService();
......
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