package com.YuyeTech.HeartRate.repository;

import com.YuyeTech.HeartRate.dataobject.Ranking;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.Optional;

/**
 * @author:slambb
 * @date:2020/6/23
 */
public interface RankingRepository extends JpaRepository<Ranking,Integer> {

    Optional<Ranking> findByUserIdAndRObjectIdAndCityCode(String userId,String objectId,String cityCode);
}
