From afc3a94e99d1a2403449e86bc38e7616c5b1a883 Mon Sep 17 00:00:00 2001
From: 101captain <237651143@qq.com>
Date: 星期六, 29 一月 2022 12:45:31 +0800
Subject: [PATCH] 预约登记优化

---
 springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/utlis/AssemblyUtils.java |   20 +++++---------------
 1 files changed, 5 insertions(+), 15 deletions(-)

diff --git a/springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/utlis/AssemblyUtils.java b/springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/utlis/AssemblyUtils.java
index 23f59d4..05e1b65 100644
--- a/springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/utlis/AssemblyUtils.java
+++ b/springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/utlis/AssemblyUtils.java
@@ -2,7 +2,6 @@
 
 import com.panzhihua.common.model.vos.community.ComActQuestnaireAnswerContentVO;
 import lombok.extern.slf4j.Slf4j;
-import org.apache.commons.io.FileUtils;
 
 import javax.imageio.ImageIO;
 import javax.xml.bind.DatatypeConverter;
@@ -41,7 +40,12 @@
         Boolean isOldDuo = false;
         StringBuffer sb = new StringBuffer();
         if (answerContentVOList != null && answerContentVOList.size() > 0) {
+            int a=0;
             for (ComActQuestnaireAnswerContentVO userAnswers : answerContentVOList) {
+                a++;
+                if(answerContentVOList.size()==26&&a==9){
+                   userData.add("");
+                }
                 //判断是文字描述直接跳过
                 if (userAnswers.getOptionType().equals(5) || userAnswers.getOptionType().equals(11)
                         || (StringUtils.isNotEmpty(userAnswers.getAnswerContent()) && userAnswers.getAnswerContent().contains(noExport))) {
@@ -179,19 +183,5 @@
             resultList.add(userData);
         }
         return resultList;
-    }
-
-    public static File createTmpFile(InputStream inputStream, String name, String ext, File tmpDirFile) throws IOException {
-        File resultFile = File.createTempFile(name, '.' + ext, tmpDirFile);
-        resultFile.deleteOnExit();
-        FileUtils.copyToFile(inputStream, resultFile);
-        return resultFile;
-    }
-
-    public static File bytesToFile(byte[] bytes, String fileType) throws IOException {
-        return createTmpFile(new ByteArrayInputStream(bytes),
-                UUID.randomUUID().toString(),
-                fileType,
-                Files.createTempDirectory("tempFile").toFile());
     }
 }

--
Gitblit v1.7.1