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