public abstract class BaseServiceImpl<Record,Example> extends Object implements BaseService<Record,Example>
| 限定符和类型 | 字段和说明 |
|---|---|
ConcurrentHashMap<String,ProgressResult> |
processStatusHM
全局所有进度
|
| 构造器和说明 |
|---|
BaseServiceImpl() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
asyncExportData(javax.servlet.http.HttpServletResponse response,
String taskId,
Map<String,Object> paramMap)
异步导出
|
long |
countByExample(Example example)
根据条件查询记录数量
|
BaseResult |
deleteByExample(Example example)
根据条件删除记录
|
BaseResult |
deleteByPrimaryKey(Object id)
根据主键删除记录
|
void |
exportData(javax.servlet.http.HttpServletResponse response,
Map<String,Object> paramMap)
导出
|
void |
getProcessStatus(javax.servlet.http.HttpServletResponse response,
String taskId)
获得实时进度
|
BaseResult |
insertSelective(Record record)
插入记录有效字段
|
List<Record> |
selectByExample(Example example)
根据条件查询记录
|
Record |
selectByPrimaryKey(Object id)
根据主键查询记录
|
BaseResult |
selectDetailsByPrimaryKey(Object id)
根据主键查找记录详情
|
PageVo |
selectPageByExample(PageVo pageVo,
Example example,
String sort)
分页
|
BaseResult |
updateByExampleSelective(Record record,
Example example)
根据条件更新有效字段
|
BaseResult |
updateByPrimaryKeySelective(Record record)
根据主键更新记录有效字段
|
BaseResult |
validateExistByField(String id,
String field,
String value)
根据字段校验数据是否存在
|
public ConcurrentHashMap<String,ProgressResult> processStatusHM
public BaseResult insertSelective(Record record)
BaseServiceinsertSelective 在接口中 BaseService<Record,Example>record - 插入数据的实体public BaseResult deleteByExample(Example example)
BaseServicedeleteByExample 在接口中 BaseService<Record,Example>example - 删除记录条件public BaseResult deleteByPrimaryKey(Object id)
BaseServicedeleteByPrimaryKey 在接口中 BaseService<Record,Example>id - 主键public BaseResult updateByExampleSelective(Record record, Example example)
BaseServiceupdateByExampleSelective 在接口中 BaseService<Record,Example>record - 实体example - 条件public BaseResult updateByPrimaryKeySelective(Record record)
BaseServiceupdateByPrimaryKeySelective 在接口中 BaseService<Record,Example>record - 实体public List<Record> selectByExample(Example example)
BaseServiceselectByExample 在接口中 BaseService<Record,Example>example - 条件public Record selectByPrimaryKey(Object id)
BaseServiceselectByPrimaryKey 在接口中 BaseService<Record,Example>id - 主键public BaseResult selectDetailsByPrimaryKey(Object id)
BaseServiceselectDetailsByPrimaryKey 在接口中 BaseService<Record,Example>public long countByExample(Example example)
BaseServicecountByExample 在接口中 BaseService<Record,Example>example - 条件public PageVo selectPageByExample(PageVo pageVo, Example example, String sort)
BaseServiceselectPageByExample 在接口中 BaseService<Record,Example>pageVo - 分页对象example - 条件public void exportData(javax.servlet.http.HttpServletResponse response,
Map<String,Object> paramMap)
throws Exception
BaseServiceexportData 在接口中 BaseService<Record,Example>Exception@Async
public void asyncExportData(javax.servlet.http.HttpServletResponse response,
String taskId,
Map<String,Object> paramMap)
BaseServiceasyncExportData 在接口中 BaseService<Record,Example>public void getProcessStatus(javax.servlet.http.HttpServletResponse response,
String taskId)
throws Exception
BaseServicegetProcessStatus 在接口中 BaseService<Record,Example>taskId - 任务IDExceptionpublic BaseResult validateExistByField(String id, String field, String value)
BaseServicevalidateExistByField 在接口中 BaseService<Record,Example>id - 主键field - 字段名value - 字段值Copyright © 2022. All rights reserved.