|  | @ -2,6 +2,7 @@ package com.yihu.wlyy.repository.doctor;
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  | import com.yihu.wlyy.entity.doctor.scheme.DoctorSchemeBloodPressure;
 | 
	
		
			
				|  |  | import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
 | 
	
		
			
				|  |  | import org.springframework.data.jpa.repository.Modifying;
 | 
	
		
			
				|  |  | import org.springframework.data.jpa.repository.Query;
 | 
	
		
			
				|  |  | import org.springframework.data.repository.PagingAndSortingRepository;
 | 
	
		
			
				|  |  | 
 | 
	
	
		
			
				|  | @ -16,9 +17,13 @@ public interface DoctoreSchemeBloodPressureDao extends
 | 
	
		
			
				|  |  |         PagingAndSortingRepository<DoctorSchemeBloodPressure, Long>,
 | 
	
		
			
				|  |  |         JpaSpecificationExecutor<DoctorSchemeBloodPressure> {
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  |     @Query(" from DoctorSchemeBloodPressure p where p.doctorcode=?1 ORDER BY createTime DESC ")
 | 
	
		
			
				|  |  |     @Query(" from DoctorSchemeBloodPressure p where p.doctorcode=?1 and p.del != 1 order by p.code,p.dayofweek asc")
 | 
	
		
			
				|  |  |     List<DoctorSchemeBloodPressure> getListByDoctorcode(String doctorCode);
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  |     @Query(" from DoctorSchemeBloodPressure p where p.code=?1")
 | 
	
		
			
				|  |  |     @Query(" from DoctorSchemeBloodPressure p where p.code=?1 and p.del != 1 order by p.code,p.dayofweek asc")
 | 
	
		
			
				|  |  |     List<DoctorSchemeBloodPressure> findByCode(String code);
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  |     @Modifying
 | 
	
		
			
				|  |  |     @Query("update DoctorSchemeBloodPressure set del=?1 where doctorcode=?2")
 | 
	
		
			
				|  |  |     void updateDel(int i,String doctorcode);
 | 
	
		
			
				|  |  | }
 |