|
@ -209,10 +209,17 @@ public class RehabilitationManageService extends BaseService {
|
|
|
*/
|
|
|
public JSONObject serviceItem(String planDetailId) throws Exception{
|
|
|
Map<String, Object> param = new HashedMap();
|
|
|
param.put("planDetailIds", planDetailId);
|
|
|
param.put("planDetailId", planDetailId);
|
|
|
HttpResponse response = HttpUtils.doGet(specialistUrl + serviceItem, param);
|
|
|
JSONObject result = new JSONObject(response.getContent());
|
|
|
if(result.getInt("status")==200){
|
|
|
String patient = result.getJSONObject("obj").get("patient")+"";
|
|
|
List<SignFamily> list = signFamilyDao.findByPatientAndExpensesStatusAndStatus(patient,"1",1);
|
|
|
if(list.size()>0){
|
|
|
result.getJSONObject("obj").put("familyDoctorCode",list.get(0).getDoctor());
|
|
|
}else{
|
|
|
result.getJSONObject("obj").put("familyDoctorCode","");
|
|
|
}
|
|
|
return result.getJSONObject("obj");
|
|
|
}
|
|
|
throw new Exception("请求微服务失败!");
|