Browse Source

修改代码

fuyu 5 years ago
parent
commit
882817a8ce
1 changed files with 4 additions and 4 deletions
  1. 4 4
      application/inter/controller/Reciveremote.php

+ 4 - 4
application/inter/controller/Reciveremote.php

@@ -237,8 +237,8 @@ class Reciveremote extends Base
                 foreach ($param as $k => $v) {
                     switch ($k) {
                         case 'patient_num':
-                            $queryWhere.= " and `e`.`patient_num` like %?%";
-                            $options[] = $v;
+                            $queryWhere.= " and `e`.`patient_num` like ?";
+                            $options[] = '%'.$v.'%';
                             break;
                         case 'exam_class' :
                             if(empty($v)){
@@ -248,8 +248,8 @@ class Reciveremote extends Base
                             $options[] = $v;
                             break;
                         case 'name':
-                            $queryWhere.= " and `pi`.`name` like %?%";
-                            $options[] = $v;
+                            $queryWhere.= " and `pi`.`name` like ?";
+                            $options[] = '%'.$v.'%';
                             break;
                         case 'applicationtime':
                             if(empty($v)){