Showing
2 changed files
with
4 additions
and
4 deletions
| @@ -24,7 +24,7 @@ public class MaterialSubmitVo { | @@ -24,7 +24,7 @@ public class MaterialSubmitVo { | ||
| 24 | private Integer backupOrder; | 24 | private Integer backupOrder; |
| 25 | //垫片状态 0-默认 1-当前选中 | 25 | //垫片状态 0-默认 1-当前选中 |
| 26 | private String backupStatus; | 26 | private String backupStatus; |
| 27 | - // 操作类型 0-提交素材库 1-上传审片间 | 27 | + // 操作类型 1-提交素材库 2-上传审片间 |
| 28 | @NotBlank(message = "操作类型不能为空") | 28 | @NotBlank(message = "操作类型不能为空") |
| 29 | private String operateType; | 29 | private String operateType; |
| 30 | //文件路径,绝对路径 | 30 | //文件路径,绝对路径 |
| @@ -450,9 +450,8 @@ public class BackupMaterialServiceImpl extends ServiceImpl<BackupMaterialMapper, | @@ -450,9 +450,8 @@ public class BackupMaterialServiceImpl extends ServiceImpl<BackupMaterialMapper, | ||
| 450 | backupMaterial.setDuration(materialSubmitVo.getDuration()); | 450 | backupMaterial.setDuration(materialSubmitVo.getDuration()); |
| 451 | backupMaterialMapper.insert(backupMaterial); | 451 | backupMaterialMapper.insert(backupMaterial); |
| 452 | 452 | ||
| 453 | - if(materialSubmitVo.getOperateType().equals("1")){ | ||
| 454 | - | ||
| 455 | - } | 453 | + //是否需要上传到审片间 |
| 454 | + if(materialSubmitVo.getOperateType().equals("2")){ | ||
| 456 | //添加审片间垫片配置 | 455 | //添加审片间垫片配置 |
| 457 | LambdaQueryWrapper<BackupConfig> wrapper = new LambdaQueryWrapper<>(); | 456 | LambdaQueryWrapper<BackupConfig> wrapper = new LambdaQueryWrapper<>(); |
| 458 | wrapper.eq(BackupConfig::getRoomId,materialSubmitVo.getRoomId()); | 457 | wrapper.eq(BackupConfig::getRoomId,materialSubmitVo.getRoomId()); |
| @@ -483,6 +482,7 @@ public class BackupMaterialServiceImpl extends ServiceImpl<BackupMaterialMapper, | @@ -483,6 +482,7 @@ public class BackupMaterialServiceImpl extends ServiceImpl<BackupMaterialMapper, | ||
| 483 | }); | 482 | }); |
| 484 | } | 483 | } |
| 485 | } | 484 | } |
| 485 | + } | ||
| 486 | 486 | ||
| 487 | return ResultBean.ok("提交成功"); | 487 | return ResultBean.ok("提交成功"); |
| 488 | } | 488 | } |
-
Please register or login to post a comment