|
@@ -547,10 +547,17 @@ class Protector extends Backend
|
|
|
{
|
|
|
$val = $this->request->post('val');
|
|
|
|
|
|
+
|
|
|
+
|
|
|
+ $a = '`checkstatus` LIKE \'%\"aa\":0%\'';
|
|
|
$list = $this->model
|
|
|
- ->whereLike('unit_name',"%$val%")
|
|
|
+ ->where('binary `unit_name` LIKE \'%'. $val .'%\'')
|
|
|
->select();
|
|
|
|
|
|
+ foreach ($list as $k=>&$v){
|
|
|
+ $v['unit_name'] = \app\admin\model\Protector::formatUnitName($v['unit_name'],$val);
|
|
|
+ }
|
|
|
+
|
|
|
$this->assign('list',$list);
|
|
|
return $this->view->fetch('all_search');
|
|
|
}
|