|
|
@ -7,6 +7,9 @@ import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
|
|
|
import com.fasterxml.jackson.annotation.JsonRawValue; |
|
|
|
import com.fasterxml.jackson.annotation.JsonRawValue; |
|
|
|
import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport; |
|
|
|
import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport; |
|
|
|
import com.google.common.collect.Lists; |
|
|
|
import com.google.common.collect.Lists; |
|
|
|
|
|
|
|
import com.hnac.hzims.common.logs.annotation.OperationAnnotation; |
|
|
|
|
|
|
|
import com.hnac.hzims.common.logs.enums.BusinessType; |
|
|
|
|
|
|
|
import com.hnac.hzims.common.logs.enums.OperatorType; |
|
|
|
import com.hnac.hzinfo.core.push.enums.PushAudienceType; |
|
|
|
import com.hnac.hzinfo.core.push.enums.PushAudienceType; |
|
|
|
import com.hnac.hzinfo.core.push.model.PushAudience; |
|
|
|
import com.hnac.hzinfo.core.push.model.PushAudience; |
|
|
|
import com.hnac.hzinfo.core.push.model.PushInfo; |
|
|
|
import com.hnac.hzinfo.core.push.model.PushInfo; |
|
|
@ -103,6 +106,9 @@ public class TaskController extends BladeController { |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
@GetMapping("/list") |
|
|
|
@GetMapping("/list") |
|
|
|
@ApiOperation(value = "分页显示任务列表", notes = "传入task") |
|
|
|
@ApiOperation(value = "分页显示任务列表", notes = "传入task") |
|
|
|
|
|
|
|
@OperationAnnotation(moduleName = "巡检管理",title = "我的巡检任务",operatorType = OperatorType.MOBILE,businessType = |
|
|
|
|
|
|
|
BusinessType.GENCODE, |
|
|
|
|
|
|
|
action = "分页显示任务列表") |
|
|
|
public R<BladePage<TaskVo>> list(TaskListQuery task, Query query) { |
|
|
|
public R<BladePage<TaskVo>> list(TaskListQuery task, Query query) { |
|
|
|
//CacheUtil.put("test#2","inspect","test","12");
|
|
|
|
//CacheUtil.put("test#2","inspect","test","12");
|
|
|
|
// LambdaQueryWrapper<TaskEntity> queryWrapper = Condition.getQueryWrapper(new TaskEntity(),task);
|
|
|
|
// LambdaQueryWrapper<TaskEntity> queryWrapper = Condition.getQueryWrapper(new TaskEntity(),task);
|
|
|
@ -154,6 +160,9 @@ public class TaskController extends BladeController { |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
@GetMapping("/robotList") |
|
|
|
@GetMapping("/robotList") |
|
|
|
@ApiOperation(value = "机器人任务列表", notes = "传入task") |
|
|
|
@ApiOperation(value = "机器人任务列表", notes = "传入task") |
|
|
|
|
|
|
|
@OperationAnnotation(moduleName = "巡检管理",title = "机器人巡检",operatorType = OperatorType.MOBILE,businessType = |
|
|
|
|
|
|
|
BusinessType.GENCODE, |
|
|
|
|
|
|
|
action = "机器人任务列表") |
|
|
|
public R<IPage<TaskVo>> robotList(TaskListQuery task, Query query) { |
|
|
|
public R<IPage<TaskVo>> robotList(TaskListQuery task, Query query) { |
|
|
|
IPage<TaskVo> pages = Condition.getPage(query); |
|
|
|
IPage<TaskVo> pages = Condition.getPage(query); |
|
|
|
task.setAutoVideo(PlanContants.InspectTypeEnum.ROBOT.getVal()); |
|
|
|
task.setAutoVideo(PlanContants.InspectTypeEnum.ROBOT.getVal()); |
|
|
@ -167,6 +176,10 @@ public class TaskController extends BladeController { |
|
|
|
* 视频任务列表 |
|
|
|
* 视频任务列表 |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
@GetMapping("/videoList") |
|
|
|
@GetMapping("/videoList") |
|
|
|
|
|
|
|
@OperationAnnotation(moduleName = "巡检管理", title = "视频巡检任务", |
|
|
|
|
|
|
|
operatorType = OperatorType.MOBILE, |
|
|
|
|
|
|
|
businessType = BusinessType.GENCODE, |
|
|
|
|
|
|
|
action = "视频任务列表") |
|
|
|
@ApiOperation(value = "视频任务列表", notes = "传入task") |
|
|
|
@ApiOperation(value = "视频任务列表", notes = "传入task") |
|
|
|
public R<IPage<TaskVo>> videoList(TaskListQuery task, Query query) { |
|
|
|
public R<IPage<TaskVo>> videoList(TaskListQuery task, Query query) { |
|
|
|
IPage<TaskVo> pages = Condition.getPage(query); |
|
|
|
IPage<TaskVo> pages = Condition.getPage(query); |
|
|
|