From 64a62950bf3a2b2fac814c4f9e47c4e050ee1a8f Mon Sep 17 00:00:00 2001 From: pqyt64hnf <2543568107@qq.com> Date: Sun, 30 Apr 2023 01:03:37 +0800 Subject: [PATCH] ADD file via upload --- src/main/java/com/dao/NewsInfoDao.java | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 src/main/java/com/dao/NewsInfoDao.java 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(); +}