| 
					
				 | 
			
			
				@ -17,6 +17,7 @@ import org.json.JSONObject; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				import org.springframework.beans.BeanUtils; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				import org.springframework.beans.factory.annotation.Autowired; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				import org.springframework.data.redis.core.RedisTemplate; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				import org.springframework.jdbc.core.BeanPropertyRowMapper; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				import org.springframework.jdbc.core.JdbcTemplate; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				import org.springframework.stereotype.Service; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				import org.springframework.transaction.annotation.Transactional; 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@ -350,8 +351,8 @@ public class BirthdayWishesService { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        Set<String> patientSet = new HashSet<>(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        SimpleDateFormat f = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        String createTime = f.format(new Date()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        SimpleDateFormat f = new SimpleDateFormat("yyyy-MM-dd"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        String createTime = f.format(new Date())+" 00:00:00"; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        //医生今日推送的居民 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        List<BirthDayWishesToPatient> sendPatientList = findSendPatientByCreateTime(p.toString(),createTime); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        Set<String> sendPatient = sendPatientList.stream().map(BirthDayWishesToPatient::getPatientCode).collect(Collectors.toSet()); 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@ -459,7 +460,7 @@ public class BirthdayWishesService { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            sql.append(" and patient_code in ( "+patient+" ) ") ; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        sql.append(" limit 0,500000 "); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        List<BirthDayWishesToPatient> patientList = jdbcTemplate.queryForList(sql.toString(), BirthDayWishesToPatient.class); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        List<BirthDayWishesToPatient> patientList = jdbcTemplate.query(sql.toString(),new BeanPropertyRowMapper<>(BirthDayWishesToPatient.class)); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        return patientList; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				} 
			 |