作者 anyv
1 个管道 的构建 通过 耗费 0 秒

搜索

... ... @@ -181,8 +181,8 @@ class IndexController extends WeChatBaseController
*/
public function search_salesman_goods(){
/*$data_salesman_goods = Db::name('goods') -> where("type =2 and book_name like %".$_POST['book_name']."%") -> select();
$this -> assign('data_salesman_goods',$data_salesman_goods);*/
$data_salesman_goods = Db::name('goods') -> where("type =2 book_name") -> where('book_name','like',"%".$_POST['book_name']."%") -> select();
$this -> assign('data_salesman_goods',$data_salesman_goods);
return $this -> fetch();
}
... ...