|
@ -160,6 +160,22 @@ public interface DoctorDao extends PagingAndSortingRepository<Doctor, Long>, Jpa
|
|
|
@Query("update Doctor set checkPassword = ?2 ,checkSalt = ?3 where code = ?1")
|
|
|
int updateCheckPassword(String code, String checkPassword, String checkSalt);
|
|
|
|
|
|
@Modifying
|
|
|
@Query("update Doctor set concernNum = concernNum+1 where code = ?1")
|
|
|
int updateConcernNum(String code);
|
|
|
|
|
|
@Modifying
|
|
|
@Query("update Doctor set consultNum = consultNum+1 where code = ?1")
|
|
|
int updateConsultNum(String code);
|
|
|
|
|
|
@Modifying
|
|
|
@Query("update Doctor set articleNum = articleNum+1 where code = ?1")
|
|
|
int addArticleNum(String code);
|
|
|
|
|
|
@Modifying
|
|
|
@Query("update Doctor set articleNum = articleNum-1 where code = ?1 and articleNum>0")
|
|
|
int subArticleNum(String code);
|
|
|
|
|
|
@Query("select count(1) from Doctor where code=?1 and idcard=?2 ")
|
|
|
Integer checkCertificate(String doctorCode,String certificateNum);
|
|
|
|