package com.ssj.dao.weixin.zuoyb.dao;

import com.ssj.bean.weixin.zyb.domain.ZuoybScoringContentDetails;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.domain.Specification;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;



/** 
 * @author  ZhangCaibao 
 * @version 2017年7月4日 上午11:26:14 
 * 类说明 
 */
@Repository
public interface ZuoybScoringContentDetailsDao extends JpaRepository<ZuoybScoringContentDetails, String> {

	 public Page<ZuoybScoringContentDetails> findAll(Specification<ZuoybScoringContentDetails> specification, Pageable page);
	 
	 @Query(nativeQuery = true, value = "delete from  zyb_scoring_content_details  where scoring_content_id = ?1   ")
	 @Modifying
	 public void deleteByScoringContentId(String scoringContentId);
}
