package com.ssj.dao.kmt.kmt.dao;

import com.ssj.bean.kmt.kmt.domain.KmtTags;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;

import java.util.List;


@Repository
public interface KmtTagsDao  extends JpaRepository<KmtTags, String> {

	
	@Query(nativeQuery = true, value = " SELECT * from kmt_tags t where t.type=?1 ORDER BY t.create_time  asc ")
	public List<KmtTags> findTagByType(Integer type);
	
	
}
