wuww
2025-04-16 ff5368d3e2ac99fe931943ad10b7d697a7dd7dc6
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
package com.se.nsl.ext;
 
import com.baomidou.mybatisplus.core.injector.AbstractMethod;
import com.baomidou.mybatisplus.core.injector.DefaultSqlInjector;
import com.baomidou.mybatisplus.core.metadata.TableInfo;
 
import java.util.List;
 
@SuppressWarnings("ALL")
public class CustomizedSqlInjector extends DefaultSqlInjector {
    @Override
    public List<AbstractMethod> getMethodList(Class<?> mapperClass, TableInfo tableInfo) {
        List<AbstractMethod> methodList = super.getMethodList(mapperClass, tableInfo);
        methodList.add(new InsertBatchMethod());
        methodList.add(new UpdateBatchMethod());
 
        return methodList;
    }
}