当前位置: 首页>>代码示例>>Java>>正文


Java UpmsPermissionExample类代码示例

本文整理汇总了Java中com.zheng.upms.dao.model.UpmsPermissionExample的典型用法代码示例。如果您正苦于以下问题:Java UpmsPermissionExample类的具体用法?Java UpmsPermissionExample怎么用?Java UpmsPermissionExample使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


UpmsPermissionExample类属于com.zheng.upms.dao.model包,在下文中一共展示了UpmsPermissionExample类的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: list

import com.zheng.upms.dao.model.UpmsPermissionExample; //导入依赖的package包/类
@ApiOperation(value = "权限列表")
@RequiresPermissions("upms:permission:read")
@RequestMapping(value = "/list", method = RequestMethod.GET)
@ResponseBody
public Object list(
        @RequestParam(required = false, defaultValue = "0", value = "offset") int offset,
        @RequestParam(required = false, defaultValue = "10", value = "limit") int limit,
        @RequestParam(required = false, defaultValue = "", value = "search") String search,
        @RequestParam(required = false, defaultValue = "0", value = "type") int type,
        @RequestParam(required = false, defaultValue = "0", value = "systemId") int systemId,
        @RequestParam(required = false, value = "sort") String sort,
        @RequestParam(required = false, value = "order") String order) {
    UpmsPermissionExample upmsPermissionExample = new UpmsPermissionExample();
    UpmsPermissionExample.Criteria criteria = upmsPermissionExample.createCriteria();
    if (0 != type) {
        criteria.andTypeEqualTo((byte) type);
    }
    if (0 != systemId) {
        criteria.andSystemIdEqualTo(systemId);
    }
    if (!StringUtils.isBlank(sort) && !StringUtils.isBlank(order)) {
        upmsPermissionExample.setOrderByClause(sort + " " + order);
    }
    if (StringUtils.isNotBlank(search)) {
        upmsPermissionExample.or()
                .andNameLike("%" + search + "%");
    }
    List<UpmsPermission> rows = upmsPermissionService.selectByExampleForOffsetPage(upmsPermissionExample, offset, limit);
    long total = upmsPermissionService.countByExample(upmsPermissionExample);
    Map<String, Object> result = new HashMap<>();
    result.put("rows", rows);
    result.put("total", total);
    return result;
}
 
开发者ID:ChangyiHuang,项目名称:shuzheng,代码行数:35,代码来源:UpmsPermissionController.java

示例2: countByExample

import com.zheng.upms.dao.model.UpmsPermissionExample; //导入依赖的package包/类
long countByExample(UpmsPermissionExample example); 
开发者ID:youngMen1,项目名称:-Spring-SpringMVC-Mybatis-,代码行数:2,代码来源:UpmsPermissionMapper.java

示例3: deleteByExample

import com.zheng.upms.dao.model.UpmsPermissionExample; //导入依赖的package包/类
int deleteByExample(UpmsPermissionExample example); 
开发者ID:youngMen1,项目名称:-Spring-SpringMVC-Mybatis-,代码行数:2,代码来源:UpmsPermissionMapper.java

示例4: selectByExample

import com.zheng.upms.dao.model.UpmsPermissionExample; //导入依赖的package包/类
List<UpmsPermission> selectByExample(UpmsPermissionExample example); 
开发者ID:youngMen1,项目名称:-Spring-SpringMVC-Mybatis-,代码行数:2,代码来源:UpmsPermissionMapper.java

示例5: updateByExampleSelective

import com.zheng.upms.dao.model.UpmsPermissionExample; //导入依赖的package包/类
int updateByExampleSelective(@Param("record") UpmsPermission record, @Param("example") UpmsPermissionExample example); 
开发者ID:youngMen1,项目名称:-Spring-SpringMVC-Mybatis-,代码行数:2,代码来源:UpmsPermissionMapper.java

示例6: updateByExample

import com.zheng.upms.dao.model.UpmsPermissionExample; //导入依赖的package包/类
int updateByExample(@Param("record") UpmsPermission record, @Param("example") UpmsPermissionExample example); 
开发者ID:youngMen1,项目名称:-Spring-SpringMVC-Mybatis-,代码行数:2,代码来源:UpmsPermissionMapper.java


注:本文中的com.zheng.upms.dao.model.UpmsPermissionExample类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。