فهرست منبع

专科医生服务

trick9191 7 سال پیش
والد
کامیت
9cb86c5b78

+ 4 - 0
patient-co/patient-co-wlyy/src/main/java/com/yihu/wlyy/service/app/label/SignPatientLabelInfoService.java

@ -643,6 +643,10 @@ public class SignPatientLabelInfoService extends BaseService {
                // 患者标签
                //json.put("labels", labels == null ? "" : labels);
                //1.4.9版本专科医生判断
                json.put("isSpecialist",specialistService.checkPatientSpecialistSign(p.getCode()));
                result.put(p.getCode(), json);
            }
        }

+ 19 - 0
patient-co/patient-co-wlyy/src/main/java/com/yihu/wlyy/service/specialist/SpecialistService.java

@ -732,5 +732,24 @@ public class SpecialistService extends BaseService {
        List<SignPatientLabelInfo> list =   signPatientLabelInfoDao.findByPatientAndLabelTypeAndStatus(patient,"8",1);
        return list;
    }
    public Boolean checkPatientSpecialistSign(String patient){
        try {
            Map<String, Object> param = new HashedMap();
            param.put("patient", patient);
            HttpResponse response = HttpUtils.doGet(specialistUrl + "svr-specialist/findPatientTeamList", param);
            JSONObject rs = new JSONObject(response.getContent());
            if ("succes".equals(rs.getString("message"))) {
                JSONArray jr = rs.getJSONArray("obj");
                if(jr!=null&&jr.length()>0){
                    return true;
                }
                return false;
            }
        }catch (Exception e){
            logger.info(e.getMessage()+"_"+e.toString());
        }
        return false;
    }
}