ソースを参照

fix bug

photo
winter 1年前
コミット
97075e82fe
4個のファイルの変更12行の追加1行の削除
  1. +1
    -0
      open-api/src/main/java/com/iformall/service/impl/AiVideoServiceImpl.java
  2. +2
    -1
      suimangAdmin/src/main/resources/db/migration/V2023110300001_personmould.sql
  3. +3
    -0
      suimangService/src/main/java/com/iformall/domain/dto/sm/SaveServiceVideoRecordDTO.java
  4. +6
    -0
      suimangService/src/main/java/com/iformall/domain/po/sm/ServiceVideoRecord.java

+ 1
- 0
open-api/src/main/java/com/iformall/service/impl/AiVideoServiceImpl.java ファイルの表示

@@ -81,6 +81,7 @@ public class AiVideoServiceImpl implements AiVideoService {
.serviceId(serviceId)
.videoTime(String.valueOf(video.getDuration()))
.videoUrl(video.getUrl())
.userMouldVideoId(aiVideoParam.getTask_id())
.build();
serviceVideoRecordService.saveServiceVideoRecord(saveServiceVideoRecordDTO);
//扣掉总时长


+ 2
- 1
suimangAdmin/src/main/resources/db/migration/V2023110300001_personmould.sql ファイルの表示

@@ -64,4 +64,5 @@ CREATE TABLE `user_voice_language` (
UNIQUE KEY `id_UNIQUE` (`id`) USING BTREE
) 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';

+ 3
- 0
suimangService/src/main/java/com/iformall/domain/dto/sm/SaveServiceVideoRecordDTO.java ファイルの表示

@@ -23,6 +23,8 @@ public class SaveServiceVideoRecordDTO {
private String videoTime;
@ApiModelProperty("视频链接")
private String videoUrl;
@ApiModelProperty("记录ID")
private Long userMouldVideoId;

public static ServiceVideoRecord mapping(SaveServiceVideoRecordDTO dto) {
ServiceVideoRecord serviceVideoRecord = new ServiceVideoRecord();
@@ -32,6 +34,7 @@ public class SaveServiceVideoRecordDTO {
serviceVideoRecord.setServiceId(dto.getServiceId());
serviceVideoRecord.setVideoTime(dto.getVideoTime());
serviceVideoRecord.setVideoUrl(dto.getVideoUrl());
serviceVideoRecord.setUserMouldVideoId(dto.getUserMouldVideoId());
return serviceVideoRecord;
}
}

+ 6
- 0
suimangService/src/main/java/com/iformall/domain/po/sm/ServiceVideoRecord.java ファイルの表示

@@ -46,4 +46,10 @@ public class ServiceVideoRecord extends BaseEntity{
*/
@TableField("video_url")
private String videoUrl;
/**
* 视频记录ID
*/
@TableField("user_mould_video_id")
private Long userMouldVideoId;
}

読み込み中…
キャンセル
保存