获取时间

This commit is contained in:
2025-07-29 11:10:19 +08:00
parent 5942a9b728
commit fe24c563a0
3 changed files with 6 additions and 3 deletions

View File

@@ -1,5 +1,6 @@
package com.ycwl.basic.repository;
import cn.hutool.core.date.DateUtil;
import com.ycwl.basic.utils.JacksonUtil;
import com.ycwl.basic.mapper.TaskMapper;
import com.ycwl.basic.mapper.VideoMapper;
@@ -53,8 +54,8 @@ public class VideoTaskRepository {
var jsonArray = paramJson.getJSONArray(any.get());
if (jsonArray != null && !jsonArray.isEmpty()) {
JacksonUtil.JSONObjectCompat jsonObject = jsonArray.get(0);
if (jsonObject.getLong("createTime") != null) {
shotTime = new Date(jsonObject.getLong("createTime"));
if (jsonObject.getString("createTime") != null) {
shotTime = DateUtil.parse(jsonObject.getString("createTime"));
}
}
}