From 148b6b41a6bac600df106557c88bdbfe81966b14 Mon Sep 17 00:00:00 2001 From: yiming Date: Thu, 5 May 2022 10:07:49 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9B=BE=E7=89=87=E6=8C=89=E7=85=A7=E8=A1=8C?= =?UTF-8?q?=E5=88=97=E5=AD=98=E5=82=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/java/com/zhehekeji/common/util/PathUtil.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/common/src/main/java/com/zhehekeji/common/util/PathUtil.java b/modules/common/src/main/java/com/zhehekeji/common/util/PathUtil.java index 01a1e6c..cb36cc2 100644 --- a/modules/common/src/main/java/com/zhehekeji/common/util/PathUtil.java +++ b/modules/common/src/main/java/com/zhehekeji/common/util/PathUtil.java @@ -32,8 +32,8 @@ public class PathUtil { public static String createFileNameByRowColumn(String fileType,Integer cameraId,Integer row,Integer column){ LocalDateTime now = LocalDateTime.now(); - String date = now.format(DateTimeFormatter.ofPattern("yyyy/MM/dd")) + "/"+cameraId; - return row+"-"+column+"/"+date + "/" +date+ now.format(DateTimeFormatter.ofPattern("HHmmss-"))+row+"-"+column + "."+fileType; + String date = now.format(DateTimeFormatter.ofPattern("yyyyMMdd")); + return cameraId+"/"+row+"-"+column+"/"+date + "/" +now.format(DateTimeFormatter.ofPattern("yyyyMMddHHmmss-"))+row+"-"+column + "."+fileType; } /**