com.zengtengpeng.common.dao.BaseDao Maven / Gradle / Ivy
package com.zengtengpeng.common.dao;
import java.util.List;
public interface BaseDao {
int deleteByPrimaryKey(T t);
int insert(T t);
T selectByPrimaryKey(T t);
/**
* 根据条件查询
*/
List queryByCondition(T t);
/**
* 更新(忽略null)
*/
Integer update(T t);
/**
* 分页查询
* @return
*/
List selectAll(T t);
}