xiaoyong931011
2021-06-22 38609ee05255ce5c36f308fe8d595555a86f9ba3
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
package com.xzx.gc.batch;
 
import org.apache.ibatis.annotations.UpdateProvider;
 
import java.util.List;
 
/**
 * 批量update
 *
 * @param <T> 不能为空
 */
@tk.mybatis.mapper.annotation.RegisterMapper
public interface InsertSelectiveMapper<T> {
 
    /**
     * 根据Example条件批量更新实体`record`包含的不是null的属性值
     *
     * @return
     */
    @UpdateProvider(type = BatchInsertExampleProvider.class, method = "dynamicSQL")
    int insertBatchByPrimaryKeySelective(List<? extends T> recordList);
 
}