正在显示
1 个修改的文件
包含
2 行增加
和
2 行删除
@@ -181,8 +181,8 @@ class IndexController extends WeChatBaseController | @@ -181,8 +181,8 @@ class IndexController extends WeChatBaseController | ||
181 | */ | 181 | */ |
182 | public function search_salesman_goods(){ | 182 | public function search_salesman_goods(){ |
183 | 183 | ||
184 | - /*$data_salesman_goods = Db::name('goods') -> where("type =2 and book_name like %".$_POST['book_name']."%") -> select(); | ||
185 | - $this -> assign('data_salesman_goods',$data_salesman_goods);*/ | 184 | + $data_salesman_goods = Db::name('goods') -> where("type =2 book_name") -> where('book_name','like',"%".$_POST['book_name']."%") -> select(); |
185 | + $this -> assign('data_salesman_goods',$data_salesman_goods); | ||
186 | return $this -> fetch(); | 186 | return $this -> fetch(); |
187 | 187 | ||
188 | } | 188 | } |
-
请 注册 或 登录 后发表评论