|
|
@@ -286,6 +286,9 @@ public class WaylineJobServiceImpl implements IWaylineJobService {
|
|
|
.orElse(null));
|
|
|
}
|
|
|
|
|
|
+ if (Objects.nonNull(entity.getErrorCode())) {
|
|
|
+ builder.errorText(WaylineErrorCodeEnum.find(entity.getErrorCode()).getMessage());
|
|
|
+ }
|
|
|
if (entity.getMediaCount() == 0) {
|
|
|
return builder.build();
|
|
|
}
|
|
|
@@ -305,9 +308,7 @@ public class WaylineJobServiceImpl implements IWaylineJobService {
|
|
|
if (uploadedSize >= entity.getMediaCount()) {
|
|
|
return builder.uploadedCount(uploadedSize).build();
|
|
|
}
|
|
|
- if (Objects.nonNull(entity.getErrorCode())) {
|
|
|
- builder.endTime(LocalDateTime.ofInstant(Instant.ofEpochMilli(entity.getEndTime()), ZoneId.systemDefault()));
|
|
|
- }
|
|
|
+
|
|
|
RedisOpsUtils.hashSet(countKey, entity.getJobId(),
|
|
|
MediaFileCountDTO.builder()
|
|
|
.jobId(entity.getJobId())
|