|
@@ -220,10 +220,11 @@ public class DataTask implements ITask {
|
|
|
}
|
|
|
|
|
|
private String getDoctorIdByName(String name) {
|
|
|
- if (name == null) {
|
|
|
+ if (name == null || name.isBlank()) {
|
|
|
return null;
|
|
|
}
|
|
|
- Doctors doctors = Doctors.dao.use("zskk").findFirst("SELECT * FROM doctors where instr(?,realname) and institution_id=15700002 and realname<>null",name);
|
|
|
+ name = name.replace(" ", "");
|
|
|
+ Doctors doctors = Doctors.dao.use("zskk").findFirst("SELECT * FROM doctors where instr(?,realname) and institution_id=15700002 and realname is not null",name);
|
|
|
if (doctors == null) {
|
|
|
Doctors newDoctors = new Doctors().use("zskk");
|
|
|
newDoctors.setId(creatId());
|