瀏覽代碼

feat:云教练评测视频上传

Joburgess 4 年之前
父節點
當前提交
27133ec903
共有 1 個文件被更改,包括 1 次插入2 次删除
  1. 1 2
      mec-biz/src/main/java/com/ym/mec/biz/service/impl/SoundCompareHandler.java

+ 1 - 2
mec-biz/src/main/java/com/ym/mec/biz/service/impl/SoundCompareHandler.java

@@ -185,8 +185,7 @@ public class SoundCompareHandler implements WebSocketEventHandler {
                 break;
             case VIDEO_UPDATE:
                 if(bodyObject.containsKey("filePath")){
-                    SysMusicCompareRecord update = new SysMusicCompareRecord();
-                    update.setId(userSoundInfoMap.get(phone).getRecordId());
+                    SysMusicCompareRecord update = sysMusicCompareRecordService.get(userSoundInfoMap.get(phone).getRecordId());
                     update.setVideoFilePath(bodyObject.getString("filePath"));
                     sysMusicCompareRecordService.update(update);
                 }