yeshijie hace 7 años
padre
commit
d0e487b939

+ 16 - 0
patient-co/patient-co-wlyy/src/main/java/com/yihu/wlyy/repository/doctor/DoctorDao.java

@ -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);