Untitled
@RequestMapping("/page") public R page(@RequestParam Map<String, Object> params, HttpServletRequest request){ logger.debug("page方法:,,Controller:{},,params:{}",this.getClass().getName(),JSONObject.toJSONString(params)); String role = String.valueOf(request.getSession().getAttribute("role")); if(false) return R.error(511,"永不会进入"); else if("用户".equals(role)) params.put("yonghuId",request.getSession().getAttribute("userId")); CommonUtil.checkMap(params); PageUtils page = caozuorizhiService.queryPage(params); //字典表数据转换 List<CaozuorizhiView> list =(List<CaozuorizhiView>)page.getList(); for(CaozuorizhiView c:list){ //修改对应字典表字段 dictionaryService.dictionaryConvert(c, request); } return R.ok().put("data", page); }
Leave a Comment