package cn.com.qmth.stmms.ms.core.repository;

import cn.com.qmth.stmms.ms.core.domain.user.MarkerGroup;
import cn.com.qmth.stmms.ms.core.vo.Subject;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

/**
 * Created by zhengmin on 2016/10/6.
 */
public interface MarkerGroupRepo extends JpaRepository<MarkerGroup, Long> {

    List<MarkerGroup> findByWorkIdAndSubject(Long workId, Subject subject);

    void deleteBySubjectAndWorkId(Subject subject, Long workId);
}
