类 Y9ManagerServiceImpl
- java.lang.Object
-
- net.risesoft.service.org.impl.Y9ManagerServiceImpl
-
- 所有已实现的接口:
Y9ManagerService
@Transactional(value="rsTenantTransactionManager", readOnly=true) @Service public class Y9ManagerServiceImpl extends Object implements Y9ManagerService- 作者:
- dingzhaojun, qinman, mengjuhua
- Date:
- 2022/2/10
-
-
构造器概要
构造器 构造器 说明 Y9ManagerServiceImpl()
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 Y9ManagerchangeDisabled(String id)根据管理员id,改变管理员禁用状态voidchangePassword(String id, String newPassword)更改密码booleancheckPassword(String personId, String password)检查密码是否正确voiddelete(String id)根据管理员id删除管理员信息voiddelete(List<String> ids)根据管理员id数组删除管理员信息booleanexistsById(String id)根据id判断管理员是否存在booleanexistsByLoginName(String loginName)根据登录名判断管理员是否存在Optional<Y9Manager>findById(String id)根据id查找管理员Optional<Y9Manager>findByLoginName(String loginName)Y9ManagergetById(String id)根据id获取管理员信息intgetPasswordModifiedCycle(net.risesoft.enums.platform.ManagerLevelEnum managerLevel)intgetReviewLogCycle(net.risesoft.enums.platform.ManagerLevelEnum managerLevel)booleanisDeptManager(String managerId, String deptId)是否为子域三员booleanisLoginNameAvailable(String id, String loginName)判断管理员登录名BooleanisPasswordExpired(String id)List<Y9Manager>listAll()查询所有管理员List<Y9Manager>listByGlobalManager(boolean globalManager)获取管理员列表List<Y9Manager>listByParentId(String parentId)根据父节点id获取管理员列表voidonParentDepartmentDeleted(net.risesoft.y9.pubsub.event.Y9EntityDeletedEvent<Y9Department> event)voidremoveByParentId(String parentId)Y9ManagerresetDefaultPassword(String id)重置为默认密码Y9ManagersaveOrUpdate(Y9Manager y9Manager)保存管理员信息voidupdateCheckTime(String managerId, Date checkTime)更新检查时间
-
-
-
方法详细资料
-
changeDisabled
@Transactional(readOnly=false) public Y9Manager changeDisabled(String id)
从接口复制的说明:Y9ManagerService根据管理员id,改变管理员禁用状态- 指定者:
changeDisabled在接口中Y9ManagerService- 参数:
id- 管理员唯一标识- 返回:
Y9Manager
-
changePassword
@Transactional(readOnly=false) public void changePassword(String id, String newPassword)
从接口复制的说明:Y9ManagerService更改密码- 指定者:
changePassword在接口中Y9ManagerService- 参数:
id- idnewPassword- 新密码
-
checkPassword
public boolean checkPassword(String personId, String password)
从接口复制的说明:Y9ManagerService检查密码是否正确- 指定者:
checkPassword在接口中Y9ManagerService- 参数:
personId- 人员IDpassword- 密码- 返回:
- boolean
-
delete
@Transactional(readOnly=false) public void delete(List<String> ids)
从接口复制的说明:Y9ManagerService根据管理员id数组删除管理员信息- 指定者:
delete在接口中Y9ManagerService- 参数:
ids- 管理员id数组
-
delete
@Transactional(readOnly=false) public void delete(String id)
从接口复制的说明:Y9ManagerService根据管理员id删除管理员信息- 指定者:
delete在接口中Y9ManagerService- 参数:
id- 管理员id
-
existsById
public boolean existsById(String id)
从接口复制的说明:Y9ManagerService根据id判断管理员是否存在- 指定者:
existsById在接口中Y9ManagerService- 参数:
id- 管理员id- 返回:
- boolean
-
existsByLoginName
public boolean existsByLoginName(String loginName)
从接口复制的说明:Y9ManagerService根据登录名判断管理员是否存在- 指定者:
existsByLoginName在接口中Y9ManagerService- 参数:
loginName- 管理员id- 返回:
- boolean
-
findById
public Optional<Y9Manager> findById(String id)
从接口复制的说明:Y9ManagerService根据id查找管理员- 指定者:
findById在接口中Y9ManagerService- 参数:
id- 管理员id- 返回:
Optional<Y9Manager>管理员对象 或 null
-
findByLoginName
public Optional<Y9Manager> findByLoginName(String loginName)
- 指定者:
findByLoginName在接口中Y9ManagerService
-
getById
public Y9Manager getById(String id)
从接口复制的说明:Y9ManagerService根据id获取管理员信息- 指定者:
getById在接口中Y9ManagerService- 参数:
id- 管理员id- 返回:
- Y9Manager 管理员对象
-
getPasswordModifiedCycle
public int getPasswordModifiedCycle(net.risesoft.enums.platform.ManagerLevelEnum managerLevel)
- 指定者:
getPasswordModifiedCycle在接口中Y9ManagerService
-
getReviewLogCycle
public int getReviewLogCycle(net.risesoft.enums.platform.ManagerLevelEnum managerLevel)
- 指定者:
getReviewLogCycle在接口中Y9ManagerService
-
isDeptManager
public boolean isDeptManager(String managerId, String deptId)
从接口复制的说明:Y9ManagerService是否为子域三员- 指定者:
isDeptManager在接口中Y9ManagerService- 参数:
managerId- 经理iddeptId- 部门id- 返回:
- boolean
-
isLoginNameAvailable
public boolean isLoginNameAvailable(String id, String loginName)
从接口复制的说明:Y9ManagerService判断管理员登录名- 指定者:
isLoginNameAvailable在接口中Y9ManagerService- 参数:
id- 管理员idloginName- 登录名称- 返回:
- boolean
-
isPasswordExpired
public Boolean isPasswordExpired(String id)
- 指定者:
isPasswordExpired在接口中Y9ManagerService
-
listAll
public List<Y9Manager> listAll()
从接口复制的说明:Y9ManagerService查询所有管理员- 指定者:
listAll在接口中Y9ManagerService- 返回:
List<Y9Manager
-
listByGlobalManager
public List<Y9Manager> listByGlobalManager(boolean globalManager)
从接口复制的说明:Y9ManagerService获取管理员列表- 指定者:
listByGlobalManager在接口中Y9ManagerService- 参数:
globalManager- 是否全局管理员- 返回:
List<Y9Manager>
-
listByParentId
public List<Y9Manager> listByParentId(String parentId)
从接口复制的说明:Y9ManagerService根据父节点id获取管理员列表- 指定者:
listByParentId在接口中Y9ManagerService- 参数:
parentId- 父节点id- 返回:
List<Y9Manager>
-
resetDefaultPassword
@Transactional(readOnly=false) public Y9Manager resetDefaultPassword(String id)
从接口复制的说明:Y9ManagerService重置为默认密码- 指定者:
resetDefaultPassword在接口中Y9ManagerService- 参数:
id- 管理员id- 返回:
Y9Manager
-
saveOrUpdate
@Transactional(readOnly=false) public Y9Manager saveOrUpdate(Y9Manager y9Manager)
从接口复制的说明:Y9ManagerService保存管理员信息- 指定者:
saveOrUpdate在接口中Y9ManagerService- 参数:
y9Manager- 管理员对象- 返回:
Y9Manager
-
updateCheckTime
@Transactional(readOnly=false) public void updateCheckTime(String managerId, Date checkTime)
从接口复制的说明:Y9ManagerService更新检查时间- 指定者:
updateCheckTime在接口中Y9ManagerService- 参数:
managerId- 管理员idcheckTime- 审查时间
-
onParentDepartmentDeleted
@EventListener @Transactional(readOnly=false) public void onParentDepartmentDeleted(net.risesoft.y9.pubsub.event.Y9EntityDeletedEvent<Y9Department> event)
-
removeByParentId
@Transactional(readOnly=false) public void removeByParentId(String parentId)
-
-