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