src/main/java/com/nathan/base/BaseMapper.java
(开头部分) 1KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
package com.nathan.base;
import org.springframework.dao.DataAccessException;
import java.util.List;
/**
* BaseMapper 基本方法定义
*/
public interface BaseMapper<T,ID> {
/**
* 添加记录返回行数
* @param entity
* @return
*/
public Integer insertSelective(T entity) throws DataAccessException;
/**
* 添加记录返回主键
* @param entity
* @return
*/
public Integer insertHasKey(T entity) throws DataAccessException;
/**
* 批量添加
* @param entities
* @return
*/
public Integer insertBatch(List<T> entities) throws DataAccessException;
/**
* 根据id 查询详情
* @param id
* @return
*/
public T selectByPrimaryKey(ID id) throws DataAccessException;
/**
* 多条件查询
* @param baseQuery
* @return
*/
public List<T> selectByParams(BaseQuery baseQuery) throws DataAccessException;
/**
* 更新单条记录
* @param entity
* @return
*/
public Integer updateByPrimaryKeySelective(T entity) throws DataAccessException;
/**
* 批量更新
* @param entities
后面还有 20 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。