fangyuan
2022-11-21 c435158ed1ff587939314e84347ee6e38e8f25ec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
package com.ycl.mapper;
 
import java.util.List;
 
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import com.ycl.entity.NewsChannel;
 
/**
 * 频道表(NewsChannel)表数据库访问层
 *
 * @author makejava
 * @since 2022-11-17 11:38:27
 */
public interface NewsChannelDao extends BaseMapper<NewsChannel> {
 
/**
* 批量新增数据(MyBatis原生foreach方法)
*
* @param entities List<NewsChannel> 实例对象列表
* @return 影响行数
*/
int insertBatch(@Param("entities") List<NewsChannel> entities);
 
/**
* 批量新增或按主键更新数据(MyBatis原生foreach方法)
*
* @param entities List<NewsChannel> 实例对象列表
* @return 影响行数
* @throws org.springframework.jdbc.BadSqlGrammarException 入参是空List的时候会抛SQL语句错误的异常,请自行校验入参
*/
int insertOrUpdateBatch(@Param("entities") List<NewsChannel> entities);
 
int insertOneChannel(@Param("entity") NewsChannel entity);
 
List<NewsChannel> selectAllChannel();
 
}