@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)
CommentServicequeryObject in interface CommentServiceid - 主键public List<CommentEntity> queryList(Map<String,Object> map)
CommentServicequeryList in interface CommentServicemap - 参数public int queryTotal(Map<String,Object> map)
CommentServicequeryTotal in interface CommentServicemap - 参数public int save(CommentEntity comment)
CommentServicesave in interface CommentServicecomment - 实体public int update(CommentEntity comment)
CommentServiceupdate in interface CommentServicecomment - 实体@Transactional public int delete(Integer id)
CommentServicedelete in interface CommentServicepublic int deleteBatch(Integer[] ids)
CommentServicedeleteBatch in interface CommentServicepublic int toggleStatus(CommentEntity comment)
CommentServicetoggleStatus in interface CommentServiceCopyright © 2021. All rights reserved.