| | |
| | | if (!Cools.isEmpty(orderByField)){ |
| | | wrapper.orderBy(humpToLine(orderByField), "asc".equals(orderByType)); |
| | | } else { |
| | | wrapper.orderBy("create_time", false); |
| | | wrapper.orderBy("CREATE_TIME", false); |
| | | } |
| | | return R.ok(basErrLogService.selectPage(new Page<>(curr, limit), wrapper)); |
| | | |
| | | List<BasErrLog> basErrLogList = basErrLogService.selectList(wrapper); |
| | | Page<BasErrLog> page = new Page<BasErrLog>(0, 10).setRecords(basErrLogList); |
| | | page.setTotal(basErrLogList.size()); |
| | | return R.ok(page); |
| | | } |
| | | |
| | | private void convert(Map<String, Object> map, EntityWrapper wrapper){ |