Sfoglia il codice sorgente

feat:云教练评测视频上传

Joburgess 4 anni fa
parent
commit
27133ec903

+ 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);
                 }