|  | @ -145,7 +145,11 @@ public class PrescriptionService extends BaseJpaService<WlyyPrescriptionDO, Pres
 | 
	
		
			
				|  |  |         List<WlyyOutpatientVO> list = entranceService.BS30025(patNo,conNo,null,null,demoFlag);
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  |         if(list!=null&&list.size()>0){
 | 
	
		
			
				|  |  |             return list.get(0);
 | 
	
		
			
				|  |  |             WlyyOutpatientVO outpatientVO = list.get(0);
 | 
	
		
			
				|  |  |             BasePatientDO patientDO = basePatientDao.findById(outpatientVO.getPatient());
 | 
	
		
			
				|  |  |             outpatientVO.setSex(patientDO.getSex()+"");
 | 
	
		
			
				|  |  |             outpatientVO.setBirthday(patientDO.getBirthday());
 | 
	
		
			
				|  |  |             return outpatientVO;
 | 
	
		
			
				|  |  |         }
 | 
	
		
			
				|  |  |         return null;
 | 
	
		
			
				|  |  |     }
 | 
	
	
		
			
				|  | @ -1509,6 +1513,8 @@ public class PrescriptionService extends BaseJpaService<WlyyPrescriptionDO, Pres
 | 
	
		
			
				|  |  |                rs.put("hospital",null);
 | 
	
		
			
				|  |  |             }
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  |             //医生角色
 | 
	
		
			
				|  |  |             String sql = "SELECT " +
 | 
	
		
			
				|  |  |                     " t. CODE AS roleCode, " +
 | 
	
		
			
				|  |  |                     " t. NAME AS roleName" +
 | 
	
	
		
			
				|  | @ -1524,6 +1530,20 @@ public class PrescriptionService extends BaseJpaService<WlyyPrescriptionDO, Pres
 | 
	
		
			
				|  |  |             }else{
 | 
	
		
			
				|  |  |                 rs.put("roles",null);
 | 
	
		
			
				|  |  |             }
 | 
	
		
			
				|  |  |             //医生预约量
 | 
	
		
			
				|  |  |             List<WlyyPatientRegisterTimeDO>  registerTimeDOs = patientRegisterTimeDao.findByDoctor(doctor);
 | 
	
		
			
				|  |  |             if(registerTimeDOs!=null&®isterTimeDOs.size()>0){
 | 
	
		
			
				|  |  |                 rs.put("registerCount",registerTimeDOs.size());
 | 
	
		
			
				|  |  |             }else{
 | 
	
		
			
				|  |  |                 rs.put("registerCount",0);
 | 
	
		
			
				|  |  |             }
 | 
	
		
			
				|  |  |             //医生问诊量
 | 
	
		
			
				|  |  |             List<WlyyOutpatientDO> wlyyOutpatientDOs = outpatientDao.findByDoctorAndStatus(doctor,"2");
 | 
	
		
			
				|  |  |             if(wlyyOutpatientDOs!=null&&wlyyOutpatientDOs.size()>0){
 | 
	
		
			
				|  |  |                 rs.put("outpatientCount",wlyyOutpatientDOs.size());
 | 
	
		
			
				|  |  |             }else{
 | 
	
		
			
				|  |  |                 rs.put("outpatientCount",0);
 | 
	
		
			
				|  |  |             }
 | 
	
		
			
				|  |  |         }
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  |         return rs;
 |