Procházet zdrojové kódy

随访记录查询修改

lyr před 8 roky
rodič
revize
5a6a49e51c

+ 10 - 8
patient-co-wlyy/src/main/java/com/yihu/wlyy/service/app/reservation/PatientReservationService.java

@ -224,14 +224,16 @@ public class PatientReservationService extends BaseService {
            Map<String, Doctor> doctors = new HashMap<>();
            for (PatientReservation item : list) {
                JSONObject obj = new JSONObject(item);
                if (doctors.get(item.getDoctor()) != null) {
                    obj.put("photo", doctors.get(item.getDoctor()).getPhoto());
                } else {
                    Doctor doc = doctorDao.findByCode(item.getDoctor());
                    if (doc != null) {
                        doctors.put(doc.getCode(),doc);
                        obj.put("photo", doc.getPhoto());
                if (!StringUtils.isEmpty(item.getDoctor())) {
                    if (doctors.get(item.getDoctor()) != null) {
                        obj.put("photo", doctors.get(item.getDoctor()).getPhoto());
                    } else {
                        Doctor doc = doctorDao.findByCode(item.getDoctor());
                        if (doc != null) {
                            doctors.put(doc.getCode(), doc);
                            obj.put("photo", doc.getPhoto());
                        }
                    }
                }