public interface BaseService<E> {
/**
* 查询单个实体
* @param obj
* @return
* @throws AppException
*/
E load(E e);
/**
* 查询所有的实体信息
* @param sql
* @return
* @throws AppException
*/
List<E> qryList(E e);
/**
* 增加实体信息
* @param sql
* @return
* @throws AppException
*/
int add(E e)throws AppException;
/**
* 删除实体信息
* @param sql
* @return
* @throws AppException
*/
int upd(E e)throws AppException;
/**
* 删除实体信息
* @param sql
* @return
* @throws AppException
*/
int del(E e)throws AppException;
/**
* 批量删除
* @param idStr
* @return
* @throws AppException
*/
int del(String idStr)throws AppException;
}
正删改baseService服务接口类
最新推荐文章于 2023-08-26 15:00:33 发布