瀏覽代碼

康复管理代码提交

liuwenbin 7 年之前
父節點
當前提交
6f2cf83870

+ 8 - 1
patient-co/patient-co-wlyy/src/main/java/com/yihu/wlyy/service/specialist/rehabilitation/RehabilitationManageService.java

@ -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("请求微服务失败!");