|
@@ -1,5 +1,6 @@
|
|
|
package com.abi.qms.platform.infrastructure.mq;
|
|
|
|
|
|
+import cn.hutool.core.io.FileUtil;
|
|
|
import cn.hutool.core.io.file.FileWriter;
|
|
|
import com.abi.base.foundation.util.RedisClient;
|
|
|
import com.abi.qms.platform.dao.entity.*;
|
|
@@ -114,7 +115,8 @@ public class GenerateCodeConsumer {
|
|
|
final List<QrData> qrDataList = new LinkedList<>();
|
|
|
|
|
|
|
|
|
- private File file = new File(this.getClass().getResource("/").getPath()+"/code");
|
|
|
+
|
|
|
+ private File file = new File("classpath:META-INF/code");
|
|
|
|
|
|
|
|
|
private ArrayList<File> fileList = new ArrayList<>();
|
|
@@ -131,6 +133,12 @@ public class GenerateCodeConsumer {
|
|
|
|
|
|
public Long sum = 0L;
|
|
|
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
@SneakyThrows
|
|
|
@RabbitHandler
|
|
|
@RabbitListener(queues = GenerateCodeConsumer.GENERATE_CODE_BY_REPERTORY_QUEUE)
|
|
@@ -279,8 +287,8 @@ public class GenerateCodeConsumer {
|
|
|
}
|
|
|
|
|
|
qrPackage.setZipPassword(pas);
|
|
|
-
|
|
|
-
|
|
|
+
|
|
|
+ FileUtil.del(file);
|
|
|
}catch (Exception e){
|
|
|
throw new BusinessException("上传OSS失败");
|
|
|
}
|