类 CategoryServiceImpl
java.lang.Object
com.walker.jdbc.service.BaseServiceImpl
com.iplatform.base.service.CategoryServiceImpl
- 所有已实现的接口:
com.walker.jdbc.BaseDao,com.walker.jdbc.service.BaseService
@Service
public class CategoryServiceImpl
extends com.walker.jdbc.service.BaseServiceImpl
系统设置分类目录,电商系统重构使用。
1.后续要加上缓存!
- 作者:
- 时克英
-
嵌套类概要
从接口继承的嵌套类/接口 com.walker.jdbc.BaseDao
com.walker.jdbc.BaseDao.RowExecution<T extends Object> -
字段概要
从类继承的字段 com.walker.jdbc.service.BaseServiceImpl
dao, log -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明voidexecUpdateCategory(S_category category) 更新分类信息,同时会更新父级、下级相关启用状态。getListTree(Integer type, Integer status, String name, int owner) 已过时。intqueryChildCategorySize(int pid) 查询给定父ID,包含子类数量intqueryNameUnique(String name, Integer type, Integer owner, int id) 查找是否有相同的类型记录int获得下一个可用的最大ID。从类继承的方法 com.walker.jdbc.service.BaseServiceImpl
delete, delete, delete, delete, execBatchUpdate, execCall, execCall, execute, execute, execute, execute, get, get, get, get, get, get, get, get, get, getDao, getMaxOrder, insert, insert, insertBatch, queryForInt, queryForInt, queryForObject, queryForObject, queryListObjectWhereIn, save, save, saveOrder, select, select, select, select, select, select, select, select, select, select, selectAll, selectSplit, selectSplit, selectSplit, selectSplit, selectSplit, selectSplit, selectSplit, selectSplit, selectSplit, selectSplit, selectSplit, selectSplit, selectSplit, selectSplit, selectSplit, selectSplit, selectSplit, selectSplit, selectSplit, selectSplit, selectSplit, setDao, sqlGeneralQueryPager, sqlGeneralQueryPager, sqlGeneralQueryPager, sqlListObjectWhereIn, sqlMathQuery, sqlQuery, sqlQuery, sqlQueryListMap, update, update, update, update, update, update, updateBatch
-
构造器详细资料
-
CategoryServiceImpl
public CategoryServiceImpl()
-
-
方法详细资料
-
execUpdateCategory
更新分类信息,同时会更新父级、下级相关启用状态。1)如状态为关闭,那么所以子集的状态都关闭 2)如是开启,则父类的状态为开启- 参数:
category-
-
queryChildCategorySize
public int queryChildCategorySize(int pid) 查询给定父ID,包含子类数量- 参数:
pid-- 返回:
-
queryNextId
public int queryNextId()获得下一个可用的最大ID。- 返回:
-
queryNameUnique
查找是否有相同的类型记录- 参数:
name- 分类名称type- 类别owner- 归属id- 已有ID- 返回:
-
getListTree
@Deprecated public List<CategoryTreeVo> getListTree(Integer type, Integer status, String name, int owner) 已过时。使用缓存对象替换数据库查询。- 参数:
type-status-name-owner-- 返回:
-