package com.ssm.OaManager.dao; import java.io.Serializable; import java.util.List; import com.ssm.OaManager.utils.PageBean; /** * @Description: 泛型类,基础的DAO接口 * @Author: albin * * @CreateDate: 2014-2-25 */ public interface BaseDao<T> { /**带条件分页查询,条件可以为null,既没有条件;返回list对象集合*/ public List<T> findByPage(PageBean<T> pageBean); /**只查询一个,常用于修改*/ public T findById(Serializable id); /** * 插入,用实体作为参数 * @param entity */ public int insert(T entity); /** * 修改,用实体作为参数 * @param entity */ public int update(T entity); /** * 按id删除,删除一条;支持整数型和字符串类型ID * @param entity */ public int deleteById(Serializable id); /** * 批量删除;支持整数型和字符串类型ID * @param entity */ public int delete(Serializable[] ids); /** * 查询全部 * @param entity */ public List<T> findAll(); /** * 查询记录数 * @param entity */ public int findCount(PageBean<T> pageBean); }

shuangfu LV25
2023年10月18日
ewan007 LV30
2023年3月30日
爱恋725 LV8
2023年2月27日
chengyuc LV10
2022年7月27日
蛇蛇皮怪 LV14
2022年6月23日
nyfcalf LV12
2022年6月10日
testuser1234567 LV24
2022年5月23日
cx123123 LV7
2022年5月18日
wuying8208 LV15
2022年5月12日
winnie_cc LV4
2022年3月1日

lvyga1 LV2
2024年12月20日
shaohuaqingfu LV3
2024年11月6日
angaochong LV5
2024年10月29日
唐唐丶 LV34
2024年9月12日
897258976 LV8
2024年8月29日
krispeng LV14
2024年8月12日
微信网友_7096619637297152
2024年7月26日
暂无贡献等级
799743530 LV11
2024年7月10日
yunsgui LV1
2024年6月25日
qwe6002 LV10
2024年5月24日