@Service(value="topicService") public class TopicServiceImpl extends Object implements TopicService
Constructor and Description |
---|
TopicServiceImpl() |
Modifier and Type | Method and Description |
---|---|
int |
delete(Integer id)
根据主键删除
|
int |
deleteBatch(Integer[] ids)
根据主键批量删除
|
List<TopicEntity> |
queryList(Map<String,Object> map)
分页查询
|
TopicEntity |
queryObject(Integer id)
根据主键查询实体
|
int |
queryTotal(Map<String,Object> map)
分页统计总数
|
int |
save(TopicEntity topic)
保存实体
|
int |
update(TopicEntity topic)
根据主键更新实体
|
public TopicEntity queryObject(Integer id)
TopicService
queryObject
in interface TopicService
id
- 主键public List<TopicEntity> queryList(Map<String,Object> map)
TopicService
queryList
in interface TopicService
map
- 参数public int queryTotal(Map<String,Object> map)
TopicService
queryTotal
in interface TopicService
map
- 参数public int save(TopicEntity topic)
TopicService
save
in interface TopicService
topic
- 实体public int update(TopicEntity topic)
TopicService
update
in interface TopicService
topic
- 实体public int delete(Integer id)
TopicService
delete
in interface TopicService
public int deleteBatch(Integer[] ids)
TopicService
deleteBatch
in interface TopicService
Copyright © 2021. All rights reserved.