com.seepine.mybatis.base.MpBaseMapper Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of spring-boot-starter-mybatis Show documentation
Show all versions of spring-boot-starter-mybatis Show documentation
Spring Boot Mybatis Dependencies
The newest version!
package com.seepine.mybatis.base;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.conditions.query.LambdaQueryChainWrapper;
import com.baomidou.mybatisplus.extension.conditions.update.LambdaUpdateChainWrapper;
import com.baomidou.mybatisplus.extension.toolkit.ChainWrappers;
import java.util.List;
/**
* @author seepine
* @param T
*/
public interface MpBaseMapper extends BaseMapper {
/**
* 批量插入 仅适用于 mysql
*
* @param entityList 实体列表
* @return 影响行数
*/
Integer insertBatchSomeColumn(List entityList);
/**
* 丰富接口支持自定义lambda查询
*
* @return LambdaQueryChainWrapper
*/
default LambdaQueryChainWrapper lambdaQuery() {
return ChainWrappers.lambdaQueryChain(this);
}
/**
* 丰富接口支持自定义lambda更新
*
* @return LambdaQueryChainWrapper
*/
default LambdaUpdateChainWrapper lambdaUpdate() {
return ChainWrappers.lambdaUpdateChain(this);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy