Browse Source

Merge branch 'dev' of linzhuo/patient-co-management into dev

linzhuo 8 năm trước cách đây
mục cha
commit
15c6cfaa25

+ 6 - 3
patient-co-wlyy/src/main/java/com/yihu/wlyy/service/app/account/DoctorInfoService.java

@ -906,7 +906,8 @@ public class DoctorInfoService extends BaseService {
        for (int i = 0; i < patiensString.length; i++) {
            try {
                updateTeamHealthDoctor(newDoctorCode, oldDoctorCode, patiensString[i]);
                ImUtill.deleteMucUser(newDoctorCode, oldDoctorCode, patiensString[i] + "_consult_2");
                SignFamily signFamily = signFamilyDao.findByPatient( patiensString[i]);
                ImUtill.deleteMucUser(newDoctorCode, oldDoctorCode, patiensString[i] + "_"+signFamily.getTeamCode()+"_2");
                successs++;
            } catch (Exception e) {
                error++;
@ -938,7 +939,8 @@ public class DoctorInfoService extends BaseService {
                    if (updateTeamHealthDoctorAll(newDoctorCode, patient) == -1) {
                        hasNoTeam = true;
                    }
                    ImUtill.deleteMucUser(newDoctorCode, doctor, patient + "_consult_2");
                    SignFamily signFamily = signFamilyDao.findByPatient(patient);
                    ImUtill.deleteMucUser(newDoctorCode, doctor, patient + "_"+signFamily.getTeamCode()+"_2");
                } catch (Exception e) {
                    e.printStackTrace();
                }
@ -1123,7 +1125,8 @@ public class DoctorInfoService extends BaseService {
        for (int i = 0; i < patiensString.length; i++) {
            try {
                ImUtill.deleteMucUser(newDoctorCode, oldDoctorCode, patiensString[i] + "_consult_2");
                SignFamily signFamily = signFamilyDao.findByPatient(patiensString[i]);
                ImUtill.deleteMucUser(newDoctorCode, oldDoctorCode, patiensString[i] + "_"+signFamily.getTeamCode()+"_2");
                updateTeamDoctor(newDoctorCode, oldDoctorCode, patiensString[i]);
                successs++;
            } catch (Exception e) {