|
|
@@ -24,6 +24,7 @@ import org.springframework.beans.factory.annotation.Value; |
|
|
|
import org.springframework.data.redis.core.RedisTemplate; |
|
|
|
import org.springframework.scheduling.annotation.Async; |
|
|
|
import org.springframework.stereotype.Service; |
|
|
|
import org.springframework.util.CollectionUtils; |
|
|
|
import org.springframework.util.ObjectUtils; |
|
|
|
|
|
|
|
import java.util.ArrayList; |
|
|
@@ -413,8 +414,12 @@ public class PhotoSpeakVideoServiceImpl implements PhotoSpeakVideoService { |
|
|
|
} |
|
|
|
|
|
|
|
@Override |
|
|
|
public ResultData checkVideoStatus(Long userId, String time) { |
|
|
|
Integer integer = photoSpeakVideoMapper.checkVideoStatus(userId,time); |
|
|
|
public ResultData checkVideoStatus(Long userId, List<Long> list) { |
|
|
|
if (CollectionUtils.isEmpty(list)){ |
|
|
|
return new ResultData(); |
|
|
|
} |
|
|
|
|
|
|
|
Integer integer = photoSpeakVideoMapper.checkVideoStatus(userId,list); |
|
|
|
if (integer > 0){ |
|
|
|
return new ResultData("生成视频成功"); |
|
|
|
} |
|
|
|