package com.ywt.outpatient.domain.entity.center;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;


public interface WxappUserSessionRepository extends JpaRepository<WxappUserSession, Integer> {

    @Query(value = "select * From wxapp_user_session where open_id = ? limit 1;", nativeQuery = true)
    WxappUserSession getWxappUserSessionByOpenId(String openId);

}
