类 Y9DepartmentManagerImpl
- java.lang.Object
-
- net.risesoft.manager.org.impl.Y9DepartmentManagerImpl
-
- 所有已实现的接口:
Y9DepartmentManager
@Transactional(value="rsTenantTransactionManager", readOnly=true) @CacheConfig(cacheNames="y9cache_orgDepartment") @Service public class Y9DepartmentManagerImpl extends Object implements Y9DepartmentManager
-
-
构造器概要
构造器 构造器 说明 Y9DepartmentManagerImpl()
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 voiddelete(Y9Department y9Department)Optional<Y9Department>findById(String id)Optional<Y9Department>findByIdNotCache(String id)根据id,获取部门信息(直接读取数据库)Y9DepartmentgetById(String id)根据id,获取部门信息Y9DepartmentgetByIdNotCache(String id)根据id,获取部门信息(直接读取数据库)Y9Departmentsave(Y9Department y9Department)Y9DepartmentsaveOrUpdate(Y9Department dept)Y9DepartmentsaveProperties(String id, String properties)保存或者更新部门扩展信息Y9DepartmentupdateTabIndex(String id, int tabIndex)保存或者更新部门扩展信息
-
-
-
方法详细资料
-
delete
@CacheEvict(key="#y9Department.id") @Transactional(readOnly=false) public void delete(Y9Department y9Department)
- 指定者:
delete在接口中Y9DepartmentManager
-
findById
@Cacheable(key="#id", condition="#id!=null", unless="#result==null") public Optional<Y9Department> findById(String id)- 指定者:
findById在接口中Y9DepartmentManager
-
findByIdNotCache
public Optional<Y9Department> findByIdNotCache(String id)
从接口复制的说明:Y9DepartmentManager根据id,获取部门信息(直接读取数据库)- 指定者:
findByIdNotCache在接口中Y9DepartmentManager- 参数:
id- 部门id- 返回:
Optional<Y9Department>
-
getByIdNotCache
public Y9Department getByIdNotCache(String id)
从接口复制的说明:Y9DepartmentManager根据id,获取部门信息(直接读取数据库)- 指定者:
getByIdNotCache在接口中Y9DepartmentManager- 参数:
id- 部门id- 返回:
Y9Department
-
getById
@Cacheable(key="#id", condition="#id != null", unless="#result == null") public Y9Department getById(String id)从接口复制的说明:Y9DepartmentManager根据id,获取部门信息- 指定者:
getById在接口中Y9DepartmentManager- 参数:
id- 部门id- 返回:
Y9Department
-
save
@CacheEvict(key="#y9Department.id") @Transactional(readOnly=false) public Y9Department save(Y9Department y9Department)
- 指定者:
save在接口中Y9DepartmentManager
-
saveOrUpdate
@Transactional(readOnly=false) public Y9Department saveOrUpdate(Y9Department dept)
- 指定者:
saveOrUpdate在接口中Y9DepartmentManager
-
saveProperties
@Transactional(readOnly=false) @CacheEvict(key="#id") public Y9Department saveProperties(String id, String properties)
从接口复制的说明:Y9DepartmentManager保存或者更新部门扩展信息- 指定者:
saveProperties在接口中Y9DepartmentManager- 参数:
id- 部门唯一标识properties- 扩展属性- 返回:
Y9Department
-
updateTabIndex
@Transactional(readOnly=false) @CacheEvict(key="#id") public Y9Department updateTabIndex(String id, int tabIndex)
从接口复制的说明:Y9DepartmentManager保存或者更新部门扩展信息- 指定者:
updateTabIndex在接口中Y9DepartmentManager- 参数:
id- 部门唯一标识tabIndex- 排序- 返回:
Y9Department
-
-