|
@ -469,7 +469,15 @@ public class RehabilitationManageService extends BaseService {
|
|
|
HttpResponse response = HttpUtils.doGet(specialistUrl + serviceDoctorList, param);
|
|
|
JSONObject result = new JSONObject(response.getContent());
|
|
|
if(result.getInt("status")==200){
|
|
|
return result.getJSONArray("obj");
|
|
|
JSONArray jsonArray = result.getJSONArray("obj");
|
|
|
String doctorCode ="";
|
|
|
Doctor doctor = null;
|
|
|
for(int i=0;i<jsonArray.length();i++){
|
|
|
doctorCode = jsonArray.getJSONObject(i).get("doctorCode")+"";
|
|
|
doctor = doctorDao.findByCode(doctorCode);
|
|
|
jsonArray.getJSONObject(i).put("doctorPhoto",doctor!=null?doctor.getPhoto():"");
|
|
|
}
|
|
|
return jsonArray;
|
|
|
}
|
|
|
throw new Exception("请求微服务失败!");
|
|
|
}
|