EventMapper.java 615 B

123456789101112131415161718192021222324252627
  1. package cn.cslg.pas.mapper;
  2. import cn.cslg.pas.domain.Event;
  3. import com.baomidou.mybatisplus.core.mapper.BaseMapper;
  4. import org.springframework.stereotype.Repository;
  5. import java.util.List;
  6. /**
  7. * 事件表的Mapper层接口
  8. *
  9. * @Author chenyu
  10. * @Date 2023/4/2
  11. */
  12. @Repository
  13. public interface EventMapper extends BaseMapper<Event> {
  14. /**
  15. * 根据名称和专题库ids统计数量
  16. *
  17. * @param questionName 事件名称
  18. * @param projectIds 专题库ids
  19. * @return 返回统计到的数量
  20. */
  21. int countByNameAndProjectIds(String questionName, List<Integer> projectIds);
  22. }