| 
															
																@ -9266,7 +9266,7 @@ public class PrescriptionService extends BaseJpaService<WlyyPrescriptionDO, Pres 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																    public com.alibaba.fastjson.JSONObject selectHospitalInfo(String doctorId){ 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																    public com.alibaba.fastjson.JSONObject selectHospitalInfo(String doctorId,String orgCode){ 
															 | 
														
													
												
													
														
															| 
															 | 
															
																        /** 
															 | 
															
															 | 
															
																        /** 
															 | 
														
													
												
													
														
															| 
															 | 
															
																         * 1、今日待就诊:今日当前家庭医生在当前医院的未完成的协同门诊书 
															 | 
															
															 | 
															
																         * 1、今日待就诊:今日当前家庭医生在当前医院的未完成的协同门诊书 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
											
												
													
														
															 | 
															
																@ -9296,10 +9296,10 @@ public class PrescriptionService extends BaseJpaService<WlyyPrescriptionDO, Pres 
															 | 
														
													
												
													
														
															| 
															 | 
															
																        //3、服务评分:当前医院的综合服务评分 
															 | 
															
															 | 
															
																        //3、服务评分:当前医院的综合服务评分 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																        //在线医生:当前医院在班的专科医生数 
															 | 
															
															 | 
															
																        //在线医生:当前医院在班的专科医生数 
															 | 
														
													
												
													
														
															| 
															 | 
															
																        String sql ="SELECT d.* FROM base_doctor d WHERE (EXISTS (SELECT 1 FROM wlyy_doctor_work_time t WHERE t.doctor = d.id AND t.start_time >=:startTime AND t.end_time <=:endTime ) OR  d.consult_status = '1')"; 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																        String sql ="SELECT d.id as \"id\",d.name as \"name\" FROM base_doctor d WHERE (EXISTS (SELECT 1 FROM wlyy_doctor_work_time t WHERE t.doctor = d.id AND t.start_time >=:startTime AND t.end_time <=:endTime ) OR  d.consult_status = '1')"; 
															 | 
														
													
												
													
														
															| 
															 | 
															
																        Map<String, Object> params = new HashedMap(); 
															 | 
															
															 | 
															
																        Map<String, Object> params = new HashedMap(); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																        params.put("startTime",startTime); 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																        params.put("endTime",endTime); 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																        params.put("startTime",DateUtil.dateToStrLong(startTime)); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																        params.put("endTime",DateUtil.dateToStrLong(endTime)); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																        List<Map<String, Object>> list = hibenateUtils.createSQLQuery(sql, params); 
															 | 
															
															 | 
															
																        List<Map<String, Object>> list = hibenateUtils.createSQLQuery(sql, params); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																        jsonObject.put("onlineDoctors",list.size()); 
															 | 
															
															 | 
															
																        jsonObject.put("onlineDoctors",list.size()); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
											
												
													
														
															 | 
															
																@ -9310,6 +9310,10 @@ public class PrescriptionService extends BaseJpaService<WlyyPrescriptionDO, Pres 
															 | 
														
													
												
													
														
															| 
															 | 
															
																        //累计就诊:当前医院累计协同门诊的已接诊数量 
															 | 
															
															 | 
															
																        //累计就诊:当前医院累计协同门诊的已接诊数量 
															 | 
														
													
												
													
														
															| 
															 | 
															
																        List<WlyyOutpatientDO> wlyyOutpatientDOList = outpatientDao.findOutpatientListByOutpatientType("xt",new Date()); 
															 | 
															
															 | 
															
																        List<WlyyOutpatientDO> wlyyOutpatientDOList = outpatientDao.findOutpatientListByOutpatientType("xt",new Date()); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																        jsonObject.put("xtOupatients",wlyyOutpatientDOList.size()); 
															 | 
															
															 | 
															
																        jsonObject.put("xtOupatients",wlyyOutpatientDOList.size()); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																        BaseOrgDO orgDO = baseOrgDao.findByCode(orgCode); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																        jsonObject.put("orgName",orgDO.getName()); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																        jsonObject.put("orgPhoto",orgDO.getPhoto()); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																        jsonObject.put("description",orgDO.getIntro()); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																        return jsonObject; 
															 | 
															
															 | 
															
																        return jsonObject; 
															 | 
														
													
												
													
														
															| 
															 | 
															
																    } 
															 | 
															
															 | 
															
																    } 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																 
															 |