图片按照行列存储

merge-requests/5/merge
yiming 4 years ago
parent 297a4d08b2
commit 148b6b41a6

@ -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;
}
/**

Loading…
Cancel
Save