com.macro.mall.model.UmsAdminRoleRelation Java Examples
The following examples show how to use
com.macro.mall.model.UmsAdminRoleRelation.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: UmsAdminCacheServiceImpl.java From mall with Apache License 2.0 | 5 votes |
@Override public void delResourceListByRole(Long roleId) { UmsAdminRoleRelationExample example = new UmsAdminRoleRelationExample(); example.createCriteria().andRoleIdEqualTo(roleId); List<UmsAdminRoleRelation> relationList = adminRoleRelationMapper.selectByExample(example); if (CollUtil.isNotEmpty(relationList)) { String keyPrefix = REDIS_DATABASE + ":" + REDIS_KEY_RESOURCE_LIST + ":"; List<String> keys = relationList.stream().map(relation -> keyPrefix + relation.getAdminId()).collect(Collectors.toList()); redisService.del(keys); } }
Example #2
Source File: UmsAdminCacheServiceImpl.java From mall with Apache License 2.0 | 5 votes |
@Override public void delResourceListByRoleIds(List<Long> roleIds) { UmsAdminRoleRelationExample example = new UmsAdminRoleRelationExample(); example.createCriteria().andRoleIdIn(roleIds); List<UmsAdminRoleRelation> relationList = adminRoleRelationMapper.selectByExample(example); if (CollUtil.isNotEmpty(relationList)) { String keyPrefix = REDIS_DATABASE + ":" + REDIS_KEY_RESOURCE_LIST + ":"; List<String> keys = relationList.stream().map(relation -> keyPrefix + relation.getAdminId()).collect(Collectors.toList()); redisService.del(keys); } }
Example #3
Source File: UmsAdminRoleRelationDao.java From macrozheng-mall with MIT License | 2 votes |
/** * 批量插入用户角色关系 */ int insertList(@Param("list") List<UmsAdminRoleRelation> adminRoleRelationList);
Example #4
Source File: UmsAdminRoleRelationDao.java From macrozheng with Apache License 2.0 | 2 votes |
/** * 批量插入用户角色关系 */ int insertList(@Param("list") List<UmsAdminRoleRelation> adminRoleRelationList);
Example #5
Source File: UmsAdminRoleRelationDao.java From mall-swarm with Apache License 2.0 | 2 votes |
/** * 批量插入用户角色关系 */ int insertList(@Param("list") List<UmsAdminRoleRelation> adminRoleRelationList);
Example #6
Source File: UmsAdminRoleRelationDao.java From mall with Apache License 2.0 | 2 votes |
/** * 批量插入用户角色关系 */ int insertList(@Param("list") List<UmsAdminRoleRelation> adminRoleRelationList);
Example #7
Source File: UmsAdminRoleRelationMapper.java From mall with Apache License 2.0 | votes |
UmsAdminRoleRelation selectByPrimaryKey(Long id);
Example #8
Source File: UmsAdminRoleRelationMapper.java From mall with Apache License 2.0 | votes |
int insertSelective(UmsAdminRoleRelation record);
Example #9
Source File: UmsAdminRoleRelationMapper.java From mall with Apache License 2.0 | votes |
int updateByExampleSelective(@Param("record") UmsAdminRoleRelation record, @Param("example") UmsAdminRoleRelationExample example);
Example #10
Source File: UmsAdminRoleRelationMapper.java From mall with Apache License 2.0 | votes |
int updateByExample(@Param("record") UmsAdminRoleRelation record, @Param("example") UmsAdminRoleRelationExample example);
Example #11
Source File: UmsAdminRoleRelationMapper.java From mall with Apache License 2.0 | votes |
int updateByPrimaryKeySelective(UmsAdminRoleRelation record);
Example #12
Source File: UmsAdminRoleRelationMapper.java From mall with Apache License 2.0 | votes |
int updateByPrimaryKey(UmsAdminRoleRelation record);
Example #13
Source File: UmsAdminRoleRelationMapper.java From macrozheng-mall with MIT License | votes |
int insert(UmsAdminRoleRelation record);
Example #14
Source File: UmsAdminRoleRelationMapper.java From macrozheng-mall with MIT License | votes |
int insertSelective(UmsAdminRoleRelation record);
Example #15
Source File: UmsAdminRoleRelationMapper.java From macrozheng-mall with MIT License | votes |
List<UmsAdminRoleRelation> selectByExample(UmsAdminRoleRelationExample example);
Example #16
Source File: UmsAdminRoleRelationMapper.java From macrozheng-mall with MIT License | votes |
UmsAdminRoleRelation selectByPrimaryKey(Long id);
Example #17
Source File: UmsAdminRoleRelationMapper.java From macrozheng-mall with MIT License | votes |
int updateByExampleSelective(@Param("record") UmsAdminRoleRelation record, @Param("example") UmsAdminRoleRelationExample example);
Example #18
Source File: UmsAdminRoleRelationMapper.java From macrozheng-mall with MIT License | votes |
int updateByExample(@Param("record") UmsAdminRoleRelation record, @Param("example") UmsAdminRoleRelationExample example);
Example #19
Source File: UmsAdminRoleRelationMapper.java From macrozheng-mall with MIT License | votes |
int updateByPrimaryKeySelective(UmsAdminRoleRelation record);
Example #20
Source File: UmsAdminRoleRelationMapper.java From macrozheng-mall with MIT License | votes |
int updateByPrimaryKey(UmsAdminRoleRelation record);
Example #21
Source File: UmsAdminRoleRelationMapper.java From macrozheng with Apache License 2.0 | votes |
int insertSelective(UmsAdminRoleRelation record);
Example #22
Source File: UmsAdminRoleRelationMapper.java From mall-swarm with Apache License 2.0 | votes |
int insertSelective(UmsAdminRoleRelation record);
Example #23
Source File: UmsAdminRoleRelationMapper.java From mall-swarm with Apache License 2.0 | votes |
List<UmsAdminRoleRelation> selectByExample(UmsAdminRoleRelationExample example);
Example #24
Source File: UmsAdminRoleRelationMapper.java From mall-swarm with Apache License 2.0 | votes |
UmsAdminRoleRelation selectByPrimaryKey(Long id);
Example #25
Source File: UmsAdminRoleRelationMapper.java From mall-swarm with Apache License 2.0 | votes |
int updateByExampleSelective(@Param("record") UmsAdminRoleRelation record, @Param("example") UmsAdminRoleRelationExample example);
Example #26
Source File: UmsAdminRoleRelationMapper.java From mall-swarm with Apache License 2.0 | votes |
int updateByExample(@Param("record") UmsAdminRoleRelation record, @Param("example") UmsAdminRoleRelationExample example);
Example #27
Source File: UmsAdminRoleRelationMapper.java From mall-swarm with Apache License 2.0 | votes |
int updateByPrimaryKeySelective(UmsAdminRoleRelation record);
Example #28
Source File: UmsAdminRoleRelationMapper.java From mall-swarm with Apache License 2.0 | votes |
int updateByPrimaryKey(UmsAdminRoleRelation record);
Example #29
Source File: UmsAdminRoleRelationMapper.java From macrozheng with Apache License 2.0 | votes |
int insert(UmsAdminRoleRelation record);
Example #30
Source File: UmsAdminRoleRelationMapper.java From mall with Apache License 2.0 | votes |
List<UmsAdminRoleRelation> selectByExample(UmsAdminRoleRelationExample example);