Showing
2 changed files
with
38 additions
and
0 deletions
| 1 | +package com.wondertek.enums; | ||
| 2 | + | ||
| 3 | +/** | ||
| 4 | + * @Description:多画播放任务类型 | ||
| 5 | + */ | ||
| 6 | +public enum PlayTypeEnum { | ||
| 7 | + SOURCE("source", "延时前"), | ||
| 8 | + DEALY1("delay1", "延时1"), | ||
| 9 | + DELAY2("delay2", "延时2"), | ||
| 10 | + PLAY("play", "播放"), | ||
| 11 | + BACKUP1("backup1", "垫片一"), | ||
| 12 | + BACKUP2 ("backup2", "垫片二") | ||
| 13 | + ; | ||
| 14 | + | ||
| 15 | + | ||
| 16 | + private final String code; | ||
| 17 | + private final String name; | ||
| 18 | + | ||
| 19 | + PlayTypeEnum(String status, String name) { | ||
| 20 | + this.code = status; | ||
| 21 | + this.name = name; | ||
| 22 | + } | ||
| 23 | + | ||
| 24 | + public String getCode() { | ||
| 25 | + return code; | ||
| 26 | + } | ||
| 27 | + | ||
| 28 | + public String getName() { | ||
| 29 | + return name; | ||
| 30 | + } | ||
| 31 | +} |
| @@ -11,6 +11,7 @@ import com.wondertek.dto.BackupMaterialDto; | @@ -11,6 +11,7 @@ import com.wondertek.dto.BackupMaterialDto; | ||
| 11 | import com.wondertek.dto.BackupUploadVo; | 11 | import com.wondertek.dto.BackupUploadVo; |
| 12 | import com.wondertek.entity.BackupConfig; | 12 | import com.wondertek.entity.BackupConfig; |
| 13 | import com.wondertek.entity.BackupMaterial; | 13 | import com.wondertek.entity.BackupMaterial; |
| 14 | +import com.wondertek.entity.StreamTask; | ||
| 14 | import com.wondertek.exception.BusinessException; | 15 | import com.wondertek.exception.BusinessException; |
| 15 | import com.wondertek.mapper.BackupConfigMapper; | 16 | import com.wondertek.mapper.BackupConfigMapper; |
| 16 | import com.wondertek.mapper.BackupMaterialMapper; | 17 | import com.wondertek.mapper.BackupMaterialMapper; |
| @@ -105,6 +106,12 @@ public class BackupMaterialServiceImpl extends ServiceImpl<BackupMaterialMapper, | @@ -105,6 +106,12 @@ public class BackupMaterialServiceImpl extends ServiceImpl<BackupMaterialMapper, | ||
| 105 | backupConfigMapper.insertOrUpdate(backupConfig); | 106 | backupConfigMapper.insertOrUpdate(backupConfig); |
| 106 | 107 | ||
| 107 | //对应垫片任务切源(转码平台演示环境已挂载统一存储) | 108 | //对应垫片任务切源(转码平台演示环境已挂载统一存储) |
| 109 | + LambdaQueryWrapper<StreamTask> wrapper1 = new LambdaQueryWrapper<>(); | ||
| 110 | + wrapper1.eq(StreamTask::getRoomId,backupUploadVo.getRoomId()); | ||
| 111 | + wrapper1.eq(StreamTask::getPlayType,"play"); | ||
| 112 | + | ||
| 113 | + | ||
| 114 | + | ||
| 108 | 115 | ||
| 109 | //判断是否需要修改当前播出流的垫片 | 116 | //判断是否需要修改当前播出流的垫片 |
| 110 | 117 |
-
Please register or login to post a comment