@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)
删除类别
有拓展表继承时使用
|
ICategoryDao |
getCategoryDao()
获取类别持久化层
|
protected com.mingsoft.base.dao.IBaseDao |
getDao()
获取类别持久化层
|
com.mingsoft.base.entity.BaseEntity |
getEntity(com.mingsoft.base.entity.BaseEntity entity) |
com.mingsoft.base.entity.BaseEntity |
getEntity(int id) |
List |
query(com.mingsoft.base.entity.BaseEntity entity) |
List<CategoryEntity> |
queryBatchCategoryById(List<Integer> listId)
根据ID批量查询分类实体
|
List<CategoryEntity> |
queryByAppIdOrModelId(Integer appId,
Integer modelId)
根据应用编号与模块编号查询分类
|
List |
queryByDictId(CategoryEntity category)
根据字典查询机构
|
List |
queryByPageList(CategoryEntity category,
com.mingsoft.util.PageUtil page,
String orderBy,
boolean order)
分页查询
查询分类集合
|
List<CategoryEntity> |
queryChildrenCategory(int categoryId,
int appId,
int modelId)
查询当前分类下面的子分类
|
int[] |
queryChildrenCategoryIds(int categoryId,
int appId,
int modelId)
已过期,使用当前分类的categorys获取当前子类
查询当前分类下面的子分类的id
|
List<CategoryEntity> |
queryChilds(CategoryEntity category)
根据分类ID查询子分类
|
int |
saveCategory(CategoryEntity categoryEntity)
添加类别
有拓展表继承时使用
|
void |
setCategoryDao(ICategoryDao categoryDao) |
void |
updateCategory(CategoryEntity categoryEntity)
类别更新
有拓展表继承时使用
|
alterTable, alterTable, countBySQL, createTable, delete, deleteBySQL, deleteEntity, deleteEntity, dropTable, excuteSql, insertBySQL, queryAll, queryByPage, queryBySQL, queryBySQL, queryCount, queryForSearchMapping, saveBatch, saveEntity, updateBySQL, updateEntityclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitalterTable, alterTable, countBySQL, createTable, delete, deleteBySQL, deleteEntity, deleteEntity, dropTable, excuteSql, insertBySQL, queryAll, queryByPage, queryBySQL, queryBySQL, queryCount, queryForSearchMapping, saveBatch, saveEntity, updateBySQL, updateEntitypublic int count(CategoryEntity category)
ICategoryBizcount 在接口中 ICategoryBizcategory - 分类实体public void deleteCategory(int categoryId)
ICategoryBizdeleteCategory 在接口中 ICategoryBizcategoryId - 类别IDpublic ICategoryDao getCategoryDao()
protected com.mingsoft.base.dao.IBaseDao getDao()
getDao 在类中 com.mingsoft.base.biz.impl.BaseBizImplpublic com.mingsoft.base.entity.BaseEntity getEntity(com.mingsoft.base.entity.BaseEntity entity)
getEntity 在接口中 com.mingsoft.base.biz.IBaseBizgetEntity 在类中 com.mingsoft.base.biz.impl.BaseBizImplpublic com.mingsoft.base.entity.BaseEntity getEntity(int id)
getEntity 在接口中 com.mingsoft.base.biz.IBaseBizgetEntity 在类中 com.mingsoft.base.biz.impl.BaseBizImplpublic List query(com.mingsoft.base.entity.BaseEntity entity)
query 在接口中 com.mingsoft.base.biz.IBaseBizquery 在类中 com.mingsoft.base.biz.impl.BaseBizImplpublic List<CategoryEntity> queryBatchCategoryById(List<Integer> listId)
ICategoryBizqueryBatchCategoryById 在接口中 ICategoryBizlistId - ID集合public List<CategoryEntity> queryByAppIdOrModelId(Integer appId, Integer modelId)
ICategoryBizqueryByAppIdOrModelId 在接口中 ICategoryBizappId - 应用编号modelId - 模块编号public List queryByDictId(CategoryEntity category)
queryByDictId 在接口中 ICategoryBizcategory - public List queryByPageList(CategoryEntity category, com.mingsoft.util.PageUtil page, String orderBy, boolean order)
ICategoryBizqueryByPageList 在接口中 ICategoryBizcategory - 查询条件page - 对象,主要封装分页的方法orderBy - 排序字段order - 排序方式true:asc false:descpublic List<CategoryEntity> queryChildrenCategory(int categoryId, int appId, int modelId)
ICategoryBizqueryChildrenCategory 在接口中 ICategoryBizcategoryId - 当前分类编号appId - 应用编号public int[] queryChildrenCategoryIds(int categoryId,
int appId,
int modelId)
ICategoryBizqueryChildrenCategoryIds 在接口中 ICategoryBizcategoryId - 当前分类编号public List<CategoryEntity> queryChilds(CategoryEntity category)
ICategoryBizqueryChilds 在接口中 ICategoryBizcategory - 分类实体public int saveCategory(CategoryEntity categoryEntity)
ICategoryBizsaveCategory 在接口中 ICategoryBizcategoryEntity - 类别实体@Autowired public void setCategoryDao(ICategoryDao categoryDao)
public void updateCategory(CategoryEntity categoryEntity)
ICategoryBizupdateCategory 在接口中 ICategoryBizcategoryEntity - 类别实体Copyright © 2018. All rights reserved.