|
|
@@ -9,15 +9,11 @@ import com.iformall.common.IdWorker; |
|
|
|
import com.iformall.common.ResultData; |
|
|
|
import com.iformall.domain.po.sm.*; |
|
|
|
import com.iformall.enums.*; |
|
|
|
import com.iformall.enums.sm.EnumLogType; |
|
|
|
import com.iformall.enums.sm.EnumPackageType; |
|
|
|
import com.iformall.mapper.PhotoSpeakVideoMapper; |
|
|
|
import com.iformall.service.sm.*; |
|
|
|
import com.iformall.sm.*; |
|
|
|
import com.iformall.utils.Base64Util; |
|
|
|
import com.iformall.utils.DateUtils; |
|
|
|
import com.iformall.video.VideoFactory; |
|
|
|
import com.iformall.video.aliyun.sdk.server.UploadCacheHelper; |
|
|
|
import com.iformall.video.entity.VideUploadResult; |
|
|
|
import org.apache.commons.lang3.StringUtils; |
|
|
|
import org.slf4j.Logger; |
|
|
@@ -27,16 +23,12 @@ import org.springframework.beans.factory.annotation.Qualifier; |
|
|
|
import org.springframework.beans.factory.annotation.Value; |
|
|
|
import org.springframework.data.redis.core.RedisTemplate; |
|
|
|
import org.springframework.scheduling.annotation.Async; |
|
|
|
import org.springframework.scheduling.annotation.AsyncResult; |
|
|
|
import org.springframework.stereotype.Service; |
|
|
|
import org.springframework.util.ObjectUtils; |
|
|
|
|
|
|
|
import javax.transaction.xa.XAException; |
|
|
|
import java.util.ArrayList; |
|
|
|
import java.util.Date; |
|
|
|
import java.util.List; |
|
|
|
import java.util.Objects; |
|
|
|
import java.util.concurrent.Future; |
|
|
|
import java.util.concurrent.atomic.AtomicInteger; |
|
|
|
|
|
|
|
|
|
|
@@ -387,4 +379,13 @@ public class PhotoSpeakVideoServiceImpl implements PhotoSpeakVideoService { |
|
|
|
umVideoQ.setVideoStatuss(videoStatuss); |
|
|
|
return photoSpeakVideoMapper.getSortList(umVideoQ); |
|
|
|
} |
|
|
|
|
|
|
|
@Override |
|
|
|
public ResultData checkVideoStatus(Long userId) { |
|
|
|
Integer integer = photoSpeakVideoMapper.checkVideoStatus(userId); |
|
|
|
if (integer > 0){ |
|
|
|
return new ResultData("生成视频成功"); |
|
|
|
} |
|
|
|
return new ResultData(ErrorCode.VIDEO_CREATING.getCode(),"视频生成中"); |
|
|
|
} |
|
|
|
} |