|  | @ -78,31 +78,26 @@ public class DoctorService extends TokenService {
 | 
	
		
			
				|  |  | 	}
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  | 	public Page<Doctor> famousDoctorList(String name, int page, int pagesize) {
 | 
	
		
			
				|  |  | 		// 分页信息
 | 
	
		
			
				|  |  | 		Pageable pageRequest = new PageRequest(page-1, pagesize);
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  | 	public List<Doctor> famousDoctorList(String name) {
 | 
	
		
			
				|  |  | 		SimpleDateFormat sdf=new SimpleDateFormat("yyyy-MM-dd");
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  | 		if (StringUtils.isNoneEmpty(name)) {
 | 
	
		
			
				|  |  | 			name="%"+name+"%";
 | 
	
		
			
				|  |  | 			return doctorDao.famousDoctorList(sdf.format(new Date()),name, pageRequest);
 | 
	
		
			
				|  |  | 			return doctorDao.famousDoctorList(sdf.format(new Date()),name);
 | 
	
		
			
				|  |  | 		}else{
 | 
	
		
			
				|  |  | 			return doctorDao.famousDoctorList(sdf.format(new Date()), pageRequest);
 | 
	
		
			
				|  |  | 			return doctorDao.famousDoctorList(sdf.format(new Date()));
 | 
	
		
			
				|  |  | 		}
 | 
	
		
			
				|  |  | 	}
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  | 	public Page<Doctor> getDoctorFamousDoctorList(String name, int page, int pagesize) {
 | 
	
		
			
				|  |  | 		// 分页信息
 | 
	
		
			
				|  |  | 		Pageable pageRequest = new PageRequest(page-1, pagesize);
 | 
	
		
			
				|  |  | 	public List<Doctor> getDoctorFamousDoctorList(String name) {
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  | 		SimpleDateFormat sdf=new SimpleDateFormat("yyyy-MM-dd");
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  | 		if (StringUtils.isNoneEmpty(name)) {
 | 
	
		
			
				|  |  | 			name="%"+name+"%";
 | 
	
		
			
				|  |  | 			return doctorDao.doctorFamousDoctorList(name, pageRequest);
 | 
	
		
			
				|  |  | 			return doctorDao.doctorFamousDoctorList(name);
 | 
	
		
			
				|  |  | 		}else{
 | 
	
		
			
				|  |  | 			return doctorDao.doctorFamousDoctorList(pageRequest);
 | 
	
		
			
				|  |  | 			return doctorDao.doctorFamousDoctorList();
 | 
	
		
			
				|  |  | 		}
 | 
	
		
			
				|  |  | 	}
 | 
	
		
			
				|  |  | 
 |