Package com.imyeyu.spring.service
Class AbstractEntityService<T,P>
java.lang.Object
com.imyeyu.spring.service.AbstractEntityService<T,P>
- Type Parameters:
T- 实体类型P- 实体主键类型
- All Implemented Interfaces:
BaseService<T,,P> CreatableService<T>,DeletableService<P>,DestroyableService<P>,GettableService<T,,P> PageableService<T>,UpdatableService<T>
抽象实体服务类
- Since:
- 2025-05-14 17:06
- Author:
- 夜雨
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
baseMapper
基本 Mapper
-
-
Constructor Details
-
AbstractEntityService
public AbstractEntityService()
-
-
Method Details
-
mapper
获取 Mapper 实例- Returns:
- Mapper 实例
-
page
Description copied from interface:PageableService分页查询- Specified by:
pagein interfacePageableService<T>- Parameters:
page- 页面查询参数- Returns:
- 查询页面结果
-
create
Description copied from interface:CreatableService创建数据- Specified by:
createin interfaceCreatableService<T>- Parameters:
t- 数据对象
-
get
Description copied from interface:GettableService获取实体- Specified by:
getin interfaceGettableService<T,P> - Parameters:
id- 主键- Returns:
- 实体
-
update
Description copied from interface:UpdatableService修改数据- Specified by:
updatein interfaceUpdatableService<T>- Parameters:
t- 数据对象
-
delete
Description copied from interface:DeletableService软删除- Specified by:
deletein interfaceDeletableService<T>- Parameters:
p- 数据对象
-
destroy
Description copied from interface:DestroyableService销毁(物理删除)- Specified by:
destroyin interfaceDestroyableService<T>- Parameters:
p- 数据对象
-