本文整理汇总了Java中com.zheng.cms.dao.model.CmsCategoryExample类的典型用法代码示例。如果您正苦于以下问题:Java CmsCategoryExample类的具体用法?Java CmsCategoryExample怎么用?Java CmsCategoryExample使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
CmsCategoryExample类属于com.zheng.cms.dao.model包,在下文中一共展示了CmsCategoryExample类的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: list
import com.zheng.cms.dao.model.CmsCategoryExample; //导入依赖的package包/类
@ApiOperation(value = "类目列表")
@RequiresPermissions("cms:category: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) {
CmsCategoryExample cmsCategoryExample = new CmsCategoryExample();
if (!StringUtils.isBlank(sort) && !StringUtils.isBlank(order)) {
cmsCategoryExample.setOrderByClause(sort + " " + order);
}
List<CmsCategory> rows = cmsCategoryService.selectByExampleForOffsetPage(cmsCategoryExample, offset, limit);
long total = cmsCategoryService.countByExample(cmsCategoryExample);
Map<String, Object> result = new HashMap<>();
result.put("rows", rows);
result.put("total", total);
return result;
}
示例2: list
import com.zheng.cms.dao.model.CmsCategoryExample; //导入依赖的package包/类
@ApiOperation(value = "类目列表")
@RequiresPermissions("cms:category: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) {
CmsCategoryExample cmsCategoryExample = new CmsCategoryExample();
if (!StringUtils.isBlank(sort) && !StringUtils.isBlank(order)) {
cmsCategoryExample.setOrderByClause(sort + " " + order);
}
List<CmsCategory> rows = cmsCategoryService.selectByExampleForOffsetPage(cmsCategoryExample, offset, limit);
long total = cmsCategoryService.countByExample(cmsCategoryExample);
Map<String, Object> result = new HashMap<>(2);
result.put("rows", rows);
result.put("total", total);
return result;
}
示例3: countByExample
import com.zheng.cms.dao.model.CmsCategoryExample; //导入依赖的package包/类
long countByExample(CmsCategoryExample example);
示例4: deleteByExample
import com.zheng.cms.dao.model.CmsCategoryExample; //导入依赖的package包/类
int deleteByExample(CmsCategoryExample example);
示例5: selectByExample
import com.zheng.cms.dao.model.CmsCategoryExample; //导入依赖的package包/类
List<CmsCategory> selectByExample(CmsCategoryExample example);
示例6: updateByExampleSelective
import com.zheng.cms.dao.model.CmsCategoryExample; //导入依赖的package包/类
int updateByExampleSelective(@Param("record") CmsCategory record, @Param("example") CmsCategoryExample example);
示例7: updateByExample
import com.zheng.cms.dao.model.CmsCategoryExample; //导入依赖的package包/类
int updateByExample(@Param("record") CmsCategory record, @Param("example") CmsCategoryExample example);