1.上传检材照片时以时间戳为文件名以方便后续的排序
This commit is contained in:
2024-11-27 10:52:56 +08:00
parent 8eaf860142
commit c26e75a6e7

View File

@@ -703,8 +703,8 @@ public class EntrustmentIdentificationMaterialController {
}
//String fileName = DateUtil.format(new Date(), "yyyyMMddHHmmss") + "." + suffix;
// int randomNumber = (int) (Math.random() * 90) + 10; // [10, 99]
System.currentTimeMillis();
String fileName = IdWorker.get32UUID().toUpperCase() + "." + suffix;
// 20241127 为了后续可以对上传的照片进行排序,防止照片上传顺序错乱
String fileName = System.currentTimeMillis() + "." + suffix;
System.out.println(String.format("fileName=[%s]", fileName));
//去掉头信息