use of com.hccake.extend.mybatis.plus.methods.InsertBatchSomeColumnByCollection in project ballcat by ballcat-projects.
the class MybatisPlusConfig method customSqlInjector.
/**
* 自定义批量插入方法注入
* @return ISqlInjector
*/
@Bean
@ConditionalOnMissingBean(ISqlInjector.class)
public ISqlInjector customSqlInjector() {
List<AbstractMethod> list = new ArrayList<>();
// 对于只在更新时进行填充的字段不做插入处理
list.add(new InsertBatchSomeColumnByCollection(t -> t.getFieldFill() != FieldFill.UPDATE));
return new CustomSqlInjector(list);
}
use of com.hccake.extend.mybatis.plus.methods.InsertBatchSomeColumnByCollection in project ballcat-codegen by ballcat-projects.
the class MybatisPlusConfig method customSqlInjector.
/**
* 自定义批量插入方法注入
* @return ISqlInjector
*/
@Bean
@ConditionalOnMissingBean(ISqlInjector.class)
public ISqlInjector customSqlInjector() {
List<AbstractMethod> list = new ArrayList<>();
// 对于只在更新时进行填充的字段不做插入处理
list.add(new InsertBatchSomeColumnByCollection(t -> t.getFieldFill() != FieldFill.UPDATE));
return new CustomSqlInjector(list);
}
Aggregations