liding
2025-05-09 cb635802bd0187fd2874c8ad3d6664d4c7aa8555
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);
}