diff --git a/talkonlineweb/src/main/java/com/lyms/talkonlineweb/controller/DoctorController.java b/talkonlineweb/src/main/java/com/lyms/talkonlineweb/controller/DoctorController.java index 486cda1..14c7043 100644 --- a/talkonlineweb/src/main/java/com/lyms/talkonlineweb/controller/DoctorController.java +++ b/talkonlineweb/src/main/java/com/lyms/talkonlineweb/controller/DoctorController.java @@ -168,8 +168,12 @@ public class DoctorController { BaseResponse baseResponse=new BaseResponse(); boolean f=lymsDoctorService.removeById(doctor.getDid()); if (f){ - JSONObject rs=hxService.delUser(doctor.getDlogin()); - log.info(rs); + final LymsDoctor lymsDoctor = lymsDoctorService.getById(doctor.getDid()); + if (StringUtil.isNotEmpty(lymsDoctor.getHxid())) { + JSONObject rs=hxService.delUser(doctor.getDlogin()); + log.info(rs); + } + } //保存操作记录 lymsLogsCrud(doctor,null); diff --git a/talkonlineweb/src/main/java/com/lyms/talkonlineweb/controller/PatientController.java b/talkonlineweb/src/main/java/com/lyms/talkonlineweb/controller/PatientController.java index 550fe0f..52bcdae 100644 --- a/talkonlineweb/src/main/java/com/lyms/talkonlineweb/controller/PatientController.java +++ b/talkonlineweb/src/main/java/com/lyms/talkonlineweb/controller/PatientController.java @@ -292,6 +292,14 @@ public class PatientController { public BaseResponse delPatient(int id) { BaseResponse baseResponse = new BaseResponse(); boolean f = lymsPatientService.removeById(id); + if (f){ + final LymsPatient patient = lymsPatientService.getById(id); + if (StringUtil.isNotEmpty(patient.getHxid())) { + JSONObject rs=hxService.delUser(patient.getIdno()); + log.info(rs); + } + + } baseResponse.setErrorcode(f == true ? 0 : 1); return baseResponse; } diff --git a/talkonlineweb/src/main/java/com/lyms/talkonlineweb/service/impl/LymsHisInfoServiceImpl.java b/talkonlineweb/src/main/java/com/lyms/talkonlineweb/service/impl/LymsHisInfoServiceImpl.java index b27ff1d..9a4ff24 100644 --- a/talkonlineweb/src/main/java/com/lyms/talkonlineweb/service/impl/LymsHisInfoServiceImpl.java +++ b/talkonlineweb/src/main/java/com/lyms/talkonlineweb/service/impl/LymsHisInfoServiceImpl.java @@ -228,7 +228,8 @@ public class LymsHisInfoServiceImpl extends ServiceImpl