本文整理匯總了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;
}
示例2: countByExample
import com.zheng.upms.dao.model.UpmsPermissionExample; //導入依賴的package包/類
long countByExample(UpmsPermissionExample example);
示例3: deleteByExample
import com.zheng.upms.dao.model.UpmsPermissionExample; //導入依賴的package包/類
int deleteByExample(UpmsPermissionExample example);
示例4: selectByExample
import com.zheng.upms.dao.model.UpmsPermissionExample; //導入依賴的package包/類
List<UpmsPermission> selectByExample(UpmsPermissionExample example);
示例5: updateByExampleSelective
import com.zheng.upms.dao.model.UpmsPermissionExample; //導入依賴的package包/類
int updateByExampleSelective(@Param("record") UpmsPermission record, @Param("example") UpmsPermissionExample example);
示例6: updateByExample
import com.zheng.upms.dao.model.UpmsPermissionExample; //導入依賴的package包/類
int updateByExample(@Param("record") UpmsPermission record, @Param("example") UpmsPermissionExample example);