@@ -81,6 +81,7 @@ public class AiVideoServiceImpl implements AiVideoService { | |||||
.serviceId(serviceId) | .serviceId(serviceId) | ||||
.videoTime(String.valueOf(video.getDuration())) | .videoTime(String.valueOf(video.getDuration())) | ||||
.videoUrl(video.getUrl()) | .videoUrl(video.getUrl()) | ||||
.userMouldVideoId(aiVideoParam.getTask_id()) | |||||
.build(); | .build(); | ||||
serviceVideoRecordService.saveServiceVideoRecord(saveServiceVideoRecordDTO); | serviceVideoRecordService.saveServiceVideoRecord(saveServiceVideoRecordDTO); | ||||
//扣掉总时长 | //扣掉总时长 | ||||
@@ -64,4 +64,5 @@ CREATE TABLE `user_voice_language` ( | |||||
UNIQUE KEY `id_UNIQUE` (`id`) USING BTREE | UNIQUE KEY `id_UNIQUE` (`id`) USING BTREE | ||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='用户定制关联声纹'; | ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='用户定制关联声纹'; | ||||
ALTER TABLE `service_video_record` | |||||
ADD COLUMN user_mould_video_id bigint NOT NULL COMMENT '视频记录ID'; |
@@ -23,6 +23,8 @@ public class SaveServiceVideoRecordDTO { | |||||
private String videoTime; | private String videoTime; | ||||
@ApiModelProperty("视频链接") | @ApiModelProperty("视频链接") | ||||
private String videoUrl; | private String videoUrl; | ||||
@ApiModelProperty("记录ID") | |||||
private Long userMouldVideoId; | |||||
public static ServiceVideoRecord mapping(SaveServiceVideoRecordDTO dto) { | public static ServiceVideoRecord mapping(SaveServiceVideoRecordDTO dto) { | ||||
ServiceVideoRecord serviceVideoRecord = new ServiceVideoRecord(); | ServiceVideoRecord serviceVideoRecord = new ServiceVideoRecord(); | ||||
@@ -32,6 +34,7 @@ public class SaveServiceVideoRecordDTO { | |||||
serviceVideoRecord.setServiceId(dto.getServiceId()); | serviceVideoRecord.setServiceId(dto.getServiceId()); | ||||
serviceVideoRecord.setVideoTime(dto.getVideoTime()); | serviceVideoRecord.setVideoTime(dto.getVideoTime()); | ||||
serviceVideoRecord.setVideoUrl(dto.getVideoUrl()); | serviceVideoRecord.setVideoUrl(dto.getVideoUrl()); | ||||
serviceVideoRecord.setUserMouldVideoId(dto.getUserMouldVideoId()); | |||||
return serviceVideoRecord; | return serviceVideoRecord; | ||||
} | } | ||||
} | } |
@@ -46,4 +46,10 @@ public class ServiceVideoRecord extends BaseEntity{ | |||||
*/ | */ | ||||
@TableField("video_url") | @TableField("video_url") | ||||
private String videoUrl; | private String videoUrl; | ||||
/** | |||||
* 视频记录ID | |||||
*/ | |||||
@TableField("user_mould_video_id") | |||||
private Long userMouldVideoId; | |||||
} | } |