1.上传检材照片时以时间戳为文件名以方便后续的排序
master
陈江保 3 months ago
parent 8eaf860142
commit c26e75a6e7
  1. 4
      src/main/java/digital/laboratory/platform/entrustment/controller/EntrustmentIdentificationMaterialController.java

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

Loading…
Cancel
Save