Browse Source

优化配方搜索

huangsanjia 3 năm trước cách đây
mục cha
commit
092e6bfb8f
1 tập tin đã thay đổi với 1 bổ sung2 xóa
  1. 1 2
      application/admin/controller/Formula.php

+ 1 - 2
application/admin/controller/Formula.php

@@ -73,8 +73,7 @@ class Formula extends Backend
             $map['company_id'] = $user_info['company_id'];
             $map['examine_status'] = 2;
         }
-
-        if(!empty($map['name'])){
+        if(!empty($map['name'])||!empty($map['material'])){
             $sort = 'f.id';
             $list = DB::name('formula')
                 ->where($where)