@Service(value="categoryBiz") public class CategoryBizImpl extends com.mingsoft.base.biz.impl.BaseBizImpl implements ICategoryBiz
| 构造器和说明 |
|---|
CategoryBizImpl() |
| 限定符和类型 | 方法和说明 |
|---|---|
int |
count(CategoryEntity category)
根据分类ID查询子分类总数
|
void |
deleteCategory(int categoryId)
删除类别 有拓展表继承时使用
|
void |
deleteCategoryEntity(int categoryId)
删除类别 没有拓展表继承时使用
|
CategoryEntity |
getCategory(int categoryId)
获取类别
|
ICategoryDao |
getCategoryDao()
获取类别持久化层
|
protected com.mingsoft.base.dao.IBaseDao |
getDao()
获取类别持久化层
|
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 categorySchoolName,
int schoolModelId,
int facultyModelId)
根据学校名称查询该学校所有专业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 |
setCategoryDao(ICategoryDao categoryDao) |
void |
updateCategory(CategoryEntity categoryEntity)
类别更新 有拓展表继承时使用
|
void |
updateCategoryEntity(CategoryEntity categoryEntity)
类别更新 没有拓展表继承时使用
|
alterTable, alterTable, countBySQL, createTable, delete, deleteBySQL, deleteEntity, dropTable, excuteSql, getEntity, insertBySQL, queryAll, queryByPage, queryBySQL, queryBySQL, queryCount, saveBatch, saveEntity, updateBySQL, updateEntitypublic ICategoryDao getCategoryDao()
@Autowired public void setCategoryDao(ICategoryDao categoryDao)
protected com.mingsoft.base.dao.IBaseDao getDao()
getDao 在类中 com.mingsoft.base.biz.impl.BaseBizImplpublic int saveCategory(CategoryEntity categoryEntity)
ICategoryBizsaveCategory 在接口中 ICategoryBizcategoryEntity - 类别实体public int saveCategoryEntity(CategoryEntity categoryEntity)
ICategoryBizsaveCategoryEntity 在接口中 ICategoryBizcategoryEntity - 类别实体public void deleteCategory(int categoryId)
ICategoryBizdeleteCategory 在接口中 ICategoryBizcategoryId - 类别IDpublic void deleteCategoryEntity(int categoryId)
ICategoryBizdeleteCategoryEntity 在接口中 ICategoryBizcategoryId - 类别IDpublic void updateCategory(CategoryEntity categoryEntity)
ICategoryBizupdateCategory 在接口中 ICategoryBizcategoryEntity - 类别实体public void updateCategoryEntity(CategoryEntity categoryEntity)
ICategoryBizupdateCategoryEntity 在接口中 ICategoryBizcategoryEntity - 类别实体public CategoryEntity getCategory(int categoryId)
ICategoryBizgetCategory 在接口中 ICategoryBizcategoryId - 类别IDpublic List queryByPageList(CategoryEntity category, com.mingsoft.util.PageUtil page, String orderBy, boolean order)
ICategoryBizqueryByPageList 在接口中 ICategoryBizcategory - 查询条件page - 对象,主要封装分页的方法orderBy - 排序字段order - 排序方式true:asc false:descpublic List<CategoryEntity> queryChilds(CategoryEntity category)
ICategoryBizqueryChilds 在接口中 ICategoryBizcategory - 分类实体public int count(CategoryEntity category)
ICategoryBizcount 在接口中 ICategoryBizcategory - 分类实体public List<CategoryEntity> queryByModelId(CategoryEntity category)
ICategoryBizqueryByModelId 在接口中 ICategoryBizcategory - 分类实体public List<Integer> queryCategoryIdByTitle(String categoryTitle, int categoryModelId)
ICategoryBizqueryCategoryIdByTitle 在接口中 ICategoryBizcategoryTitle - 分类名称categoryModelId - 模块IDpublic List<Integer> queryCategoryIdByCategoryTitle(String categorySchoolName, int schoolModelId, int facultyModelId)
ICategoryBizqueryCategoryIdByCategoryTitle 在接口中 ICategoryBizcategorySchoolName - 学校名称schoolModelId - 系所属模块IDfacultyModelId - 学校所属模块IDpublic CategoryEntity saveByCategoryTitle(String categoryTitle, int categoryCategoryId, int categoryModelId)
saveByCategoryTitle 在接口中 ICategoryBizcategoryTitle - 分类标题categoryCategoryId - 父IDcategoryModelId - 模块IDpublic List<CategoryEntity> queryBatchCategoryById(List<Integer> listId)
ICategoryBizqueryBatchCategoryById 在接口中 ICategoryBizlistId - ID集合public List<CategoryEntity> queryChildrenCategory(int categoryId, int appId, int modelId)
ICategoryBizqueryChildrenCategory 在接口中 ICategoryBizcategoryId - 当前分类编号appId - 应用编号public List<Integer> queryChildrenCategoryIds(int categoryId, int appId, int modelId)
ICategoryBizqueryChildrenCategoryIds 在接口中 ICategoryBizcategoryId - 当前分类编号public List<CategoryEntity> queryByAppIdOrModelId(Integer appId, Integer modelId)
ICategoryBizqueryByAppIdOrModelId 在接口中 ICategoryBizappId - 应用编号modelId - 模块编号public List<CategoryEntity> queryParent(int appId, int modelId, Integer categoryId)
ICategoryBizqueryParent 在接口中 ICategoryBizappId - 应用编号modelId - 模块编号categoryId - 可选public List<CategoryEntity> queryByDescription(int appId, int modelId, String categoryDescription)
ICategoryBizqueryByDescription 在接口中 ICategoryBizappId - 应用idmodelId - 模块idcategoryDescription - 分类描述public List<Integer> queryCategoryIdsByModelIdAndAppId(int appId, int modelId)
ICategoryBizqueryCategoryIdsByModelIdAndAppId 在接口中 ICategoryBizappId - 应用idmodelId - 模块idCopyright © 2016. All rights reserved.