libo9527 / gitalk-comments

Blog`s comment system of gittalk
0 stars 0 forks source link

Study Notes of Guns | LiBo #13

Open libo9527 opened 5 years ago

libo9527 commented 5 years ago

https://libo9527.github.io/2018/12/25/Study-Notes-of-Guns/#more

更简洁的后台管理系统

Gzhennaxia commented 5 years ago

开一个专门留言的评论页 q4h2r5

libo9527 commented 5 years ago

开一个专门留言的评论页 q4h2r5

开啦

Gzhennaxia commented 5 years ago

分页那里把代码加上

/**
     * 查询操作日志列表
     */
    @RequestMapping("/list")
    @Permission(Const.ADMIN_NAME)
    @ResponseBody
    public Object list(@RequestParam(required = false) String beginTime, @RequestParam(required = false) String endTime, @RequestParam(required = false) String logName, @RequestParam(required = false) Integer logType) {
        Page<OperationLog> page = new PageFactory<OperationLog>().defaultPage();
        List<Map<String, Object>> result = operationLogService.getOperationLogs(page, beginTime, endTime, logName, BizLogType.valueOf(logType), page.getOrderByField(), page.isAsc());
        page.setRecords((List<OperationLog>) new LogWarpper(result).warp());
        return super.packForBT(page);
    }