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


Java CmsPageExample类代码示例

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


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

示例1: list

import com.zheng.cms.dao.model.CmsPageExample; //导入依赖的package包/类
@ApiOperation(value = "评论列表")
@RequiresPermissions("cms:page: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, value = "sort") String sort,
		@RequestParam(required = false, value = "order") String order) {
	CmsPageExample cmsPageExample = new CmsPageExample();
	if (!StringUtils.isBlank(sort) && !StringUtils.isBlank(order)) {
		cmsPageExample.setOrderByClause(sort + " " + order);
	}
	List<CmsPage> rows = cmsPageService.selectByExampleForOffsetPage(cmsPageExample, offset, limit);
	long total = cmsPageService.countByExample(cmsPageExample);
	Map<String, Object> result = new HashMap<>();
	result.put("rows", rows);
	result.put("total", total);
	return result;
}
 
开发者ID:youngMen1,项目名称:-Spring-SpringMVC-Mybatis-,代码行数:21,代码来源:CmsPageController.java

示例2: list

import com.zheng.cms.dao.model.CmsPageExample; //导入依赖的package包/类
@ApiOperation(value = "评论列表")
@RequiresPermissions("cms:page: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, value = "sort") String sort,
		@RequestParam(required = false, value = "order") String order) {
	CmsPageExample cmsPageExample = new CmsPageExample();
	if (!StringUtils.isBlank(sort) && !StringUtils.isBlank(order)) {
		cmsPageExample.setOrderByClause(sort + " " + order);
	}
	List<CmsPage> rows = cmsPageService.selectByExampleForOffsetPage(cmsPageExample, offset, limit);
	long total = cmsPageService.countByExample(cmsPageExample);
	Map<String, Object> result = new HashMap<>(2);
	result.put("rows", rows);
	result.put("total", total);
	return result;
}
 
开发者ID:ChangyiHuang,项目名称:shuzheng,代码行数:21,代码来源:CmsPageController.java

示例3: index

import com.zheng.cms.dao.model.CmsPageExample; //导入依赖的package包/类
@RequestMapping(value = "/{alias}", method = RequestMethod.GET)
public String index(@PathVariable("alias") String alias, Model model) {
    CmsPageExample cmsPageExample = new CmsPageExample();
    cmsPageExample.createCriteria()
            .andAliasEqualTo(alias);
    CmsPage page = cmsPageService.selectFirstByExampleWithBLOBs(cmsPageExample);
    model.addAttribute("page", page);
    return thymeleaf("/page/index");
}
 
开发者ID:youngMen1,项目名称:-Spring-SpringMVC-Mybatis-,代码行数:10,代码来源:PageController.java

示例4: countByExample

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

示例5: deleteByExample

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

示例6: selectByExampleWithBLOBs

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

示例7: selectByExample

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

示例8: updateByExampleSelective

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

示例9: updateByExampleWithBLOBs

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

示例10: updateByExample

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


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