package com.ssj.dao.sys.poster.dao;

import com.ssj.bean.sys.poster.domain.PosterActivity;
import com.ssj.bean.sys.poster.domain.PosterActivityJoin;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;

/**
 * @author Mount Liu
 * @date 2019/3/17
 */
@Repository
public interface PosterActivityJoinDao extends JpaRepository<PosterActivityJoin, String> {


    @Query(nativeQuery = true,value = "select * from poster_activity_join where join_id=?1 and activity_id=?2 and template_id=?3 limit 1")
    PosterActivityJoin findOneByAnyP(String id, String activityId, String templateId);
}
