liyong
7 天以前 31995aba43c8e6f665f2f1451223fae1f5fd69f4
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
package com.ruoyi.common.config;
 
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
 
import java.util.List;
 
public interface MyBaseMapper<T> extends BaseMapper<T> {
 
    /**
     * 批量插入(仅插入非空字段)
     * @param list 实体列表
     * @return 插入成功的记录数
     */
    int insertBatchSomeColumn(List<T> list);
 
    /**
     * 批量更新(仅更新非空字段)
     */
    int updateBatchSomeColumn(List<T> list);
}