提交 5bb93cc5 authored 作者: chengye's avatar chengye

账单按照站名批量查询

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