提交 547a9205 authored 作者: chengye's avatar chengye

测试sql

上级 d07e7b85
......@@ -16,18 +16,18 @@ class Index extends Base
$search_type = Request::param('search_type');
if($search_text){
switch ($search_type) {
case '1':
case 1:
$map = 'aa.jz_name like \'%'.$search_text.'%\'';
break;
case '2':
case 2:
$map = 'aa.jz_code like \'%'.$search_text.'%\'';
break;
case '3':
case 3:
$map = 'aa.project_code like \'%'.$search_text.'%\'';
break;
}
$this->assign('search_text',$search_text);
$this->assign('search_type',$search_type);
$this->assign('search_text',$search_text);
}else{
$this->assign('search_type','');
$this->assign('search_text','');
......
......@@ -26,7 +26,6 @@ class Index extends Model
and aa.jz_qy = dd.id
and aa.del_flag = 0 ".$where;
die($sql);
$data = Db::query($sql);
return $data;
}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论