| 
					
				 | 
			
			
				@ -21,6 +21,7 @@ import org.springframework.beans.factory.annotation.Autowired; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				import org.springframework.stereotype.Service; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				import org.springframework.transaction.annotation.Transactional; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				import java.util.ArrayList; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				import java.util.Date; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				import java.util.Iterator; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				import java.util.List; 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@ -57,8 +58,9 @@ public class DataGeneratorService extends BaseJpaService<InternetUpErrorLogDO, I 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     * @param date 生成日期,“yyyy-MM-dd” 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     * @return 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     */ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    public String setData(String doctor,String date){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    public List<WlyyOutpatientDO> setData(String doctor,String date){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        List<WlyyOutpatientDO> outpatientDOs = new ArrayList<>(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        //居民门诊记录数据源 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        Iterable<PatientMappingDO> patientMappingDOs = patientMappingDao.findAll(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        Iterator it = patientMappingDOs.iterator(); 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@ -87,13 +89,16 @@ public class DataGeneratorService extends BaseJpaService<InternetUpErrorLogDO, I 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                //5.门诊预约 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                getRegisterDO(wlyyOutpatientDO,date); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                outpatientDOs.add(wlyyOutpatientDO); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        return "success"; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        return outpatientDOs; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    public String delData(String doctor,String date){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    public List<WlyyOutpatientDO> delData(String doctor,String date){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        //居民门诊记录数据源 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        Iterable<PatientMappingDO> patientMappingDOs = patientMappingDao.findAll(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        Iterator it = patientMappingDOs.iterator(); 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@ -129,7 +134,7 @@ public class DataGeneratorService extends BaseJpaService<InternetUpErrorLogDO, I 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            prescriptionDao.delete(prescriptionDOs); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        return "success"; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        return outpatientDOs; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    /** 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@ -159,6 +164,8 @@ public class DataGeneratorService extends BaseJpaService<InternetUpErrorLogDO, I 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        outpatientDO.setDeptName(hospitalDO.getDeptName()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        outpatientDO.setHospital(hospitalDO.getOrgCode()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        outpatientDO.setHospitalName(hospitalDO.getOrgName()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        outpatientDO.setOutpatientType("1"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        outpatientDO.setDescription("头晕,没有食欲"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        outpatientDO.setCreateTime(DateUtil.strToDate(date+" 09:30:00")); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        outpatientDO.setConDate(DateUtil.strToDate(date+" 09:30:00")); 
			 |