diff --git a/hzims-service/inspect/src/main/java/com/hnac/hzinfo/inspect/task/controller/TaskController.java b/hzims-service/inspect/src/main/java/com/hnac/hzinfo/inspect/task/controller/TaskController.java index f738356..e7a0b6b 100644 --- a/hzims-service/inspect/src/main/java/com/hnac/hzinfo/inspect/task/controller/TaskController.java +++ b/hzims-service/inspect/src/main/java/com/hnac/hzinfo/inspect/task/controller/TaskController.java @@ -143,21 +143,17 @@ public class TaskController extends BladeController { */ @GetMapping("/list") @ApiOperation(value = "分页显示任务列表", notes = "传入task") - @Operate(label = "查询巡检任务分页列表-2",type = BusinessType.QUERY,ignore = false) + @Operate(label = "查询巡检任务分页列表-2",type = BusinessType.QUERY) public R> list(TaskListQuery task, Query query) { - //CacheUtil.put("test#2","inspect","test","12"); -// LambdaQueryWrapper queryWrapper = Condition.getQueryWrapper(new TaskEntity(),task); -// queryWrapper.orderByDesc(TaskEntity::getUpdateTime); -// IPage pages = taskService.page(Condition.getPage(query), queryWrapper); IPage pages = Condition.getPage(query); - if(!AuthUtil.isAdministrator()){ + if (!AuthUtil.isAdministrator()) { task.setCurUserId(AuthUtil.getUserId()); task.setTenantId(AuthUtil.getTenantId()); } if (task.getCurUserId() == -1) { task.setCurUserId(null); } - List list = taskService.getListPage(pages,task); + List list = taskService.getListPage(pages, task); pages.setRecords(list); BladePage bladePage = BladePage.of(pages); return R.data(bladePage); diff --git a/hzims-service/inspect/src/main/java/com/hnac/hzinfo/inspect/task/mapper/TaskMapper.xml b/hzims-service/inspect/src/main/java/com/hnac/hzinfo/inspect/task/mapper/TaskMapper.xml index 261a0c2..7ed3974 100644 --- a/hzims-service/inspect/src/main/java/com/hnac/hzinfo/inspect/task/mapper/TaskMapper.xml +++ b/hzims-service/inspect/src/main/java/com/hnac/hzinfo/inspect/task/mapper/TaskMapper.xml @@ -132,14 +132,18 @@ +