Untitled
unknown
plain_text
10 months ago
926 B
5
Indexable
@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);
}Editor is loading...
Leave a Comment