|
|
@@ -38,6 +38,7 @@ import org.springframework.scheduling.annotation.AsyncResult; |
|
|
|
import org.springframework.stereotype.Service; |
|
|
|
import org.springframework.transaction.annotation.Propagation; |
|
|
|
import org.springframework.transaction.annotation.Transactional; |
|
|
|
import org.springframework.util.CollectionUtils; |
|
|
|
|
|
|
|
import java.net.URL; |
|
|
|
import java.util.*; |
|
|
@@ -575,4 +576,16 @@ public class UserMouldVideoServiceImpl implements UserMouldVideoService { |
|
|
|
return userMouldVideoMapper.selectById(id); |
|
|
|
} |
|
|
|
|
|
|
|
@Override |
|
|
|
public ResultData checkVideoStatus(Long userId, List<Long> ids) { |
|
|
|
if (CollectionUtils.isEmpty(ids)){ |
|
|
|
return new ResultData(ErrorCode.VIDEO_CREATING.getCode(),""); |
|
|
|
} |
|
|
|
Integer integer = userMouldVideoMapper.checkVideoStatus(userId,ids); |
|
|
|
if (integer > 0){ |
|
|
|
return new ResultData("生成视频成功"); |
|
|
|
} |
|
|
|
return new ResultData(ErrorCode.VIDEO_CREATING.getCode(),"视频生成中"); |
|
|
|
} |
|
|
|
|
|
|
|
} |