18792927508 il y a 2 ans
Parent
révision
d993b57a09

+ 1
- 2
ruoyi-admin/src/main/java/com/ruoyi/web/controller/wisdomarbitrate/VideoController.java Voir le fichier

@@ -51,10 +51,9 @@ public class VideoController extends BaseController {
51 51
     }
52 52
     /**
53 53
      * 根据案件ID查询视频
54
-     * @param
54
+     * @param caseId 案件id
55 55
      * @return
56 56
      */
57
-    @Anonymous
58 57
     @GetMapping("/videoList")
59 58
     public AjaxResult videoList(  @RequestParam Long caseId) {
60 59
 

+ 3
- 0
ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/service/impl/VideoServiceImpl.java Voir le fichier

@@ -215,6 +215,7 @@ public class VideoServiceImpl implements VideoService {
215 215
     @Transactional
216 216
     public  String downloadImage(String fileId,String fileUrl,String roomId) throws IOException {
217 217
         String staticAndMksDir = null;
218
+        log.info("fileUrl========");
218 219
         if (fileUrl != null) {
219 220
             //下载时文件名称
220 221
             String fileName = fileUrl.substring(fileUrl.lastIndexOf("/"));
@@ -223,6 +224,7 @@ public class VideoServiceImpl implements VideoService {
223 224
                 String absPath = getAbsoluteFile(RuoYiConfig.getVideoUploadPath(), fileName).getAbsolutePath();
224 225
                 staticAndMksDir = Paths.get(absPath).toFile().toString();
225 226
                 HttpUtil.downloadFile(fileUrl, staticAndMksDir );
227
+            log.info("selectCaseIdByRoomId========");
226 228
             Long caseId= caseApplicationMapper.selectCaseIdByRoomId(roomId);
227 229
             String annexName = getPathFileName(RuoYiConfig.getVideoUploadPath(), fileName);
228 230
             // 存入数据库
@@ -231,6 +233,7 @@ public class VideoServiceImpl implements VideoService {
231 233
                     .annexPath(RuoYiConfig.getVideoUploadPath())
232 234
                     .annexType(9)
233 235
                     .build();
236
+            log.info("视频保存========");
234 237
              caseAttachMapper.save(caseAttach);
235 238
             return annexName;
236 239
         }