提交 a30b56d8 authored 作者: chengye's avatar chengye

账单按照站名批量查询

上级 5bb93cc5
...@@ -43,17 +43,7 @@ class Invoice extends Base ...@@ -43,17 +43,7 @@ class Invoice extends Base
case '2': case '2':
$this->assign('search_text',$search_text); $this->assign('search_text',$search_text);
$searchArr = explode(',',$search_text); $searchArr = explode(',',$search_text);
$map[] = ['station.station_name','like',$searchArr,'or'];
$where = '';
if(count($searchArr) > 1){
foreach ($searchArr as $v){
$v = '%'.$v.'%';
$where .= 'station.station_name like '."$v" .' or ';
}
} else {
$where = 'station.station_name like '."%$search_text%";
}
$map[] = rtrim($where,' or ');
$this->assign('search_type',$search_type); $this->assign('search_type',$search_type);
break; break;
case '3': case '3':
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论