package com.yeejoin.amos.patrol.business.dao.repository;

import com.yeejoin.amos.patrol.dao.entity.PointPhoto;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Repository("iPointPhotoDao")
public interface IPointPhotoDao extends BaseDao<PointPhoto, Long> {
	
	@Modifying
	@Transactional
	@Query(value = "delete from p_point_photo where point_id in (?1)", nativeQuery = true)
	void deleteByPointId(List<Long> pointIds);
}
