mirror of
https://gitee.com/best_handsome/mybatis-plus-join
synced 2025-07-11 00:02:22 +08:00
添加 SuppressWarnings
This commit is contained in:
parent
4f3f6dac3f
commit
30924c4810
@ -92,6 +92,7 @@ public class MPJSqlInjector extends DefaultSqlInjector {
|
||||
*/
|
||||
@Override
|
||||
@Deprecated
|
||||
@SuppressWarnings({"deprecation", "DeprecatedIsStillUsed"})
|
||||
public List<AbstractMethod> getMethodList(Class<?> mapperClass, TableInfo tableInfo) {
|
||||
if (Objects.nonNull(sqlInjector)) {
|
||||
return methodFilter(sqlInjector.getMethodList(mapperClass, tableInfo));
|
||||
|
@ -84,12 +84,21 @@ public class MybatisPlusConfig {
|
||||
}
|
||||
|
||||
@Override
|
||||
@SuppressWarnings("deprecation")
|
||||
public List<AbstractMethod> getMethodList(Class<?> mapperClass, TableInfo tableInfo) {
|
||||
List<AbstractMethod> list = super.getMethodList(mapperClass, tableInfo);
|
||||
//添加你的方法
|
||||
list.add(new InsertBatchSomeColumn());
|
||||
return list;
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<AbstractMethod> getMethodList(org.apache.ibatis.session.Configuration configuration, Class<?> mapperClass, TableInfo tableInfo) {
|
||||
List<AbstractMethod> list = super.getMethodList(configuration, mapperClass, tableInfo);
|
||||
//添加你的方法
|
||||
list.add(new InsertBatchSomeColumn());
|
||||
return list;
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user