| | |
| | | excludeTrash(param); |
| | | convert(param, wrapper); |
| | | if (!Cools.isEmpty(orderByField)){wrapper.orderBy(humpToLine(orderByField), "asc".equals(orderByType));} |
| | | wrapper.orderDesc(Collections.singleton("create_time")); |
| | | return R.ok(taskWrkLogService.selectPage(new Page<>(curr, limit), wrapper)); |
| | | } |
| | | |
| | |
| | | } |
| | | } |
| | | |
| | | @RequestMapping(value = "/taskWrkLog/export/all/auth") |
| | | @ManagerAuth |
| | | public R export(){ |
| | | Integer i = taskWrkLogService.selectCount(new EntityWrapper<>()); |
| | | Integer curr = 1; |
| | | Integer limit = i; |
| | | EntityWrapper<TaskWrkLog> wrapper = new EntityWrapper<>(); |
| | | wrapper.orderDesc(Collections.singleton("create_time")); |
| | | return R.ok(taskWrkLogService.selectPage(new Page<>(curr, limit), wrapper)); |
| | | } |
| | | |
| | | @RequestMapping(value = "/taskWrkLog/add/auth") |
| | | @ManagerAuth |
| | | public R add(TaskWrkLog taskWrkLog) { |