Browse Source

feat: 修正一些地方

WANGKANG 11 tháng trước cách đây
mục cha
commit
403ddaf371

+ 1 - 1
taais-modules/taais-biz/src/main/java/com/taais/biz/domain/bo/VideoStableStartResultBo.java

@@ -22,5 +22,5 @@ public class VideoStableStartResultBo {
     private String status;
     private String msg;
     @NotNull(message = "id不能为空")
-    private String id;
+    private Long id;
 }

+ 3 - 1
taais-modules/taais-biz/src/main/java/com/taais/biz/service/impl/VideoStableServiceImpl.java

@@ -262,12 +262,14 @@ public class VideoStableServiceImpl extends BaseServiceImpl<VideoStableMapper, V
 
     @Override
     public CommonResult getResult(VideoStableStartResultBo videoStableStartResultBo) {
-        Long id = Long.valueOf(videoStableStartResultBo.getId());
+        Long id = videoStableStartResultBo.getId();
         String status = videoStableStartResultBo.getStatus();
         String msg = videoStableStartResultBo.getMsg();
         VideoStable videoStable = getById(id);
         videoStable.setLog(msg);
         videoStable.setStatus("200".equals(status) ? BizConstant.VideoStatus.END : BizConstant.VideoStatus.FAILED);
+        videoStable.setEndTime(new Date());
+        videoStable.setCostSecond((videoStable.getEndTime().getTime() - videoStable.getStartTime().getTime()) / 1000);
         updateById(videoStable);
         return CommonResult.success();
     }