diff --git a/src/main/java/com/dao/NewsInfoDao.java b/src/main/java/com/dao/NewsInfoDao.java new file mode 100644 index 0000000..1b3c009 --- /dev/null +++ b/src/main/java/com/dao/NewsInfoDao.java @@ -0,0 +1,18 @@ +package com.example.dao; + +import com.example.entity.NewsInfo; +import com.example.vo.NewsInfoVo; +import org.apache.ibatis.annotations.Param; +import org.springframework.stereotype.Repository; +import tk.mybatis.mapper.common.Mapper; + +import java.util.List; + +@Repository +public interface NewsInfoDao extends Mapper { + List findByName(@Param("name") String name); + + + + Integer count(); +}