public interface ICategoryBiz
extends com.mingsoft.base.biz.IBaseBiz
| 限定符和类型 | 方法和说明 |
|---|---|
int |
count(CategoryEntity category)
根据分类ID查询子分类总数
|
void |
deleteCategory(int categoryId)
删除类别 有拓展表继承时使用
|
void |
deleteCategoryEntity(int categoryId)
删除类别 没有拓展表继承时使用
|
CategoryEntity |
getCategory(int categoryId)
获取类别
|
List<CategoryEntity> |
queryBatchCategoryById(List<Integer> listId)
根据ID批量查询分类实体
|
List<CategoryEntity> |
queryByAppIdOrModelId(Integer appId,
Integer modelId)
根据应用编号与模块编号查询分类
|
List<CategoryEntity> |
queryByDescription(int appId,
int modelId,
String categoryDescription)
主要用于属性查询
|
List<CategoryEntity> |
queryByModelId(CategoryEntity category)
根据modelId查询分类
|
List |
queryByPageList(CategoryEntity category,
com.mingsoft.util.PageUtil page,
String orderBy,
boolean order)
分页查询 查询分类集合
|
List<Integer> |
queryCategoryIdByCategoryTitle(String categoryTitle,
int fatherModelId,
int sonModelId)
根据学校名称查询该学校所有专业ID
|
List<Integer> |
queryCategoryIdByTitle(String categoryTitle,
int categoryModelId)
根据分类名称查询分类ID集合(课表数据采集使用)
|
List<Integer> |
queryCategoryIdsByModelIdAndAppId(int appId,
int modelId)
根据应用id和模块id查询分类id的集合
|
List<CategoryEntity> |
queryChildrenCategory(int categoryId,
int appId,
int modelId)
查询当前分类下面的子分类
|
List<Integer> |
queryChildrenCategoryIds(int categoryId,
int appId,
int modelId)
查询当前分类下面的子分类的id
|
List<CategoryEntity> |
queryChilds(CategoryEntity category)
根据分类ID查询子分类
|
List<CategoryEntity> |
queryParent(int appId,
int modelId,
Integer categoryId)
递归获取父栏目,
|
CategoryEntity |
saveByCategoryTitle(String categoryTitle,
int categoryCategoryId,
int categoryModelId)
根据分类标题和分类的模块ID查询该分类是否存在 若存在则不持久化直接返回数据库中原来的数据 若不存在则持久化并返回实体信息
|
int |
saveCategory(CategoryEntity categoryEntity)
添加类别 有拓展表继承时使用
|
int |
saveCategoryEntity(CategoryEntity categoryEntity)
添加类别 没有拓展表继承时使用
|
void |
updateCategory(CategoryEntity categoryEntity)
类别更新 有拓展表继承时使用
|
void |
updateCategoryEntity(CategoryEntity categoryEntity)
类别更新 没有拓展表继承时使用
|
int saveCategory(CategoryEntity categoryEntity)
categoryEntity - 类别实体int saveCategoryEntity(CategoryEntity categoryEntity)
categoryEntity - 类别实体CategoryEntity saveByCategoryTitle(String categoryTitle, int categoryCategoryId, int categoryModelId)
categoryTitle - 分类标题categoryCategoryId - 父IDcategoryModelId - 模块IDvoid updateCategory(CategoryEntity categoryEntity)
categoryEntity - 类别实体void updateCategoryEntity(CategoryEntity categoryEntity)
categoryEntity - 类别实体void deleteCategory(int categoryId)
categoryId - 类别IDvoid deleteCategoryEntity(int categoryId)
categoryId - 类别IDCategoryEntity getCategory(int categoryId)
categoryId - 类别IDList queryByPageList(CategoryEntity category, com.mingsoft.util.PageUtil page, String orderBy, boolean order)
category - 查询条件page - 对象,主要封装分页的方法orderBy - 排序字段order - 排序方式true:asc false:descList<CategoryEntity> queryChilds(CategoryEntity category)
category - 分类实体int count(CategoryEntity category)
category - 分类实体List<CategoryEntity> queryByModelId(CategoryEntity category)
category - 分类实体List<Integer> queryCategoryIdByTitle(String categoryTitle, int categoryModelId)
categoryTitle - 分类名称categoryModelId - 模块IDList<Integer> queryCategoryIdByCategoryTitle(String categoryTitle, int fatherModelId, int sonModelId)
categoryTitle - 学校名称fatherModelId - 系所属模块IDsonModelId - 学校所属模块IDList<CategoryEntity> queryBatchCategoryById(List<Integer> listId)
listId - ID集合List<CategoryEntity> queryChildrenCategory(int categoryId, int appId, int modelId)
categoryId - 当前分类编号appId - 应用编号List<Integer> queryChildrenCategoryIds(int categoryId, int appId, int modelId)
categoryId - 当前分类编号List<CategoryEntity> queryByAppIdOrModelId(Integer appId, Integer modelId)
appId - 应用编号modelId - 模块编号List<CategoryEntity> queryParent(int appId, int modelId, Integer categoryId)
appId - 应用编号modelId - 模块编号categoryId - 可选List<CategoryEntity> queryByDescription(int appId, int modelId, String categoryDescription)
appId - 应用idmodelId - 模块idcategoryDescription - 分类描述Copyright © 2016. All rights reserved.