@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)
CategoryServicequeryObject in interface CategoryServiceid - 主键public List<CategoryEntity> queryList(Map<String,Object> map)
CategoryServicequeryList in interface CategoryServicemap - 参数public int queryTotal(Map<String,Object> map)
CategoryServicequeryTotal in interface CategoryServicemap - 参数public int save(CategoryEntity category)
CategoryServicesave in interface CategoryServicecategory - 实体public int update(CategoryEntity category)
CategoryServiceupdate in interface CategoryServicecategory - 实体public int delete(Integer id)
CategoryServicedelete in interface CategoryService@Transactional public int deleteBatch(Integer[] ids)
CategoryServicedeleteBatch in interface CategoryServiceCopyright © 2021. All rights reserved.