吉安感知网项目-后端
linwei
6 days ago ebeb43ea497fafc448c827d1de6796bcaa4e0b52
drone-service/drone-gd/src/main/java/org/sxkj/gd/workorder/wrapper/GdTaskResultWrapper.java
@@ -70,10 +70,16 @@
      GdTaskResultEntity entity = BeanUtil.copy(dto, GdTaskResultEntity.class);
      // 步骤1:设置附件类型
      if (dto.getAttachmentType() != null) {
         entity.setAttachmentType(dto.getAttachmentType());
      } else if (dto.getDateType() != null) {
         entity.setAttachmentType(dto.getDateType());
      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格式