吉安感知网项目-后端
linwei
6 days ago 05fb356099b5af472ee23d9164bca61962d9c2ed
drone-service/drone-gd/src/main/java/org/sxkj/gd/workorder/controller/GdTaskResultController.java
@@ -79,12 +79,18 @@
   }
   /**
    * 成果表 列表
    *
    * @param patrolTaskId    巡查任务ID
    * @param attachmentTypes 附件类型列表:1媒体文件;2ai文件;3主视频;(可选,不传则查询全部,多个用逗号分隔)
    * @return 成果列表
    */
   @GetMapping("/list")
   @ApiOperationSupport(order = 2)
   @ApiOperation(value = "列表", notes = "传入patrolTaskId")
   public R<List<GdTaskResultVO>> list(@ApiParam(value = "巡查任务ID", required = true) @RequestParam Long patrolTaskId) {
      return R.data(gdTaskResultService.listByPatrolTaskId(patrolTaskId));
   @ApiOperation(value = "列表", notes = "传入patrolTaskId和attachmentTypes")
   public R<List<GdTaskResultVO>> list(
         @ApiParam(value = "巡查任务ID", required = true) @RequestParam Long patrolTaskId,
         @ApiParam(value = "附件类型:1媒体文件;2ai文件;3主视频;多个用逗号分隔") @RequestParam(required = false) List<Integer> attachmentTypes) {
      return R.data(gdTaskResultService.listByPatrolTaskId(patrolTaskId, attachmentTypes));
   }
//   /**
//    * 成果表 分页
@@ -150,6 +156,17 @@
   }
   /**
    * 成果表批量新增并返回ID列表,不关联任务-对外接口
    */
   // @PostMapping("/batchSaveWithIds")
   // @ApiOperationSupport(order = 8)
   // @ApiOperation(value = "批量新增并返回ID", notes = "传入gdTaskResult")
   // public R<List<Long>> batchSaveWithIds(@Valid @RequestBody List<GdTaskResultDTO> gdTaskResults) {
   //    log.info("批量新增并返回ID-对外接口{}", JSON.toJSONString(gdTaskResults));
   //    return R.data(gdTaskResultService.batchSaveWithIds(gdTaskResults));
   // }
   /**
    * 成果表 删除
    */
   @PostMapping("/remove")