| 
					
				 | 
			
			
				@ -338,7 +338,24 @@ public class PrescriptionService extends BaseJpaService<WlyyPrescriptionDO, Pres 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            return null; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        logger.info("findOutpatientList patNo " + patNo); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        return entranceService.BS30025(patNo, null, startTime, endTime, demoFlag,ksdm); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        List<WlyyOutpatientVO> wlyyOutpatientVOList  =  entranceService.BS30025(patNo, null, startTime, endTime, demoFlag,ksdm); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        if (!ksdm.equalsIgnoreCase("1500010")){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            List<WlyyOutpatientVO> wlyyOutpatientVOList1  =  entranceService.BS30025(patNo, null, startTime, endTime, demoFlag,"1500010"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            if (wlyyOutpatientVOList!=null&&wlyyOutpatientVOList.size()!=0){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                if(wlyyOutpatientVOList1!=null&&wlyyOutpatientVOList1.size()!=0){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                    for (WlyyOutpatientVO wlyyOutpatientVO:wlyyOutpatientVOList1){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                        logger.info("==="+wlyyOutpatientVO); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                        if (wlyyOutpatientVO!=null){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                            wlyyOutpatientVOList.add(wlyyOutpatientVO); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                    } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            }else { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                wlyyOutpatientVOList = new ArrayList<>(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                wlyyOutpatientVOList = wlyyOutpatientVOList1; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        return wlyyOutpatientVOList; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    /** 
			 |