com.macro.mall.model.UmsPermissionExample Java Examples

The following examples show how to use com.macro.mall.model.UmsPermissionExample. 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: UmsPermissionServiceImpl.java    From macrozheng-mall with MIT License 5 votes vote down vote up
@Override
public List<UmsPermissionNode> treeList() {
    List<UmsPermission> permissionList = permissionMapper.selectByExample(new UmsPermissionExample());
    List<UmsPermissionNode> result = permissionList.stream()
            .filter(permission -> permission.getPid().equals(0L))
            .map(permission -> covert(permission,permissionList)).collect(Collectors.toList());
    return result;
}
 
Example #2
Source File: UmsPermissionServiceImpl.java    From mall-swarm with Apache License 2.0 5 votes vote down vote up
@Override
public List<UmsPermissionNode> treeList() {
    List<UmsPermission> permissionList = permissionMapper.selectByExample(new UmsPermissionExample());
    List<UmsPermissionNode> result = permissionList.stream()
            .filter(permission -> permission.getPid().equals(0L))
            .map(permission -> covert(permission,permissionList)).collect(Collectors.toList());
    return result;
}
 
Example #3
Source File: UmsPermissionServiceImpl.java    From mall with Apache License 2.0 5 votes vote down vote up
@Override
public List<UmsPermissionNode> treeList() {
    List<UmsPermission> permissionList = permissionMapper.selectByExample(new UmsPermissionExample());
    List<UmsPermissionNode> result = permissionList.stream()
            .filter(permission -> permission.getPid().equals(0L))
            .map(permission -> covert(permission,permissionList)).collect(Collectors.toList());
    return result;
}
 
Example #4
Source File: UmsPermissionServiceImpl.java    From macrozheng with Apache License 2.0 5 votes vote down vote up
@Override
public List<UmsPermissionNode> treeList() {
    List<UmsPermission> permissionList = permissionMapper.selectByExample(new UmsPermissionExample());
    List<UmsPermissionNode> result = permissionList.stream()
            .filter(permission -> permission.getPid().equals(0L))
            .map(permission -> covert(permission,permissionList)).collect(Collectors.toList());
    return result;
}
 
Example #5
Source File: UmsPermissionServiceImpl.java    From macrozheng-mall with MIT License 4 votes vote down vote up
@Override
public List<UmsPermission> list() {
    return permissionMapper.selectByExample(new UmsPermissionExample());
}
 
Example #6
Source File: UmsPermissionServiceImpl.java    From macrozheng-mall with MIT License 4 votes vote down vote up
@Override
public int delete(List<Long> ids) {
    UmsPermissionExample example = new UmsPermissionExample();
    example.createCriteria().andIdIn(ids);
    return permissionMapper.deleteByExample(example);
}
 
Example #7
Source File: UmsPermissionServiceImpl.java    From mall-swarm with Apache License 2.0 4 votes vote down vote up
@Override
public int delete(List<Long> ids) {
    UmsPermissionExample example = new UmsPermissionExample();
    example.createCriteria().andIdIn(ids);
    return permissionMapper.deleteByExample(example);
}
 
Example #8
Source File: UmsPermissionServiceImpl.java    From mall-swarm with Apache License 2.0 4 votes vote down vote up
@Override
public List<UmsPermission> list() {
    return permissionMapper.selectByExample(new UmsPermissionExample());
}
 
Example #9
Source File: UmsPermissionServiceImpl.java    From mall with Apache License 2.0 4 votes vote down vote up
@Override
public int delete(List<Long> ids) {
    UmsPermissionExample example = new UmsPermissionExample();
    example.createCriteria().andIdIn(ids);
    return permissionMapper.deleteByExample(example);
}
 
Example #10
Source File: UmsPermissionServiceImpl.java    From macrozheng with Apache License 2.0 4 votes vote down vote up
@Override
public List<UmsPermission> list() {
    return permissionMapper.selectByExample(new UmsPermissionExample());
}
 
Example #11
Source File: UmsPermissionServiceImpl.java    From mall with Apache License 2.0 4 votes vote down vote up
@Override
public List<UmsPermission> list() {
    return permissionMapper.selectByExample(new UmsPermissionExample());
}
 
Example #12
Source File: UmsPermissionServiceImpl.java    From macrozheng with Apache License 2.0 4 votes vote down vote up
@Override
public int delete(List<Long> ids) {
    UmsPermissionExample example = new UmsPermissionExample();
    example.createCriteria().andIdIn(ids);
    return permissionMapper.deleteByExample(example);
}
 
Example #13
Source File: UmsPermissionMapper.java    From mall with Apache License 2.0 votes vote down vote up
int updateByExample(@Param("record") UmsPermission record, @Param("example") UmsPermissionExample example); 
Example #14
Source File: UmsPermissionMapper.java    From mall with Apache License 2.0 votes vote down vote up
long countByExample(UmsPermissionExample example); 
Example #15
Source File: UmsPermissionMapper.java    From macrozheng-mall with MIT License votes vote down vote up
int countByExample(UmsPermissionExample example); 
Example #16
Source File: UmsPermissionMapper.java    From macrozheng-mall with MIT License votes vote down vote up
int deleteByExample(UmsPermissionExample example); 
Example #17
Source File: UmsPermissionMapper.java    From macrozheng-mall with MIT License votes vote down vote up
List<UmsPermission> selectByExample(UmsPermissionExample example); 
Example #18
Source File: UmsPermissionMapper.java    From macrozheng-mall with MIT License votes vote down vote up
int updateByExampleSelective(@Param("record") UmsPermission record, @Param("example") UmsPermissionExample example); 
Example #19
Source File: UmsPermissionMapper.java    From macrozheng-mall with MIT License votes vote down vote up
int updateByExample(@Param("record") UmsPermission record, @Param("example") UmsPermissionExample example); 
Example #20
Source File: UmsPermissionMapper.java    From mall with Apache License 2.0 votes vote down vote up
int updateByExampleSelective(@Param("record") UmsPermission record, @Param("example") UmsPermissionExample example); 
Example #21
Source File: UmsPermissionMapper.java    From mall with Apache License 2.0 votes vote down vote up
List<UmsPermission> selectByExample(UmsPermissionExample example); 
Example #22
Source File: UmsPermissionMapper.java    From mall with Apache License 2.0 votes vote down vote up
int deleteByExample(UmsPermissionExample example); 
Example #23
Source File: UmsPermissionMapper.java    From mall-swarm with Apache License 2.0 votes vote down vote up
long countByExample(UmsPermissionExample example); 
Example #24
Source File: UmsPermissionMapper.java    From macrozheng with Apache License 2.0 votes vote down vote up
int updateByExample(@Param("record") UmsPermission record, @Param("example") UmsPermissionExample example); 
Example #25
Source File: UmsPermissionMapper.java    From macrozheng with Apache License 2.0 votes vote down vote up
int updateByExampleSelective(@Param("record") UmsPermission record, @Param("example") UmsPermissionExample example); 
Example #26
Source File: UmsPermissionMapper.java    From macrozheng with Apache License 2.0 votes vote down vote up
List<UmsPermission> selectByExample(UmsPermissionExample example); 
Example #27
Source File: UmsPermissionMapper.java    From macrozheng with Apache License 2.0 votes vote down vote up
int deleteByExample(UmsPermissionExample example); 
Example #28
Source File: UmsPermissionMapper.java    From macrozheng with Apache License 2.0 votes vote down vote up
int countByExample(UmsPermissionExample example); 
Example #29
Source File: UmsPermissionMapper.java    From mall-swarm with Apache License 2.0 votes vote down vote up
int updateByExample(@Param("record") UmsPermission record, @Param("example") UmsPermissionExample example); 
Example #30
Source File: UmsPermissionMapper.java    From mall-swarm with Apache License 2.0 votes vote down vote up
int updateByExampleSelective(@Param("record") UmsPermission record, @Param("example") UmsPermissionExample example);