drone-service/drone-gd/src/main/java/org/sxkj/gd/workorder/controller/GdClueEventController.java
@@ -137,6 +137,16 @@ } /** * 事件表(线索事件) 新增或修改-对外接口 */ @PostMapping("/submitExternal") @ApiOperationSupport(order = 6) @ApiOperation(value = "新增或修改", notes = "传入gdClueEvent") public R submitExternal(@Valid @RequestBody GdClueEventEntity gdClueEvent) { return R.status(gdClueEventService.saveOrUpdate(gdClueEvent)); } /** * 事件表(线索事件) 删除 */ @PostMapping("/remove") drone-service/drone-gd/src/main/java/org/sxkj/gd/workorder/entity/GdClueEventEntity.java
@@ -89,7 +89,7 @@ /** * 附件类型:1媒体文件; 2ai文件; 3主视频 */ @ApiModelProperty(value = "附件类型:1媒体文件; 2ai文件; 3主视频") @ApiModelProperty(value = "附件类型:1媒体文件; 2ai文件; 3主视频 4视频文件mp4") private Integer attachmentType; /** * 附件URL drone-service/drone-gd/src/main/java/org/sxkj/gd/workorder/wrapper/GdTaskResultWrapper.java
@@ -70,11 +70,17 @@ GdTaskResultEntity entity = BeanUtil.copy(dto, GdTaskResultEntity.class); // 步骤1:设置附件类型 if (dto.getAttachmentType() != null) { entity.setAttachmentType(dto.getAttachmentType()); } else if (dto.getDateType() != null) { if (dto.getDateType() != null) { if (dto.getDateType().equals(1) && dto.getFileType().equals("视频")) { // 录像的视频 entity.setAttachmentType(3); } else if (dto.getDateType().equals(3) && dto.getFileType().equals("视频")) { // 机巢+无人机录像视频 entity.setAttachmentType(4); } else { entity.setAttachmentType(dto.getDateType()); } } // 步骤2:处理geojson字段,将字符串数组转换为正确的JSON格式 String processedGeojson = processGeojson(dto.getGeojson());