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

账单按照站名批量查询

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