Bläddra i källkod

学生人脸批量上传后查询数据冲服问题

dzx 1 år sedan
förälder
incheckning
483114b7b0

+ 1 - 2
src/main/java/com/xjrsoft/module/personnel/controller/StundentFaceProcessController.java

@@ -205,7 +205,6 @@ public class StundentFaceProcessController {
         JsonParser parser = new JsonParser();
 
         ApiUtil apiUtil = new ApiUtil();
-        Long folderId = IdWorker.getId();
         ZipFile zipFile = FileZipUtil.convertToZipFile(file);
         Enumeration<? extends ZipEntry> entries = zipFile.entries();
         while (entries.hasMoreElements()){
@@ -236,7 +235,7 @@ public class StundentFaceProcessController {
             //存入数据库
             long fileId = IdUtil.getSnowflakeNextId();
             String suffix = StringUtils.substringAfterLast(filename, StringPool.DOT);
-
+            Long folderId = IdWorker.getId();
             File fileEntity = new File();
             fileEntity.setId(fileId);
             fileEntity.setFolderId(folderId);