刘韬 6 лет назад
Родитель
Сommit
c9bf4c1429

+ 1 - 1
DataFusion/src/com/zskk/control/ViewController.java

@@ -62,7 +62,7 @@ public class ViewController extends Controller {
 		if (name == null) {
 			return "1";
 		}
-		Doctors doctors = Doctors.dao.use("zskk").findFirst("SELECT * FROM doctors where realname like ? and institution_id=73090001",name);
+		Doctors doctors = Doctors.dao.use("zskk").findFirst("SELECT * FROM doctors where instr(?,realname) and institution_id=73090001",name);
 		if (doctors == null) {
 			return "1";
 		}

+ 1 - 1
DataFusion/src/com/zskk/task/DataTask.java

@@ -69,7 +69,7 @@ public class DataTask implements ITask {
 		if (name == null) {
 			return "1";
 		}
-		Doctors doctors = Doctors.dao.use("zskk").findFirst("SELECT * FROM doctors where realname like ? and institution_id=73090001",name);
+		Doctors doctors = Doctors.dao.use("zskk").findFirst("SELECT * FROM doctors where instr(?,realname) and institution_id=73090001",name);
 		if (doctors == null) {
 			return "1";
 		}